Filesystem root low space

alopsa21

New Member
Joined
Feb 25, 2022
Messages
2
Reaction score
0
Credits
17
Hi,

Could you help with a low space issue, please?

Code:
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"


Running df -h

Code:
Filesystem      Size  Used Avail Use% Mounted on
udev            7.7G     0  7.7G   0% /dev
tmpfs           1.6G  2.3M  1.6G   1% /run
/dev/nvme0n1p6  123G  116G  904M 100% /
tmpfs           7.8G  186M  7.6G   3% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/loop1       56M   56M     0 100% /snap/core18/2253
/dev/loop3      219M  219M     0 100% /snap/gnome-3-34-1804/77
/dev/loop4       56M   56M     0 100% /snap/core18/2284
/dev/loop2       62M   62M     0 100% /snap/core20/1328
/dev/loop5      219M  219M     0 100% /snap/gnome-3-34-1804/72
/dev/loop6       66M   66M     0 100% /snap/gtk-common-themes/1515
/dev/loop7      111M  111M     0 100% /snap/core/12725
/dev/loop0      128K  128K     0 100% /snap/bare/5
/dev/loop10     296M  296M     0 100% /snap/vlc/2288
/dev/loop8      296M  296M     0 100% /snap/vlc/2344
/dev/loop9      249M  249M     0 100% /snap/gnome-3-38-2004/99
/dev/loop11      55M   55M     0 100% /snap/snap-store/558
/dev/loop14      51M   51M     0 100% /snap/snap-store/547
/dev/loop12     2.7M  2.7M     0 100% /snap/gnome-system-monitor/169
/dev/loop13     248M  248M     0 100% /snap/gnome-3-38-2004/87
/dev/loop15      66M   66M     0 100% /snap/gtk-common-themes/1519
/dev/loop16     2.7M  2.7M     0 100% /snap/gnome-system-monitor/174
/dev/loop17      62M   62M     0 100% /snap/core20/1361
/dev/nvme0n1p1  256M   36M  221M  14% /boot/efi
tmpfs           1.6G   60K  1.6G   1% /run/user/1000

Thank yo uso much
 


Assuming I'm reading correctly...

Your drive is / or /dev/nvme0n1p6.

It's pretty much full.

Linux gets grumpy when you have no space. Remove some stuff or get a larger drive.
 
Hi thank you for your answer

I really don't know what is that partition dev/nvme0n1p6 I suppose that's the main partition where I work.

IIs there any nice command to give bigger files and folders?

Thanks
 
See:


This if you want a graphical way to see file sizes:


You can also start with:

Code:
sudo apt autoremove -y && sudo apt clean -y

That may clean out a bit to give you some overhead.
 
I'd recommend manual partitioning, you just need to assign a size for root (/), efi, swap, and home folder. You can sacrifice swap space if you're not doing intensive stuff, make sure you have a large home folder.
 
Make it simple.

Buy a bigger hard drive.

Minimum 250GB
 
G parted will show you everything about your drive space.
 
G parted will show you everything about your drive space.
yeah and so does disks

To the OP: how big is your hard drive anyways, and what kind of stuff are you doing on it? Does it go beyond basic usage (browser, documents, simple programs, etc.)? I don't know what kind of size you need but if you're gonna buy a hard drive i would only recommend solid state drives. HDDs slow you down a lot.
 
I think ubuntu has baobab (Disk Usage Analyzer) preinstalled.

/edit I just have a big / drive with no extra /home and a backup. Sooner or later / or /home will run out of space and you need to act. Seen thousand times in a professional environment.
 
Buy a bigger hard drive.

Trying to exist within 128 GB would be a pain in the butt. Though, not everyone can just run out and buy more hardware.

But, you're absolutely correct. That'd be the best solution (assuming OP has the technical wherewithal to swap the device). A 1 TB M.2 NVME (which is what they have) can be had for like > $150 on NewEgg.
 
Sorry if this has already been suggested.

I wouldn't' swap hard drives. If at all possible, just buy another one. Shut it down, add the drive and partition the whole thing as one, mount it as /data or what ever. If you're the only user you can mount it under your home directory, or link it there. After partitioning and creating the file system, you can move some of your data to it and not have to re-create the wheel.

If your computer supports more than two drives, I'd put in a 3rd for backups. I'd also eventually add one more as a usb connected drive for copies of the backups. Use rsync to copy the backups so it only takes what's changed from the last backup. Just a thought. All this would take time as the budget can afford the items necessary.
 
Last edited:
I'm still a supporter of manually partitioning drives, part of the reason is that the output for the df -h command is soooo much more simple, and therefore makes any sort of cleanup easier:
Code:
udev            7.5G     0  7.5G   0% /dev
tmpfs           1.6G  1.7M  1.5G   1% /run
/dev/nvme0n1p1   19G  7.8G  9.5G  46% /
tmpfs           7.6G     0  7.6G   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           7.6G     0  7.6G   0% /sys/fs/cgroup
/dev/nvme0n1p2  275G  3.2G  257G   2% /home
/dev/nvme0n1p4  524M  4.6M  520M   1% /boot/efi
tmpfs           1.6G   20K  1.6G   1% /run/user/1000

and even though i fallow the double swap-space rule (you have 4GB RAM, then allocate 8GB swap space), most people don't use a tremendous amount of RAM, and i think you could try just using an identical amount of swap space...but i've got no info on what you use your computer for, so take all this advice with caution. Maybe the absence of loop devices creates problems for software on your system, i would like to know about this if that's possible.

Other than that...the only possible solution i see is more space. Make sure your motherboard has a slot for M.2 drives before buying, most of them do but i'm pretty sure my laptop doesn't. Computer hardware can last a very long time if you take care of it.
 

Members online


Latest posts

Top