I recently installed Ubuntu 20.04 on a new laptop with Windows 10 pre-installed (which I then upgraded to Windows 11). When setting the partition table during the Ubuntu installation, I forgot to allocate separate space for the \home
directory and it was therefore taking up space within the \
(root) directory - or at least this is what I assume was happening because it was just a matter of days before I started getting the "Low disk space on filesystem root" warning.
I had allocated 15GB to \
when installing, but I then resized it to 30GB using GParted
. The remaining 15GB also filled up within a day - I'd installed texlive-full
, which was the biggest package. But the package sizes certainly did not add up to 30GB. I then followed the advice on this article and created a separate mount point for \home
(which now has ~550GB). The only part that did not go according to the instructions in the aforementioned link was when I booted from a live USB to backup the old \home
directory and create a new one associated to the newly created mount point for \home
via
cd / && sudo mv /home /old_home && sudo mkdir /home
Upon rebooting into Ubuntu (no longer through live USB), I could no longer find the /old_home
directory in order to delete it after transferring all the old files into \home
. Can anyone explain what I may have done wrong here or why my \
partition is filling up so quickly? The images below all give conflicting information as to how much space is left in \
. Additionally, the "Low disk space on filesystem root" warning tells me that I have 352MB remaining on root. So I am not sure what to make of this. Any help/advice would be much appreciated!
$ sudo du -hsx /* | sort -rh | head -n 40
[sudo] password for niran90:
du: cannot read directory '/proc/2150/task/2150/net': Invalid argument
du: cannot read directory '/proc/2150/net': Invalid argument
du: cannot read directory '/proc/2167/task/2167/net': Invalid argument
du: cannot read directory '/proc/2167/net': Invalid argument
du: cannot read directory '/proc/2194/task/2194/net': Invalid argument
du: cannot read directory '/proc/2194/net': Invalid argument
du: cannot access '/proc/5802/task/5802/fd/4': No such file or directory
du: cannot access '/proc/5802/task/5802/fdinfo/4': No such file or directory
du: cannot access '/proc/5802/fd/3': No such file or directory
du: cannot access '/proc/5802/fdinfo/3': No such file or directory
12G /usr
6.8G /var
5.1G /home
317M /opt
193M /boot
12M /etc
2.4M /run
156K /tmp
128K /root
48K /snap
16K /lost+found
12K /media
4.0K /srv
4.0K /mnt
4.0K /cdrom
0 /sys
0 /sbin
0 /proc
0 /libx32
0 /lib64
0 /lib32
0 /lib
0 /dev
0 /bin
![enter image description here](https://i.stack.imgur.com/eNxuk.png)