ubuntu 18.04 - root filesystem full












1














my root filesystem is full. how can i fix the problem? i allocated 15G to root which i understand should be sufficient, i wonder if i have configured the partitions correctly. there might be a problem with the /snap directory.



here is the output of selected commands:



df -h /



erik@laptop:~$ df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p2 15G 13G 498M 97% /


df -h



erik@laptop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 2.1M 3.2G 1% /run
/dev/nvme0n1p2 15G 13G 498M 97% /
tmpfs 16G 4.0M 16G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/loop0 88M 88M 0 100% /snap/core/5662
/dev/loop1 173M 173M 0 100% /snap/spotify/21
/dev/loop2 15M 15M 0 100% /snap/gnome-logs/45
/dev/loop5 141M 141M 0 100% /snap/gnome-3-26-1604/74
/dev/loop7 13M 13M 0 100% /snap/gnome-characters/124
/dev/loop3 89M 89M 0 100% /snap/core/5897
/dev/loop4 141M 141M 0 100% /snap/gnome-3-26-1604/70
/dev/loop6 13M 13M 0 100% /snap/gnome-characters/139
/dev/loop8 174M 174M 0 100% /snap/spotify/24
/dev/loop10 130M 130M 0 100% /snap/postman/73
/dev/loop9 484M 484M 0 100% /snap/libreoffice/90
/dev/loop11 18M 18M 0 100% /snap/pdftk/9
/dev/loop12 15M 15M 0 100% /snap/gnome-logs/40
/dev/loop13 3.8M 3.8M 0 100% /snap/gnome-system-monitor/57
/dev/loop15 2.3M 2.3M 0 100% /snap/gnome-calculator/222
/dev/loop14 88M 88M 0 100% /snap/core/5742
/dev/loop16 13M 13M 0 100% /snap/gnome-characters/117
/dev/loop17 174M 174M 0 100% /snap/spotify/26
/dev/loop18 3.8M 3.8M 0 100% /snap/gnome-system-monitor/51
/dev/loop20 479M 479M 0 100% /snap/libreoffice/86
/dev/loop19 35M 35M 0 100% /snap/gtk-common-themes/808
/dev/loop21 2.3M 2.3M 0 100% /snap/gnome-calculator/260
/dev/loop22 43M 43M 0 100% /snap/gtk-common-themes/701
/dev/loop23 3.8M 3.8M 0 100% /snap/gnome-system-monitor/54
/dev/loop24 35M 35M 0 100% /snap/gtk-common-themes/818
/dev/loop26 2.3M 2.3M 0 100% /snap/gnome-calculator/238
/dev/loop25 479M 479M 0 100% /snap/libreoffice/85
/dev/loop27 15M 15M 0 100% /snap/gnome-logs/43
/dev/sda1 1.8T 434G 1.3T 25% /home
/dev/nvme0n1p4 215G 61M 204G 1% /m2
/dev/nvme0n1p1 975M 6.1M 968M 1% /boot/efi
tmpfs 3.2G 16K 3.2G 1% /run/user/121
tmpfs 3.2G 36K 3.2G 1% /run/user/1000


sudo du -h --max-depth=1 / | grep '[0-9]G>'



erik@laptop:~$ sudo du -h --max-depth=1 / | grep '[0-9]G>'
434G /home
11G /snap
4.2G /usr
2.0G /tmp
5.6G /var
du: cannot access '/proc/7893/task/7893/fd/4': No such file or directory
du: cannot access '/proc/7893/task/7893/fdinfo/4': No such file or directory
du: cannot access '/proc/7893/fd/3': No such file or directory
du: cannot access '/proc/7893/fdinfo/3': No such file or directory
du: cannot access '/run/user/1000/gvfs': Permission denied
459G /


dpkg-query -Wf '${Installed-Size}t${Package}n' | sort -n



erik@laptop:~$ dpkg-query -Wf '${Installed-Size}t${Package}n' | sort -n
[snip]
132042 libreoffice-core
134299 libgl1-mesa-dri
147486 libgl1-mesa-dri
161309 thunderbird
166969 linux-modules-extra-4.15.0-29-generic
166997 linux-modules-extra-4.15.0-34-generic
167001 linux-modules-extra-4.15.0-33-generic
167039 linux-modules-extra-4.15.0-39-generic
174305 firefox
179065 openjdk-11-jre-headless
194447 google-chrome-stable
236804 zoom
271127 linux-firmware


here are some things that i already tried, they didn't help:



sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get autoremove --purge
sudo apt-get remove --purge linux-image-X.X.XX-XX-generic # for old versions

sudo find / -xdev -name core -ls -o -path "/lib*" -prune

erik@laptop:~$ dpkg -l "linux*{tools}*" |grep ^.i
dpkg-query: no packages found matching linux*{tools}*


i would be grateful for any assistance.



edit: this is how my drive appears in gparted:



screenshot



so it looks like i have a 256G m2 drive and i installed the boot, root, and swap partitions there, with leftover space mounted at /m2. my /home directory is on a separate device.



so if i can't fix whatever is wrong with root, i'm wondering if i could increase its size by 1) delete /m2 2) delete swap 3) resize root 4) recreate swap. would that work?



edit #2:



du -h /var/lib/snapd/snaps



erik@laptop:~$ du -h /var/lib/snapd/snaps
4.0K /var/lib/snapd/snaps/partial
2.8G /var/lib/snapd/snaps









share|improve this question
























  • Your snap apps are using 11GB, that's where the problem lies. These are the apps installed via Ubuntu Store. Currently, it is using the storage from your root partition.
    – Bernard Wei
    Nov 30 '18 at 20:34












  • Check the compressed snap usage at /var/lib/snapd/snaps to see if the actual storage is taking up a lot of the root partition.
    – Bernard Wei
    Nov 30 '18 at 20:52










  • many thanks for getting back to me. i edited my post to show the output of "du -h /var/lib/snapd/snaps". how should i fix the problem?
    – erik
    Nov 30 '18 at 20:56










  • could i fix it by mounting /var elsewhere? my /home directory is mounted on a different disk with loads of free space, could i mount /var there?
    – erik
    Nov 30 '18 at 21:03






  • 1




    just a FYI: 15gb is enough only if you don't install many programs, as you require a lot of space to release-upgrade to the next version (unless your plan is nuke & install [clean]), the current wiki recommendation is 25gb.
    – guiverc
    Nov 30 '18 at 21:42
















1














my root filesystem is full. how can i fix the problem? i allocated 15G to root which i understand should be sufficient, i wonder if i have configured the partitions correctly. there might be a problem with the /snap directory.



here is the output of selected commands:



df -h /



erik@laptop:~$ df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p2 15G 13G 498M 97% /


df -h



erik@laptop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 2.1M 3.2G 1% /run
/dev/nvme0n1p2 15G 13G 498M 97% /
tmpfs 16G 4.0M 16G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/loop0 88M 88M 0 100% /snap/core/5662
/dev/loop1 173M 173M 0 100% /snap/spotify/21
/dev/loop2 15M 15M 0 100% /snap/gnome-logs/45
/dev/loop5 141M 141M 0 100% /snap/gnome-3-26-1604/74
/dev/loop7 13M 13M 0 100% /snap/gnome-characters/124
/dev/loop3 89M 89M 0 100% /snap/core/5897
/dev/loop4 141M 141M 0 100% /snap/gnome-3-26-1604/70
/dev/loop6 13M 13M 0 100% /snap/gnome-characters/139
/dev/loop8 174M 174M 0 100% /snap/spotify/24
/dev/loop10 130M 130M 0 100% /snap/postman/73
/dev/loop9 484M 484M 0 100% /snap/libreoffice/90
/dev/loop11 18M 18M 0 100% /snap/pdftk/9
/dev/loop12 15M 15M 0 100% /snap/gnome-logs/40
/dev/loop13 3.8M 3.8M 0 100% /snap/gnome-system-monitor/57
/dev/loop15 2.3M 2.3M 0 100% /snap/gnome-calculator/222
/dev/loop14 88M 88M 0 100% /snap/core/5742
/dev/loop16 13M 13M 0 100% /snap/gnome-characters/117
/dev/loop17 174M 174M 0 100% /snap/spotify/26
/dev/loop18 3.8M 3.8M 0 100% /snap/gnome-system-monitor/51
/dev/loop20 479M 479M 0 100% /snap/libreoffice/86
/dev/loop19 35M 35M 0 100% /snap/gtk-common-themes/808
/dev/loop21 2.3M 2.3M 0 100% /snap/gnome-calculator/260
/dev/loop22 43M 43M 0 100% /snap/gtk-common-themes/701
/dev/loop23 3.8M 3.8M 0 100% /snap/gnome-system-monitor/54
/dev/loop24 35M 35M 0 100% /snap/gtk-common-themes/818
/dev/loop26 2.3M 2.3M 0 100% /snap/gnome-calculator/238
/dev/loop25 479M 479M 0 100% /snap/libreoffice/85
/dev/loop27 15M 15M 0 100% /snap/gnome-logs/43
/dev/sda1 1.8T 434G 1.3T 25% /home
/dev/nvme0n1p4 215G 61M 204G 1% /m2
/dev/nvme0n1p1 975M 6.1M 968M 1% /boot/efi
tmpfs 3.2G 16K 3.2G 1% /run/user/121
tmpfs 3.2G 36K 3.2G 1% /run/user/1000


sudo du -h --max-depth=1 / | grep '[0-9]G>'



erik@laptop:~$ sudo du -h --max-depth=1 / | grep '[0-9]G>'
434G /home
11G /snap
4.2G /usr
2.0G /tmp
5.6G /var
du: cannot access '/proc/7893/task/7893/fd/4': No such file or directory
du: cannot access '/proc/7893/task/7893/fdinfo/4': No such file or directory
du: cannot access '/proc/7893/fd/3': No such file or directory
du: cannot access '/proc/7893/fdinfo/3': No such file or directory
du: cannot access '/run/user/1000/gvfs': Permission denied
459G /


dpkg-query -Wf '${Installed-Size}t${Package}n' | sort -n



erik@laptop:~$ dpkg-query -Wf '${Installed-Size}t${Package}n' | sort -n
[snip]
132042 libreoffice-core
134299 libgl1-mesa-dri
147486 libgl1-mesa-dri
161309 thunderbird
166969 linux-modules-extra-4.15.0-29-generic
166997 linux-modules-extra-4.15.0-34-generic
167001 linux-modules-extra-4.15.0-33-generic
167039 linux-modules-extra-4.15.0-39-generic
174305 firefox
179065 openjdk-11-jre-headless
194447 google-chrome-stable
236804 zoom
271127 linux-firmware


here are some things that i already tried, they didn't help:



sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get autoremove --purge
sudo apt-get remove --purge linux-image-X.X.XX-XX-generic # for old versions

sudo find / -xdev -name core -ls -o -path "/lib*" -prune

erik@laptop:~$ dpkg -l "linux*{tools}*" |grep ^.i
dpkg-query: no packages found matching linux*{tools}*


i would be grateful for any assistance.



edit: this is how my drive appears in gparted:



screenshot



so it looks like i have a 256G m2 drive and i installed the boot, root, and swap partitions there, with leftover space mounted at /m2. my /home directory is on a separate device.



so if i can't fix whatever is wrong with root, i'm wondering if i could increase its size by 1) delete /m2 2) delete swap 3) resize root 4) recreate swap. would that work?



edit #2:



du -h /var/lib/snapd/snaps



erik@laptop:~$ du -h /var/lib/snapd/snaps
4.0K /var/lib/snapd/snaps/partial
2.8G /var/lib/snapd/snaps









share|improve this question
























  • Your snap apps are using 11GB, that's where the problem lies. These are the apps installed via Ubuntu Store. Currently, it is using the storage from your root partition.
    – Bernard Wei
    Nov 30 '18 at 20:34












  • Check the compressed snap usage at /var/lib/snapd/snaps to see if the actual storage is taking up a lot of the root partition.
    – Bernard Wei
    Nov 30 '18 at 20:52










  • many thanks for getting back to me. i edited my post to show the output of "du -h /var/lib/snapd/snaps". how should i fix the problem?
    – erik
    Nov 30 '18 at 20:56










  • could i fix it by mounting /var elsewhere? my /home directory is mounted on a different disk with loads of free space, could i mount /var there?
    – erik
    Nov 30 '18 at 21:03






  • 1




    just a FYI: 15gb is enough only if you don't install many programs, as you require a lot of space to release-upgrade to the next version (unless your plan is nuke & install [clean]), the current wiki recommendation is 25gb.
    – guiverc
    Nov 30 '18 at 21:42














1












1








1







my root filesystem is full. how can i fix the problem? i allocated 15G to root which i understand should be sufficient, i wonder if i have configured the partitions correctly. there might be a problem with the /snap directory.



here is the output of selected commands:



df -h /



erik@laptop:~$ df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p2 15G 13G 498M 97% /


df -h



erik@laptop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 2.1M 3.2G 1% /run
/dev/nvme0n1p2 15G 13G 498M 97% /
tmpfs 16G 4.0M 16G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/loop0 88M 88M 0 100% /snap/core/5662
/dev/loop1 173M 173M 0 100% /snap/spotify/21
/dev/loop2 15M 15M 0 100% /snap/gnome-logs/45
/dev/loop5 141M 141M 0 100% /snap/gnome-3-26-1604/74
/dev/loop7 13M 13M 0 100% /snap/gnome-characters/124
/dev/loop3 89M 89M 0 100% /snap/core/5897
/dev/loop4 141M 141M 0 100% /snap/gnome-3-26-1604/70
/dev/loop6 13M 13M 0 100% /snap/gnome-characters/139
/dev/loop8 174M 174M 0 100% /snap/spotify/24
/dev/loop10 130M 130M 0 100% /snap/postman/73
/dev/loop9 484M 484M 0 100% /snap/libreoffice/90
/dev/loop11 18M 18M 0 100% /snap/pdftk/9
/dev/loop12 15M 15M 0 100% /snap/gnome-logs/40
/dev/loop13 3.8M 3.8M 0 100% /snap/gnome-system-monitor/57
/dev/loop15 2.3M 2.3M 0 100% /snap/gnome-calculator/222
/dev/loop14 88M 88M 0 100% /snap/core/5742
/dev/loop16 13M 13M 0 100% /snap/gnome-characters/117
/dev/loop17 174M 174M 0 100% /snap/spotify/26
/dev/loop18 3.8M 3.8M 0 100% /snap/gnome-system-monitor/51
/dev/loop20 479M 479M 0 100% /snap/libreoffice/86
/dev/loop19 35M 35M 0 100% /snap/gtk-common-themes/808
/dev/loop21 2.3M 2.3M 0 100% /snap/gnome-calculator/260
/dev/loop22 43M 43M 0 100% /snap/gtk-common-themes/701
/dev/loop23 3.8M 3.8M 0 100% /snap/gnome-system-monitor/54
/dev/loop24 35M 35M 0 100% /snap/gtk-common-themes/818
/dev/loop26 2.3M 2.3M 0 100% /snap/gnome-calculator/238
/dev/loop25 479M 479M 0 100% /snap/libreoffice/85
/dev/loop27 15M 15M 0 100% /snap/gnome-logs/43
/dev/sda1 1.8T 434G 1.3T 25% /home
/dev/nvme0n1p4 215G 61M 204G 1% /m2
/dev/nvme0n1p1 975M 6.1M 968M 1% /boot/efi
tmpfs 3.2G 16K 3.2G 1% /run/user/121
tmpfs 3.2G 36K 3.2G 1% /run/user/1000


sudo du -h --max-depth=1 / | grep '[0-9]G>'



erik@laptop:~$ sudo du -h --max-depth=1 / | grep '[0-9]G>'
434G /home
11G /snap
4.2G /usr
2.0G /tmp
5.6G /var
du: cannot access '/proc/7893/task/7893/fd/4': No such file or directory
du: cannot access '/proc/7893/task/7893/fdinfo/4': No such file or directory
du: cannot access '/proc/7893/fd/3': No such file or directory
du: cannot access '/proc/7893/fdinfo/3': No such file or directory
du: cannot access '/run/user/1000/gvfs': Permission denied
459G /


dpkg-query -Wf '${Installed-Size}t${Package}n' | sort -n



erik@laptop:~$ dpkg-query -Wf '${Installed-Size}t${Package}n' | sort -n
[snip]
132042 libreoffice-core
134299 libgl1-mesa-dri
147486 libgl1-mesa-dri
161309 thunderbird
166969 linux-modules-extra-4.15.0-29-generic
166997 linux-modules-extra-4.15.0-34-generic
167001 linux-modules-extra-4.15.0-33-generic
167039 linux-modules-extra-4.15.0-39-generic
174305 firefox
179065 openjdk-11-jre-headless
194447 google-chrome-stable
236804 zoom
271127 linux-firmware


here are some things that i already tried, they didn't help:



sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get autoremove --purge
sudo apt-get remove --purge linux-image-X.X.XX-XX-generic # for old versions

sudo find / -xdev -name core -ls -o -path "/lib*" -prune

erik@laptop:~$ dpkg -l "linux*{tools}*" |grep ^.i
dpkg-query: no packages found matching linux*{tools}*


i would be grateful for any assistance.



edit: this is how my drive appears in gparted:



screenshot



so it looks like i have a 256G m2 drive and i installed the boot, root, and swap partitions there, with leftover space mounted at /m2. my /home directory is on a separate device.



so if i can't fix whatever is wrong with root, i'm wondering if i could increase its size by 1) delete /m2 2) delete swap 3) resize root 4) recreate swap. would that work?



edit #2:



du -h /var/lib/snapd/snaps



erik@laptop:~$ du -h /var/lib/snapd/snaps
4.0K /var/lib/snapd/snaps/partial
2.8G /var/lib/snapd/snaps









share|improve this question















my root filesystem is full. how can i fix the problem? i allocated 15G to root which i understand should be sufficient, i wonder if i have configured the partitions correctly. there might be a problem with the /snap directory.



here is the output of selected commands:



df -h /



erik@laptop:~$ df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p2 15G 13G 498M 97% /


df -h



erik@laptop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 2.1M 3.2G 1% /run
/dev/nvme0n1p2 15G 13G 498M 97% /
tmpfs 16G 4.0M 16G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/loop0 88M 88M 0 100% /snap/core/5662
/dev/loop1 173M 173M 0 100% /snap/spotify/21
/dev/loop2 15M 15M 0 100% /snap/gnome-logs/45
/dev/loop5 141M 141M 0 100% /snap/gnome-3-26-1604/74
/dev/loop7 13M 13M 0 100% /snap/gnome-characters/124
/dev/loop3 89M 89M 0 100% /snap/core/5897
/dev/loop4 141M 141M 0 100% /snap/gnome-3-26-1604/70
/dev/loop6 13M 13M 0 100% /snap/gnome-characters/139
/dev/loop8 174M 174M 0 100% /snap/spotify/24
/dev/loop10 130M 130M 0 100% /snap/postman/73
/dev/loop9 484M 484M 0 100% /snap/libreoffice/90
/dev/loop11 18M 18M 0 100% /snap/pdftk/9
/dev/loop12 15M 15M 0 100% /snap/gnome-logs/40
/dev/loop13 3.8M 3.8M 0 100% /snap/gnome-system-monitor/57
/dev/loop15 2.3M 2.3M 0 100% /snap/gnome-calculator/222
/dev/loop14 88M 88M 0 100% /snap/core/5742
/dev/loop16 13M 13M 0 100% /snap/gnome-characters/117
/dev/loop17 174M 174M 0 100% /snap/spotify/26
/dev/loop18 3.8M 3.8M 0 100% /snap/gnome-system-monitor/51
/dev/loop20 479M 479M 0 100% /snap/libreoffice/86
/dev/loop19 35M 35M 0 100% /snap/gtk-common-themes/808
/dev/loop21 2.3M 2.3M 0 100% /snap/gnome-calculator/260
/dev/loop22 43M 43M 0 100% /snap/gtk-common-themes/701
/dev/loop23 3.8M 3.8M 0 100% /snap/gnome-system-monitor/54
/dev/loop24 35M 35M 0 100% /snap/gtk-common-themes/818
/dev/loop26 2.3M 2.3M 0 100% /snap/gnome-calculator/238
/dev/loop25 479M 479M 0 100% /snap/libreoffice/85
/dev/loop27 15M 15M 0 100% /snap/gnome-logs/43
/dev/sda1 1.8T 434G 1.3T 25% /home
/dev/nvme0n1p4 215G 61M 204G 1% /m2
/dev/nvme0n1p1 975M 6.1M 968M 1% /boot/efi
tmpfs 3.2G 16K 3.2G 1% /run/user/121
tmpfs 3.2G 36K 3.2G 1% /run/user/1000


sudo du -h --max-depth=1 / | grep '[0-9]G>'



erik@laptop:~$ sudo du -h --max-depth=1 / | grep '[0-9]G>'
434G /home
11G /snap
4.2G /usr
2.0G /tmp
5.6G /var
du: cannot access '/proc/7893/task/7893/fd/4': No such file or directory
du: cannot access '/proc/7893/task/7893/fdinfo/4': No such file or directory
du: cannot access '/proc/7893/fd/3': No such file or directory
du: cannot access '/proc/7893/fdinfo/3': No such file or directory
du: cannot access '/run/user/1000/gvfs': Permission denied
459G /


dpkg-query -Wf '${Installed-Size}t${Package}n' | sort -n



erik@laptop:~$ dpkg-query -Wf '${Installed-Size}t${Package}n' | sort -n
[snip]
132042 libreoffice-core
134299 libgl1-mesa-dri
147486 libgl1-mesa-dri
161309 thunderbird
166969 linux-modules-extra-4.15.0-29-generic
166997 linux-modules-extra-4.15.0-34-generic
167001 linux-modules-extra-4.15.0-33-generic
167039 linux-modules-extra-4.15.0-39-generic
174305 firefox
179065 openjdk-11-jre-headless
194447 google-chrome-stable
236804 zoom
271127 linux-firmware


here are some things that i already tried, they didn't help:



sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get autoremove --purge
sudo apt-get remove --purge linux-image-X.X.XX-XX-generic # for old versions

sudo find / -xdev -name core -ls -o -path "/lib*" -prune

erik@laptop:~$ dpkg -l "linux*{tools}*" |grep ^.i
dpkg-query: no packages found matching linux*{tools}*


i would be grateful for any assistance.



edit: this is how my drive appears in gparted:



screenshot



so it looks like i have a 256G m2 drive and i installed the boot, root, and swap partitions there, with leftover space mounted at /m2. my /home directory is on a separate device.



so if i can't fix whatever is wrong with root, i'm wondering if i could increase its size by 1) delete /m2 2) delete swap 3) resize root 4) recreate swap. would that work?



edit #2:



du -h /var/lib/snapd/snaps



erik@laptop:~$ du -h /var/lib/snapd/snaps
4.0K /var/lib/snapd/snaps/partial
2.8G /var/lib/snapd/snaps






partitioning filesystem disk-usage






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 30 '18 at 20:56

























asked Nov 30 '18 at 19:58









erik

62




62












  • Your snap apps are using 11GB, that's where the problem lies. These are the apps installed via Ubuntu Store. Currently, it is using the storage from your root partition.
    – Bernard Wei
    Nov 30 '18 at 20:34












  • Check the compressed snap usage at /var/lib/snapd/snaps to see if the actual storage is taking up a lot of the root partition.
    – Bernard Wei
    Nov 30 '18 at 20:52










  • many thanks for getting back to me. i edited my post to show the output of "du -h /var/lib/snapd/snaps". how should i fix the problem?
    – erik
    Nov 30 '18 at 20:56










  • could i fix it by mounting /var elsewhere? my /home directory is mounted on a different disk with loads of free space, could i mount /var there?
    – erik
    Nov 30 '18 at 21:03






  • 1




    just a FYI: 15gb is enough only if you don't install many programs, as you require a lot of space to release-upgrade to the next version (unless your plan is nuke & install [clean]), the current wiki recommendation is 25gb.
    – guiverc
    Nov 30 '18 at 21:42


















  • Your snap apps are using 11GB, that's where the problem lies. These are the apps installed via Ubuntu Store. Currently, it is using the storage from your root partition.
    – Bernard Wei
    Nov 30 '18 at 20:34












  • Check the compressed snap usage at /var/lib/snapd/snaps to see if the actual storage is taking up a lot of the root partition.
    – Bernard Wei
    Nov 30 '18 at 20:52










  • many thanks for getting back to me. i edited my post to show the output of "du -h /var/lib/snapd/snaps". how should i fix the problem?
    – erik
    Nov 30 '18 at 20:56










  • could i fix it by mounting /var elsewhere? my /home directory is mounted on a different disk with loads of free space, could i mount /var there?
    – erik
    Nov 30 '18 at 21:03






  • 1




    just a FYI: 15gb is enough only if you don't install many programs, as you require a lot of space to release-upgrade to the next version (unless your plan is nuke & install [clean]), the current wiki recommendation is 25gb.
    – guiverc
    Nov 30 '18 at 21:42
















Your snap apps are using 11GB, that's where the problem lies. These are the apps installed via Ubuntu Store. Currently, it is using the storage from your root partition.
– Bernard Wei
Nov 30 '18 at 20:34






Your snap apps are using 11GB, that's where the problem lies. These are the apps installed via Ubuntu Store. Currently, it is using the storage from your root partition.
– Bernard Wei
Nov 30 '18 at 20:34














Check the compressed snap usage at /var/lib/snapd/snaps to see if the actual storage is taking up a lot of the root partition.
– Bernard Wei
Nov 30 '18 at 20:52




Check the compressed snap usage at /var/lib/snapd/snaps to see if the actual storage is taking up a lot of the root partition.
– Bernard Wei
Nov 30 '18 at 20:52












many thanks for getting back to me. i edited my post to show the output of "du -h /var/lib/snapd/snaps". how should i fix the problem?
– erik
Nov 30 '18 at 20:56




many thanks for getting back to me. i edited my post to show the output of "du -h /var/lib/snapd/snaps". how should i fix the problem?
– erik
Nov 30 '18 at 20:56












could i fix it by mounting /var elsewhere? my /home directory is mounted on a different disk with loads of free space, could i mount /var there?
– erik
Nov 30 '18 at 21:03




could i fix it by mounting /var elsewhere? my /home directory is mounted on a different disk with loads of free space, could i mount /var there?
– erik
Nov 30 '18 at 21:03




1




1




just a FYI: 15gb is enough only if you don't install many programs, as you require a lot of space to release-upgrade to the next version (unless your plan is nuke & install [clean]), the current wiki recommendation is 25gb.
– guiverc
Nov 30 '18 at 21:42




just a FYI: 15gb is enough only if you don't install many programs, as you require a lot of space to release-upgrade to the next version (unless your plan is nuke & install [clean]), the current wiki recommendation is 25gb.
– guiverc
Nov 30 '18 at 21:42










2 Answers
2






active

oldest

votes


















0














Boot from a live distro, shrink p4 partition, move p3 next to p4, resize p2






share|improve this answer





























    0














    i have a 256GB M2 drive on which i had installed boot, root, and swap, with leftover space mounted under /m2. then i have a 1TB drive on which i installed /home. snap filled up my /var directory.



    i think the correct solution would have been to move /var to /home/var but i couldn't get that to work.



    then i zapped swap and /m2, increased the size of root, and added back swap and /m2. but then i got errors relating to invalid sectors or corrupt disk, i can't remember exactly.



    so then i stopped using the M2 drive altogether. i tried to shrink /home and to put boot, root, and swap at the end of the 1TB drive. but this got corrupted too. in the end i did a bare metal reinstall to the 1TB drive.






    share|improve this answer





















      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1097509%2fubuntu-18-04-root-filesystem-full%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      Boot from a live distro, shrink p4 partition, move p3 next to p4, resize p2






      share|improve this answer


























        0














        Boot from a live distro, shrink p4 partition, move p3 next to p4, resize p2






        share|improve this answer
























          0












          0








          0






          Boot from a live distro, shrink p4 partition, move p3 next to p4, resize p2






          share|improve this answer












          Boot from a live distro, shrink p4 partition, move p3 next to p4, resize p2







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 1 '18 at 8:15









          jet

          5,54811720




          5,54811720

























              0














              i have a 256GB M2 drive on which i had installed boot, root, and swap, with leftover space mounted under /m2. then i have a 1TB drive on which i installed /home. snap filled up my /var directory.



              i think the correct solution would have been to move /var to /home/var but i couldn't get that to work.



              then i zapped swap and /m2, increased the size of root, and added back swap and /m2. but then i got errors relating to invalid sectors or corrupt disk, i can't remember exactly.



              so then i stopped using the M2 drive altogether. i tried to shrink /home and to put boot, root, and swap at the end of the 1TB drive. but this got corrupted too. in the end i did a bare metal reinstall to the 1TB drive.






              share|improve this answer


























                0














                i have a 256GB M2 drive on which i had installed boot, root, and swap, with leftover space mounted under /m2. then i have a 1TB drive on which i installed /home. snap filled up my /var directory.



                i think the correct solution would have been to move /var to /home/var but i couldn't get that to work.



                then i zapped swap and /m2, increased the size of root, and added back swap and /m2. but then i got errors relating to invalid sectors or corrupt disk, i can't remember exactly.



                so then i stopped using the M2 drive altogether. i tried to shrink /home and to put boot, root, and swap at the end of the 1TB drive. but this got corrupted too. in the end i did a bare metal reinstall to the 1TB drive.






                share|improve this answer
























                  0












                  0








                  0






                  i have a 256GB M2 drive on which i had installed boot, root, and swap, with leftover space mounted under /m2. then i have a 1TB drive on which i installed /home. snap filled up my /var directory.



                  i think the correct solution would have been to move /var to /home/var but i couldn't get that to work.



                  then i zapped swap and /m2, increased the size of root, and added back swap and /m2. but then i got errors relating to invalid sectors or corrupt disk, i can't remember exactly.



                  so then i stopped using the M2 drive altogether. i tried to shrink /home and to put boot, root, and swap at the end of the 1TB drive. but this got corrupted too. in the end i did a bare metal reinstall to the 1TB drive.






                  share|improve this answer












                  i have a 256GB M2 drive on which i had installed boot, root, and swap, with leftover space mounted under /m2. then i have a 1TB drive on which i installed /home. snap filled up my /var directory.



                  i think the correct solution would have been to move /var to /home/var but i couldn't get that to work.



                  then i zapped swap and /m2, increased the size of root, and added back swap and /m2. but then i got errors relating to invalid sectors or corrupt disk, i can't remember exactly.



                  so then i stopped using the M2 drive altogether. i tried to shrink /home and to put boot, root, and swap at the end of the 1TB drive. but this got corrupted too. in the end i did a bare metal reinstall to the 1TB drive.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 2 '18 at 5:49









                  user2022499

                  32




                  32






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1097509%2fubuntu-18-04-root-filesystem-full%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

                      ComboBox Display Member on multiple fields

                      Is it possible to collect Nectar points via Trainline?