Score:0

/dev/nvme0n1p1 has no available space and use 100%, how to clean it?

cn flag

df -h show this -

Filesystem      Size  Used Avail Use% Mounted on
udev            7.7G     0  7.7G   0% /dev
tmpfs           1.6G   27M  1.6G   2% /run
/dev/nvme0n1p1  234G  234G     0 100% /
tmpfs           7.7G  143M  7.6G   2% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           7.7G     0  7.7G   0% /sys/fs/cgroup
/dev/loop0      219M  219M     0 100% /snap/gnome-3-34-1804/77
/dev/loop1      219M  219M     0 100% /snap/gnome-3-34-1804/72
/dev/loop2      2.5M  2.5M     0 100% /snap/gnome-calculator/884
/dev/loop3      768K  768K     0 100% /snap/gnome-characters/761
/dev/loop4      248M  248M     0 100% /snap/gnome-3-38-2004/87
/dev/loop5       66M   66M     0 100% /snap/gtk-common-themes/1515
/dev/loop7      2.7M  2.7M     0 100% /snap/gnome-system-monitor/169
/dev/loop8       66M   66M     0 100% /snap/gtk-common-themes/1519
/dev/loop6      243M  243M     0 100% /snap/gnome-3-38-2004/76
/dev/loop9      2.7M  2.7M     0 100% /snap/gnome-system-monitor/174
/dev/loop10     128K  128K     0 100% /snap/bare/5
/dev/loop11      56M   56M     0 100% /snap/core18/2246
/dev/loop12      56M   56M     0 100% /snap/core18/2253
/dev/loop13     2.5M  2.5M     0 100% /snap/gnome-calculator/748
/dev/loop14      62M   62M     0 100% /snap/core20/1270
/dev/loop15     640K  640K     0 100% /snap/gnome-logs/106
/dev/loop16      62M   62M     0 100% /snap/core20/1242
/dev/loop17      43M   43M     0 100% /snap/snapd/14066
/dev/loop18     1.0M  1.0M     0 100% /snap/gnome-logs/100
/dev/loop19     768K  768K     0 100% /snap/gnome-characters/726
/dev/sda1       458G  7.0G  428G   2% /home
/dev/sda5        92G  528M   86G   1% /opt
tmpfs           1.6G   24K  1.6G   1% /run/user/121
tmpfs           1.6G   68K  1.6G   1% /run/user/1000
/dev/loop21      44M   44M     0 100% /snap/snapd/14295

log files are not using any space

sudodus avatar
jp flag
Did you try to remove some file yet? In that case, what happened?
Shivam Gupta avatar
cn flag
I'm not sure what to remove I tried removing the installed apps but it remains the same.
aq flag
I'd start with `sudo du -h -d1 /` to see where the usage is. Once you find the large directory, do it again with that directory instead of /, repeat until you find what is using the most the space.
sudodus avatar
jp flag
But I suspect that you have some huge file (files). You can check with `sudo du -hs /* | sort -h`, and then `cd` to a huge directory and run `sudo du -hs * | sort -h` etc until you find some big file(s) that you were not aware of. Next try to find out why they were created and fix that problem (probably in another question).
sudodus avatar
jp flag
What apps (how did you install them (apt, snap, tarball ...))? If via apt, try also `sudo apt autoclean` and `sudo apt clean`
vanadium avatar
cn flag
See https://askubuntu.com/questions/706359/root-partition-full and similar questions
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.