The officially official Devuan Forum!

You are not logged in.

#1 2023-10-23 21:16:42

rhtoras
Member
Registered: 2020-12-25
Posts: 21  

[SOLVED] my / partition is full but why ?

Hello i use devuan daedalus. My partition scheme has 4 partitions 1. for bootloader, 1 for swap, 1 for root and 1 for /home.
My ssd is almost 500gb (patriot ssd if that matters)
my / is now over 90+ big and i cannot understand why since i only use minimal applications for certain reasons.
df -h shows:

Filesystem      Size  Used Avail Use% Mounted on
udev            6.8G     0  6.8G   0% /dev
tmpfs           1.4G  1.3M  1.4G   1% /run
/dev/sda2        28G   25G  1.1G  96% /
tmpfs           5.0M   16K  5.0M   1% /run/lock
tmpfs           3.0G  216K  3.0G   1% /dev/shm
/dev/sda1       511M  5.9M  506M   2% /boot/efi
/dev/sda4       440G   25G  393G   6% /home
cgroup_root      10M     0   10M   0% /sys/fs/cgroup
tmpfs           1.4G  2.5M  1.4G   1% /run/user/1000
/dev/sdc1        15G   12G  2.6G  83% /media/rhtoras/Ventoy 

i examined everything via du and df commands, then tried gui (mate and ncdu) and nothing...

fyi

find . -maxdepth 1 -mindepth 1 -type d -exec du -sh {} \; | sort -rh | head

leads to...

18G	./Downloads
2.3G	./Documents
1.7G	./.cache
1.5G	./ekpompes
516M	./.mozilla
396M	./.local
185M	./.config
51M	./Videos
19M	./Pictures
596K	./.ssr

Offline

#2 2023-10-23 21:27:20

Dutch_Master
Member
Registered: 2018-05-31
Posts: 277  

Re: [SOLVED] my / partition is full but why ?

This is why having separate partitions for stuff like /var, /usr and /tmp are advised. Certainly I do adhere to this smile

Your Downloads folder is huge and the key reason why your / has filled up. I take it you downloaded a lot so clearing that one out will release a decent amount of storage.

Online

#3 2023-10-23 22:01:04

rhtoras
Member
Registered: 2020-12-25
Posts: 21  

Re: [SOLVED] my / partition is full but why ?

Dutch_Master wrote:

This is why having separate partitions for stuff like /var, /usr and /tmp are advised. Certainly I do adhere to this smile

Your Downloads folder is huge and the key reason why your / has filled up. I take it you downloaded a lot so clearing that one out will release a decent amount of storage.

well in most cases seperate partition for /var /usr and /tmp won't be a thing to consider
but i have a seperate /home partition which is around 440 gb and i am using only 6% of it
why my / is full i don't get it and i think i know what i am doing...
generally / is where things like programmes are stored while /home is where personall folders are stored
you are saying i have to create a bigger / partition rather than /home partition ? I don't get it but i would like to see what you are talking about...
thanks!

Offline

#4 2023-10-23 22:35:09

Dutch_Master
Member
Registered: 2018-05-31
Posts: 277  

Re: [SOLVED] my / partition is full but why ?

Well, in short: if a folder doesn't have its own partition, it's hanging under the / in the tree. Which means its data is stored on the / partition. So in your case, /var, /usr and /tmp are filling up the / partition if a rogue process continues to write data to it. Frequently, log files (/var/log) can become huge and thus clog up the system. Other sources of trouble exist as well, like malware etc. That's for you to figure out wink

Tip: the ls command has info on size of the directory:

ls -l /var
ls -l /usr
ls -l /tmp

Probably best results as root.

Last edited by Dutch_Master (2023-10-23 22:35:28)

Online

#5 2023-10-23 22:59:52

GlennW
Member
From: Brisbane, Australia
Registered: 2019-07-18
Posts: 590  

Re: [SOLVED] my / partition is full but why ?

I used to have a /boot partition, but with UEFI it was difficult to manage the size (it only filled up once but that was enough),

so I stopped worrying about /boot file space. (The bios partition only requires 100Mb)

your / is 28Gb... I reserve 28Gb just for /var. here's the rest...

df -h

glenn@GamesBox ~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            7.8G     0  7.8G   0% /dev
tmpfs           1.6G  1.4M  1.6G   1% /run
/dev/sda2        22G  1.3G   19G   7% /
/dev/sda6        17G  9.6G  5.8G  63% /usr
tmpfs           5.0M   16K  5.0M   1% /run/lock
tmpfs           3.7G     0  3.7G   0% /dev/shm
/dev/sda7       865G  121G  700G  15% /home
/dev/sdc6        58G   18G   38G  32% /home/glenn/local/archive
/dev/sdc2       295G  208G   73G  75% /home/glenn/local/data
/dev/sdc5       472G  119G  329G  27% /home/glenn/local/free
/dev/sdc7       711G   50G  625G   8% /home/glenn/local/media/circus
/dev/sdc9       480G  255G  201G  56% /home/glenn/local/media/movies
/dev/sdc8       961G  103G  809G  12% /home/glenn/local/media/music
/dev/sdc1       207G   12G  185G   6% /home/glenn/local/other
/dev/sdc3       480G   58G  398G  13% /home/glenn/local/spare
/dev/sda5       2.9G   17M  2.7G   1% /tmp
/dev/sda3       8.1G  1.6G  6.1G  21% /var
/dev/loop0      3.7G  3.7G     0 100% /home/glenn/local/archive/debs/iso/devuan_daedalus_5.0.1_i386_desktop
/dev/loop1      3.8G  3.8G     0 100% /home/glenn/local/archive/debs/iso/devuan_daedalus_5.0.1_amd64_desktop
cgroup_root      10M     0   10M   0% /sys/fs/cgroup
tmpfs           1.6G   12K  1.6G   1% /run/user/1000
glenn@GamesBox ~ $ 

Some places you can check for swelling...
/tmp/
/var/log/
/var/cache/apt/archives/

just my two cents worth. :-)


pic from 1993, new guitar day.

Offline

#6 2023-10-24 07:08:17

rhtoras
Member
Registered: 2020-12-25
Posts: 21  

Re: [SOLVED] my / partition is full but why ?

Dutch_Master wrote:

Well, in short: if a folder doesn't have its own partition, it's hanging under the / in the tree. Which means its data is stored on the / partition. So in your case, /var, /usr and /tmp are filling up the / partition if a rogue process continues to write data to it. Frequently, log files (/var/log) can become huge and thus clog up the system. Other sources of trouble exist as well, like malware etc. That's for you to figure out wink

Tip: the ls command has info on size of the directory:

ls -l /var
ls -l /usr
ls -l /tmp

Probably best results as root.

Thanks...
What i was doing is i added too much iso's on /var/lib/libvirt/images
I guess i had to add more gb on / though...

Offline

Board footer