Score:0

dev/sda2 almost full; Low Disk Space on "Filesystem root"

ng flag

I work in Ubuntu 22 on VirtualBox. /dev/sda3 is almost full:

df -h --total
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           720M  1,6M  718M   1% /run
/dev/sda3        24G   23G  411M  99% /
tmpfs           3,6G     0  3,6G   0% /dev/shm
tmpfs           5,0M  4,0K  5,0M   1% /run/lock
/dev/sda2       512M  6,1M  506M   2% /boot/efi
tmpfs           720M  124K  720M   1% /run/user/1000
total            30G   23G  5,9G  80% -

I have cleared unused linux kernels following How do I free up more space in /boot? which freed only 1%. What else can I do?

I added additional GBs to my virtual hard disk and with GParted added ample GBs to /dev/sda2.

df -h --total now reads

Filesystem      Size  Used Avail Use% Mounted on
tmpfs           720M  1,6M  718M   1% /run
/dev/sda3        25G   23G  115M 100% /
tmpfs           3,6G     0  3,6G   0% /dev/shm
tmpfs           5,0M  4,0K  5,0M   1% /run/lock
/dev/sda2        11G  6,1M   11G   1% /boot/efi
tmpfs           720M  116K  720M   1% /run/user/1000
total            40G   23G   16G  60% -

Nevertheless I still get an error message "Low Disk Space on "Filesystem root".

enter image description here

What is wrong?

hu flag
Kernels should be on the boot partition, /dev/sda2, in your case. Uninstall stuff or delete large files to free space.
Viesturs avatar
ng flag
@mikewhatever it is a fresh Ubuntu installation, not much installed. Should I increase the size of the virtual disk?
mpboden avatar
do flag
Unless I’m missing something, `/dev/sda2` looks fine with only 1% in use. But `/dev/sda3` is almost full.
Viesturs avatar
ng flag
@mpboden, I will repartition the virtual hard disk. What is the optimum size of `/dev/sda2`?
mpboden avatar
do flag
Again, I don’t see a problem with `sda2`. Why do you think you need to resize it?
Viesturs avatar
ng flag
@mpboden isn't there too much memory allocated to /dev/sda2. I will transfer memory from sda2 to sda3.
mpboden avatar
do flag
Are you confusing the difference between `/boot` on `sda2` and the root directory `/` on `sda3`? 1Gb is more than sufficient for the `/boot` directory on `sda2`. You initially had 500mb and that was fine as well. Your root directory on `sda3` is full. So you need to look there and find out what is taking up so much space or allocate more to `sda3`.
Viesturs avatar
ng flag
@mpboden I moved memory from `/dev/sda2` to `/dev/sda3`. Now the error message no longer appears.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.