my / partition is getting loaded up....how to clean?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
my / partition is getting loaded up....how to clean?
I've installed a few programs I use, many in fact, along with Xfce 4.6.0 and my / partition has gone from 4.39 gigs to 8.63 gigs. Total is 13 gigs. I've never seen it this high, ever. I sense that something is accumulating somewhere that can be cleaned out...am I right?
The chances of your root partition getting close to 13gbs are rather dramatically low, assuming you have a seperate /home (storage partition), or /var if you run a server.
If you dont plan on installing many other things dont "clean" it. But its your system and you know what you dont need etc.
Noone can tell you what to get rid of if you dont know.
I sense that something is accumulating somewhere that can be cleaned out...am I right?
Perhaps. Perhaps not. You installed many packages and the total storage could be as you report. On the other hand consider posting your partition scheme. If you do not use separate /home, /var, or /tmp partitions, those directories would be good candidates to investigate. There are several threads here at LQ addressing how to clean those directories.
On this Dell Precision Laptop m4400, I have a / of 13 gigs, and /home of 70 gigs and a 2 gig swap. I've just never seen / so high with other distro's with same or more programs...I thought maybe a cache or something was building up from sbopkg, or what not...still learning my way around... It's dual boot with Vista Bus 64...so I still keep my photo's and music shared with the Vista partition. I.e. picasa scans off my /vista/users/john/et etc
Last edited by joutlancpa; 04-12-2009 at 11:06 PM.
Perhaps you have some ISO images consuming space? Possibly you have all the source files for the packages you created still on the partition?
As root you could try running find / -size +1G to find all files greater than 1GB in size.
You also could try du -hs on any suspect directory. As you did not list separate /var or /tmp partitions, try running du -hs on those directories.
Thanks...I'll check that....I did find the source files were still sitting around when I ran sbopkg utilities and deleted them. I'll recheck it and snoop around so I better know what's going on here. I'm just a CPA, not a hacker, and an old one at that, so some things take more effort than they used to
If you use Slackbuild scripts and never clean up /tmp/, your / will grow a lot after some time.
Create (if you don't already have it) a file called /rc.local_shutdown and put it in /etc/rc.d.
Then put this line in it
On this Dell Precision Laptop m4400, I have a / of 13 gigs, and /home of 70 gigs and a 2 gig swap. I've just never seen / so high with other distro's with same or more programs...
If you are reffering to Debian or Debian-based distributions thats more or less logical since Slackware doesnt split packages to foo-dev etc.
thanks all of you for that....I bet my /tmp is screaming to be cleaned...I'll make those file entries....great forum guys (and gals? any gals around here?
EDIT: My /tmp is 3.9 gigs !! that brings it download to reality....
Last edited by joutlancpa; 04-13-2009 at 07:04 PM.
If you use Slackbuild scripts and never clean up /tmp/, your / will grow a lot after some time.
Create (if you don't already have it) a file called /rc.local_shutdown and put it in /etc/rc.d.
Then put this line in it
and make it executable.
That way, your /tmp/ will be cleaned automatically when you shutdown your computer.
Great...thanks 3.9 gigs in my /tmp !!
EDIT: that script is not cleaning my /tmp....i've done something wrong....i put rc.local_shutdown into the /etc/rc.d directory with the line you posted. Is this correct? thanks, I'd like to automate this part of house cleaning
EDIT2: Didn't make it executable...duh....
Last edited by joutlancpa; 04-13-2009 at 10:23 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.