LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-28-2003, 01:09 PM   #1
JM_Fraser
Newbie
 
Registered: Nov 2003
Location: London, UK
Distribution: RH
Posts: 24

Rep: Reputation: 15
HELP! - root directory "/" 100% CAPACITY


For some reason I have reached 100% capacity on the "/" directory. I have no idea how, but SOME QUICK SUGGESTIONS as to what I should delete before system CRASH! HELP!!!!!!!!!!!!!!!!!!!!!!
 
Old 11-28-2003, 01:22 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
/tmp <remove all if necessary>

/var/log <clear out some log files>
 
Old 11-28-2003, 01:25 PM   #3
JM_Fraser
Newbie
 
Registered: Nov 2003
Location: London, UK
Distribution: RH
Posts: 24

Original Poster
Rep: Reputation: 15
have done this with both and I nhave have got 420K avail! have NO IDEA what could be taking up the space. the "/" size is 372MB
 
Old 11-28-2003, 01:27 PM   #4
JM_Fraser
Newbie
 
Registered: Nov 2003
Location: London, UK
Distribution: RH
Posts: 24

Original Poster
Rep: Reputation: 15
was trying to up2date samba and nsystem said that it could not cos no room on "/"
 
Old 11-28-2003, 01:52 PM   #5
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
372Mb? That's all?

Do you have any other partitions or free space elsewhere?
 
Old 11-28-2003, 02:10 PM   #6
JM_Fraser
Newbie
 
Registered: Nov 2003
Location: London, UK
Distribution: RH
Posts: 24

Original Poster
Rep: Reputation: 15
I have GB of free space elsewhere, what can I move to the other place?
 
Old 11-28-2003, 02:29 PM   #7
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
Try this to find where your problem is:

du -k / |sort -rn > /your_free_space_elsewhere/duk.txt

then:

less /your_free_space_elsewhere/duk.txt

This will show the size of each directory, and any and all directories below it, with the largest at the top. The -k means show it in kilobytes, so be sure to add ',000' to each number.

So, if you see, for example, /usr with a large size and then somewhere below you see /usr/some_sub_directory, the /usr size includes the subdirectory size.

For instance, here's some lines from mine:
7127587 /
4219980 /usr
1808064 /usr/lib
1575276 /usr/share
1179580 /home
1177452 /home/bsl1
919317 /proc
637032 /home/bsl1/Music

Here, / has a little over 7 gig, which includes /usr which has a little over 4 gig, which includes the 1.8 gig down in /usr/lib, etc...
 
Old 11-28-2003, 02:42 PM   #8
JM_Fraser
Newbie
 
Registered: Nov 2003
Location: London, UK
Distribution: RH
Posts: 24

Original Poster
Rep: Reputation: 15
I wasn't aware that /usr has a direct bearing on /

I thought it was on a different partition. If I chuck some stuff out of /usr, should this alleviate the problem? I am a little unsure as to what directories bear on others close by.
 
Old 11-28-2003, 02:51 PM   #9
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
Well, it depends on how you have partitions set up in /etc/fstab.
But if you just have a / partition, then /usr is below it in the tree. I just didn't happen to choose to put /usr on a separate partition on my system. If you have a separate /usr partition that you can see in /etc/fstab, then simply don't include the size of it in the / size.
Basically every directory on your hard drive will be under / if you don't have other partitions.

However, I was just using /usr as an example.
What does your output of the du command show?
That will show the directories with the most stuff in them.

Maybe you could copy and paste here the first 20 or so lines from that output.
Also, copy and paste your /etc/fstab.
 
Old 11-28-2003, 03:00 PM   #10
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally posted by JM_Fraser
I wasn't aware that /usr has a direct bearing on /

I thought it was on a different partition. If I chuck some stuff out of /usr, should this alleviate the problem? I am a little unsure as to what directories bear on others close by.
If its not on its own partition everything falls and will be installed under /

So if you have /usr under / and not on its own partition, one easy thing to do to free up some space would be to chuck /usr/bin to a new partition and mount it on its own partition in fstab, etc. /usr/bin probably is taking up the bulk of the space as the majority of your command programs and commands are stored and installed there.

Hope this helps you clear out some space, etc.
 
Old 11-28-2003, 04:34 PM   #11
JM_Fraser
Newbie
 
Registered: Nov 2003
Location: London, UK
Distribution: RH
Posts: 24

Original Poster
Rep: Reputation: 15
How can I export these views so that I can paste them here for scrutiny?
 
Old 11-28-2003, 04:41 PM   #12
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 45
Select and highlight the text with your left mouse button and then paste it here with the middle mouse button.
Or , you can select and highlight the text with your left mouse button and then right click and select 'copy'. Then paste it here with right click and 'paste'.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 05:08 PM
failed "Read Cd/Dvd Capacity" FC4 on a HP Pav8000 evans0409 Linux - Hardware 4 10-14-2005 06:50 PM
Hard drive capacity suddenly "0" edlentz Linux - Hardware 2 08-05-2005 06:30 AM
what is the difference between "/" root directory and "/root" directory? augustus123 Linux - General 4 11-20-2004 06:22 PM
accidentally renamed my root " / " directory rioguia Linux - Newbie 24 10-28-2004 03:47 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration