I have some problem with disk usage. The monitoring tool tells me that i have only ~700mb available on root, through when looking in yast2/software management, it tells that i have 2gb free on / . Why i am getting the alert?
Please the output of
df -h
On 12/12/2010 09:36 AM, editheraven wrote:
>
> I have some problem with disk usage. The monitoring tool tells me that i
> have only ~700mb available on root, through when looking in
> yast2/software management, it tells that i have 2gb free on / . Why i am
> getting the alert?
A percentage of an ext2/3/4 file system is reserved for root. That allows you to
be able to boot into run level 3 and log in as root even when the volume is
“filled”. The default amount is 5%, which suggests that the size is 26 GB. You
can change it with tune2fs - look at “man tune2fs”. Do not make it too small, or
you will need to boot a rescue system in order to delete files as your system
will no longer boot.
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 14G 13G 728M 95% /
devtmpfs 250M 492K 249M 1% /dev
tmpfs 250M 30M 220M 12% /dev/shm
/dev/sda3 22G 1.6G 20G 8% /home
It seems you have 728mb available space for root. If I were you I would free some space for root partition with gParted. But be warned, Doing so might/may completely mess up with your system, use it if you are experineced, and a little bit lucky too
As you can see you have only 5% (700 M) left on the / file system (that is without the 5% mentioned above by lwfinger) and that is indeed is not much.
A total of 14G is not very big, but it should be enough when you do not install tons of software (I have a 20G fs with not even 6G used).
It could be that you have a lot in /tmp. Do you have the “clean* /tmp* on boot” switched on? YaST > System > /etc/sysconfig editor, in the left panel open + System + Cron and then TEMP_DIRS_TO_CLEAR, fill in /tmp and OK, reboot and see if it helps. You can also play a bit with the other variables there, but this is the most important one.
Also in* /var/log/,* ther can be a lot of old log files. You can remove the older ones.
- Look if there are some core files you may delete:
su -l
find / -type f -name "*.core"
- Look if there some packages you don’t need and may deinstall
If that doesn’t free enough space, you can
- either use symlinks and move some directories to sda3 (not very elegant though)
- or boot with partedMagic, shrink sda3 by 5 to 10G and resize sda2. It is not garanteed to work. So don’t try that without backing up your data first!
Oh yes ! hcvv is right. More likely your /tmp directory is full of garbage. Dunno why I didn’t think about that. :\
No, the /tmp has only a few 100 of kb.
Anyway, i don’t understand why yast shows me 1.5 gb free on root and disk managament shows half.
The difference could be the 5% lwfinger allready mentioned (5% of 14G is also about 7 M). Some tools see it as free. And infact it is and when a root process tries to get it it will succeed. Only non root processes will not be allowed.
The classical way to find what fills a file system when the first thought (like /tmp) are false is to use (as root)
cd /
du -sk *
and try to find out which one of the lines seems to be specialy big. Then cd to it and repeat the* du -sk ** until you find with try and error a suspicious bunch of files. BTW when you find something and hesitate to delete them, first ask for advice here
Ok i resized the root part. Now how do i get it to boot again? It gives some hashing values mismatch and stops loading.
I speacially told you this was risky, I guess during the process your file system messed up. I am not sure if there is a way to recover from that point