My Linux Box was running well. But next day I have come to know that its root partition is 100% Full.
How to investigate and overcome this issue.
Please help me.
File System Problem
If you are able to boot normally and just want to find out what is taking up whole space, then go to the terminal (make sure you are a root user) and run the following command:
this will show you the size of each of the directory under the root partition.
You can then follow the directory which is unusually using up more space.
If you are new to linux you can run the following commands and paste the output here so that we can help you.
1-
2-
3-
If you are unable to boot up properly, try booting in a single user mode or use a live fedora/linux cd.
Code: Select all
du -h --max-depth=1 /
You can then follow the directory which is unusually using up more space.
If you are new to linux you can run the following commands and paste the output here so that we can help you.
1-
Code: Select all
mount
Code: Select all
df -h
Code: Select all
du -h --max-depth=1 /
If you are unable to boot up properly, try booting in a single user mode or use a live fedora/linux cd.
Last edited by khizer on Tue Mar 22, 2011 12:02 am, edited 1 time in total.
-Khizer Naeem Mughal
Knowledge is often mistaken for intelligence. This is like mistaking a cup of milk for a cow.
Knowledge is often mistaken for intelligence. This is like mistaking a cup of milk for a cow.
if it's a desktop with gnome installed, try using the "disk usage analyzer" under the accessories applications menu.
this will work everywhere:when you find an unusually large directory, repeat that inside it:
this will work everywhere:
Code: Select all
du -sk /* | sort -nr | more
Code: Select all
du -sk /dirname/* | sort -nr | more
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
Its impossible to tell the aspect of your problem from the given information.smunir362 wrote:will u please tell me all the aspect of this problem.
I run du -chs command against /.
# cd /
# du -chs *
All folder have not enough size. It means no directory cause 100% / full.
I think there problem is some where else.
If you want us to help you, please provide the output of the three commands I told you.
Help us in helping you
-Khizer Naeem Mughal
Knowledge is often mistaken for intelligence. This is like mistaking a cup of milk for a cow.
Knowledge is often mistaken for intelligence. This is like mistaking a cup of milk for a cow.
Hi,
When you login goto to / then run "du -sh * | grep G" this will show you size of all, next look for very odd sized folder, normally this is VAR bcz of logs (as per my past experience), then goto the odd sized folder using cd, then again perform the same task "du -sh *" by doing this you will to know the exact point bcz of which filesystem got 100%.
Or you can always use find command to find files larger then particular size.
use "man find"
When you login goto to / then run "du -sh * | grep G" this will show you size of all, next look for very odd sized folder, normally this is VAR bcz of logs (as per my past experience), then goto the odd sized folder using cd, then again perform the same task "du -sh *" by doing this you will to know the exact point bcz of which filesystem got 100%.
Or you can always use find command to find files larger then particular size.
use "man find"
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com