LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 03-30-2007, 02:31 AM   #1
sunhui
Member
 
Registered: Jan 2006
Location: taiwan
Posts: 156

Rep: Reputation: 30
The / directory is full


The / directory is 100% used now , but I am sure what I have done that made it full , can advise how can I know what large file is in / directory ? how can I know the size of each directory ?

p.s. I try to check with "top" but nothing found .
 
Old 03-30-2007, 02:39 AM   #2
Unknown_User
Member
 
Registered: Jan 2003
Location: EU (UK)
Distribution: Ubuntu 10.x, Fedora 9, OpenSuSE 11.3, Mythbuntu (Don't know it? Try - it rocks!)
Posts: 225

Rep: Reputation: 30
Use the find command;

# find / -type f -size +20000k

(Change the +20000k to whatever size you want to look for.)
 
Old 03-30-2007, 02:43 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
top is for processes and cpu usage. it's about as much use as a shrew in a tuxedo here. you want to look at the du command to see how much disk space is being used by what directories. run a command like "du -xh --max depth=1 /" and that will show you the usage of all directories in the first level of the / filesystem that shoudl get you going. if you need to narrow it down further, just change / to /tmp etc...
 
Old 03-30-2007, 05:42 AM   #4
ajaz_javeed
LQ Newbie
 
Registered: Jan 2007
Posts: 24

Rep: Reputation: 15
Hello Sunhui,
Please use the following command to check the size of each directory :

# du -sh <dir-name> (/tmp,/var,etc)

Thanks and Regards
AJAZ
 
Old 03-30-2007, 05:55 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,345

Rep: Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945Reputation: 1945
Quote:
Originally Posted by ajaz_javeed
Hello Sunhui,
Please use the following command to check the size of each directory :

# du -sh <dir-name> (/tmp,/var,etc)

Thanks and Regards
AJAZ
i said virtually the same thing 3 hours ago...
 
Old 03-30-2007, 12:11 PM   #6
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by Unknown_User
Use the find command;

# find / -type f -size +20000k

(Change the +20000k to whatever size you want to look for.)
OP didn't specify distro.

I have in the past seen postfix malfunction and send emails to root reporting the malfunction (which were kept in the queue because postfix was malfunctioning). One of these came out every 60 seconds and over a period of time filled the HD with a couple of million messages which remained queued.

The point of this? Use find to establish the status of not merely files but directories too:

find / -type d -size +20k

will pick these up and could identify the problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/root directory full kpachopoulos Linux - General 6 07-07-2005 12:01 AM
when will heppen if the / directory is full ust Fedora 1 04-13-2005 10:18 PM
X not running, Root directory full. Serendipity0404 Linux - General 3 04-04-2005 05:00 PM
/tmp directory is full? Moses420ca Linux - Newbie 13 01-21-2005 07:48 PM
how to remove full directory ? marlor Slackware 9 09-24-2004 07:18 AM


All times are GMT -5. The time now is 02:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration