File System Problem

Taking care of your Linux box.

File System Problem

Postby smunir362 » Thu Mar 17, 2011 7:22 pm

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.
smunir362
Cadet
 
Posts: 7
Joined: Sat Sep 29, 2007 6:51 am

Postby khizer » Thu Mar 17, 2011 7:45 pm

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:

Code: Select all

du -h --max-depth=1 /


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-

Code: Select all

mount

2-

Code: Select all

df -h

3-

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.
khizer
Lance Naik
 
Posts: 20
Joined: Fri Feb 25, 2011 2:40 am
Location: Sharjah

Postby lambda » Sat Mar 19, 2011 2:32 am

if it's a desktop with gnome installed, try using the "disk usage analyzer" under the accessories applications menu.

this will work everywhere:

Code: Select all

du -sk /* | sort -nr | more
when you find an unusually large directory, repeat that inside it:

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"?
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby smunir362 » Mon Mar 21, 2011 11:48 pm

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.
smunir362
Cadet
 
Posts: 7
Joined: Sat Sep 29, 2007 6:51 am

Postby khizer » Tue Mar 22, 2011 12:02 am

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.


Its impossible to tell the aspect of your problem from the given information.

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.
khizer
Lance Naik
 
Posts: 20
Joined: Fri Feb 25, 2011 2:40 am
Location: Sharjah

Postby mudasir » Fri Mar 25, 2011 9:04 pm

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"
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
mudasir
Captain
 
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Website: http://www.crystalnetworks.org
Location: Dubai


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 2 guests

cron