LinHES Forums

full slash partition
Page 1 of 1

Author:  oratam [ Sat Mar 24, 2018 6:25 pm ]
Post subject:  full slash partition

This machine has been running for a month now and the /partition reached 99%.

I have the os running in either a 120 gb ssd

I have 4 6 tb drives for media storage.

Is there an easy way to clean the drive? What suggestions do you have?

Author:  knappster [ Sat Mar 24, 2018 6:58 pm ]
Post subject:  Re: full slash partition

How much space is allocated to the root partition (/)?
This is my output for
df -h
Filesystem      Size  Used Avail Use% Mounted on
dev             3.9G     0  3.9G   0% /dev
run             3.9G  504K  3.9G   1% /run
/dev/sda1       4.5G  3.4G  921M  79% /
shm             3.9G     0  3.9G   0% /dev/shm
/dev/sda7       437G  135G  302G  31% /data/storage/disk0
/dev/sda5        13G  5.3G  6.7G  45% /home
/dev/sda6       4.5G  196M  4.1G   5% /data/srv/mysql

I've had linhe s for about 5 years with this machine. If your root partition is at 99% after a month then something is wrong. Have you checked your logs?

Author:  oratam [ Sat Mar 24, 2018 7:41 pm ]
Post subject:  Re: full slash partition

my / partition is only 40 gigs, this was a default install of 8.5.1

Author:  mattbatt [ Sat Mar 24, 2018 9:49 pm ]
Post subject:  Re: full slash partition

I found this forum post. viewtopic.php?f=21&t=23668&start=15
where you can use this code to figure out where the hard drive space is being eaten up.
du -hx -d 1 / 2>/dev/null

Also some tips on how to increase your drive space.

Author:  knappster [ Sun Mar 25, 2018 4:56 am ]
Post subject:  Re: full slash partition

Follow mattbatt's advice. As you can see from my post, the root partition is only 4.5 GB on my machine and it is only 79% full. For yours to be 99% full on a 40 GB means that something is using a lot of storage that it shouldn't be.

Author:  nbdwt73 [ Wed Mar 28, 2018 5:10 am ]
Post subject:  Re: full slash partition

I have had issues with my root partition before. I started using the following command to identify the specific files eating up space. You can change "head -n 10" to whatever file minimum number of files you are looking for (example "head -n 25" for top 25 files). Also, you can exclude certain root folders (or symbolics) by using -not -path...

find / -type f -not -path "/mnt/*" -not -path "/data/*" -exec du -Sh {} + | sort -rh | head -n 10

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group