LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-02-2006, 05:32 PM   #1
itzig
Member
 
Registered: Jan 2006
Location: bay area
Distribution: slackware, Ubunutu, OSX
Posts: 77

Rep: Reputation: 15
running out of space on root disc


Hi!

I keep running out of space on dev/hda6 (my root partition)
I have it set to 16 GB, I use max 3GB for my stuff, the fresh installation only took up abut 3GB. I did install a bunch more packages, but I don't think that's 10GB worth!
Are there any temp directories I can delete? How do I find them?

thanks!
 
Old 07-02-2006, 05:43 PM   #2
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 50
du -sh <dir> will show you how big <dir> is. You can use it to search for big files.
 
Old 07-02-2006, 07:30 PM   #3
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Check the size of /tmp and better yet /var/log
 
Old 07-02-2006, 10:28 PM   #4
itzig
Member
 
Registered: Jan 2006
Location: bay area
Distribution: slackware, Ubunutu, OSX
Posts: 77

Original Poster
Rep: Reputation: 15
thanks, I get:
7.8G /root --> there are no files in there that could add up that much!
3.7G /home/ --> same here, I have a max of 1.5GB in there, not 3.7!!?

I never use /root, I have no idea why it is that large??
 
Old 07-02-2006, 11:04 PM   #5
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,664
Blog Entries: 7

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
Quote:
Originally Posted by itzig
I never use /root, I have no idea why it is that large??
# cd /root
# ls -la

will reveal all...
 
Old 07-03-2006, 12:32 AM   #6
jp-lack
Member
 
Registered: Mar 2005
Location: NJ - US
Distribution: Slackware
Posts: 93

Rep: Reputation: 15
try

#du -h --max-depth=1 <dir>

Last edited by jp-lack; 07-03-2006 at 12:35 AM.
 
Old 07-03-2006, 12:37 AM   #7
itzig
Member
 
Registered: Jan 2006
Location: bay area
Distribution: slackware, Ubunutu, OSX
Posts: 77

Original Poster
Rep: Reputation: 15
thanks, but that still doesn't add up to 7.8GB !??

-rw-r--r-- 1 root root 55 2006-04-19 06:46 .DCOPserver_wildblue__1
-rw------- 1 root root 1546 2006-07-02 22:32 .ICEauthority
-rw------- 1 root root 0 2006-06-03 13:32 .Xauthority
-rw------- 1 root root 12872 2006-07-02 22:33 .bash_history
-rw------- 1 root root 26 2006-04-19 06:46 .dmrc
-rw-r--r-- 1 root root 0 2006-06-01 22:21 .fonts.cache-1
drwx------ 4 root root 200 2006-04-19 06:46 .kde
-rw------- 1 root root 160 2006-04-19 06:46 .kderc
drwx------ 3 root root 72 2006-04-02 13:06 .local
drwxr-xr-x 3 root root 112 2006-04-02 09:46 .mcop
-rw------- 1 root root 31 2006-06-30 17:35 .mcoprc
drwxr-xr-x 2 root root 72 2006-04-30 20:04 .mplayer
drwxr-xr-x 2 root root 176 2006-06-03 13:18 .qt
drwx------ 4 root root 96 2006-04-17 16:42 .thumbnails
drwxr-xr-x 2 root root 168 2006-05-06 21:05 .xine
-rw-r--r-- 1 root root 536 2006-03-30 06:23 .xinitrc
drwxr-xr-x 4 root root 168 2006-04-02 14:30 .xmms
-rw------- 1 root root 1869 2006-06-03 13:32 .xsession-errors
-rw------- 1 root root 22638 2006-04-19 16:45 .xsession-errors-:1
drwx------ 2 root root 176 2006-04-19 06:46 Desktop
-rw-r--r-- 1 root root 1808 2002-04-16 21:21 loadlin16c.txt
-rw-r--r-- 1 root root 97874 2002-04-16 21:20 loadlin16c.zip
 
Old 07-03-2006, 02:01 AM   #8
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,664
Blog Entries: 7

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
Quote:
Originally Posted by itzig
drwx------ 4 root root 200 2006-04-19 06:46 .kde
-rw------- 1 root root 160 2006-04-19 06:46 .kderc
drwx------ 2 root root 176 2006-04-19 06:46 Desktop
The presence of these directories tell me that you have logged into KDE as root at least once.

Maybe you downloaded something to the desktop while you were there?
 
Old 07-03-2006, 02:59 AM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
su -sm /* | sort -g

And then the same for the biggest dirs, e.g.
su -sm /usr/* | sort -g


Cheers,
Tink
 
Old 07-03-2006, 03:19 AM   #10
ledow
Member
 
Registered: Apr 2005
Location: UK
Distribution: Slackware 13.0
Posts: 241

Rep: Reputation: 34
All those hidden directories fill up with all sorts of nonsense. I bet you've been using root as your normal user.

.thumbnails will fill up with thumbnail images of ANY image you've ever seen in a file browser or file viewing application. You can usually safely delete it's contents but I haven't yet found a way to stop certain apps from regenerating them. .mplayer and .xine will fill up with playlists and all sorts of other junk.

.xsession-errors will probably be full of crash reports etc. from programs that you've run under X.

Additionally, Desktop is a nightmare if you are used to saving things on the desktop from Windows.

First, STOP USING ROOT as a normal account. That sort of accumulation only really happens in /root if someone's been logged in as root. Everything else tends to write to the filesystem in general (even X etc.).

Second, trimming the filesystem is an important skill, knowing what to delete and what not to. Do familiarise yourself with the du etc. commands so that this is not a problem. Find a nice spot to throw stuff until you are sure the system works without it (I have a habit of using /lost+found but that's not the best way to do it. a directory in the root or in /tmp is probably better), move anything you don't think you need there, then test the system with a reboot, login, etc. to check things still work before you rm them.

This also goes for finding the proper places to save things to. Don't use the crap My Documents/Desktop setup of Windows - you have a homedir and that's where you stick ALL your files. If you want a shortcut on the desktop, make a SHORTCUT (symlink), not a copy of the file. When you start to admin machines you quickly find people who use the Desktop as a filesystem in itself - don't. It decreases performance on certain setups (those that have to transmit user profiles etc.), it's easy to accidentally move/delete stuff on there, it makes backing up harder if personal files are spread everywhere and have multiple copies.

By default, 5% of any filesystem is set aside PURELY for root to use. No other user has access to that 5%. If you fill up the disk as a user, you don't need to worry becuase root will always have enough space to get stuff done (move files about, run programs etc.). If you fill up root's allocation, though, you could run into a lot more hassle to clear it up.
 
Old 07-03-2006, 02:03 PM   #11
itzig
Member
 
Registered: Jan 2006
Location: bay area
Distribution: slackware, Ubunutu, OSX
Posts: 77

Original Poster
Rep: Reputation: 15
thank you, good info! I found the trash directories which were filled to the brim!
/root/.local/share/trash
that fixed it! plenty space now..
 
Old 07-03-2006, 07:19 PM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
And are you heeding the warning NOT to run as root?


Cheers,
Tink
 
Old 07-03-2006, 07:27 PM   #13
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
I guess you were talking of du:
Quote:
Originally Posted by Tinkster
du -sm /* | sort -g

And then the same for the biggest dirs, e.g.
du -sm /usr/* | sort -g


Cheers,
Tink
If you have a recent KDE, there is a usefull view: In konqueror, use File Size View.
 
Old 07-04-2006, 01:21 AM   #14
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
In deed :}

Old age doesn't protect from fat fingers!


Cheers,
Tink
 
Old 07-05-2006, 09:00 AM   #15
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
P.S. Slackware doesn't automatically purge /tmp. We had a thread (maybe more than one!) on this. Most of the guys just write their own script to clean up while shutting down.

Conversely, OpenBSD cleans /tmp on the way up. That makes sense for diagnosis since you can boot a live CD and look at /tmp if you haven't restarted.

I like my init to run fast so I clean up on shutdown.
 
  


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
limit disc space ampena Debian 1 11-13-2005 10:52 PM
Help~! Strange Disc Full ...running out of space... max_tcs Linux - Newbie 8 06-20-2005 07:46 AM
How do I read disc and space used information on a DVD? opera_sys Linux - Hardware 1 07-19-2004 11:28 AM
running out of space on root partition timsch75 Linux - Newbie 5 03-23-2004 03:49 PM
hard disc space (and samba?) milesstandish Linux - General 5 11-27-2002 10:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:10 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
Open Source Consulting | Domain Registration