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.
Today I was installing a lot of software since I'm just setting up my Slackware system again after a fresh install, and I realized that my root partition has very little space left. Here is the output of df -h:
As you can see, I have a 20G (19G here for some reason) root partition, 8G /var, and 86G of /home. I thought this would be plenty since many recent recommendations for / are 10-15G. Now, though, 17G are used up for some reason! How is this possible? I thought a full slackware install only had about 4G of software! I don't have any music or movies or any crazy huge files that I know of, and those would be in my /home directory anyway. Is there any way I can see which files are taking up all this space?
If it's necessary to allocate more space to my / partition, is it still possible to boot up a GParted live Cd, shrink /home a bit, move some partitions to the right, and expand my root partition? I would REALLY prefer I don't have to reinstall since I just spent a ton of time setting up my system again, but if worst comes to worst ... :'-(
Well, looks like I found out the problem was my /tmp was loaded with garbage from all the builds I've done. However, I still have 7.9/19 gigs used in my root partition, and I don't know if I have enough space. Like I said, is it still possible and safe to boot up GParted and resize my /home and expand / ?
And why doesn't /tmp get cleared after a reboot? I was under the impression it always did that.
Wow! That's a lot of used space for a fresh system. This is just a shot in the blind for my part, but error logs often use several GB when something wrong happens continuously. In example I had an .xsession-error file of 2GB if I recall correctly, and I have had another log file that was 9GB.
So I would check out /root og /tmp to see if there is some log files there building up in size. You might as well check /var even though it's on a separate partition.
Alright, there were no log files or anything in /root. /var seems fine and not too much is being used there. It is worth mentioning that I have installed some huge packages like texlive, and I'm installing go-openoffice at the moment. Is 19G sufficient for a root partition on slackware? I was also thinking of shrinking /home and allocating about 10-12G or so to a new /tmp partition with GParted, but I don't know what I would put in /etc/fstab to change /tmp to the new partition. I have and am installed/ing lots of big packages with sbopkg, and I might decide to do a mass recompile for some reason in the future (reinstall, optimizations, etc.).
Nope, and actually rworkman had a post on here about mounting it that way too. Ahhhh, here it is. Link.
Robby is saying to set TMP and OUTPUT to totally different directories, so what exactly does that solve? If I make directories on my root partition and set those variables to those directories, then what did I accomplish beyond just leaving /tmp on root?
I was talking more about mounting /tmp on tmpfs. Regarding the TMP and OUTPUT, you can specify what directory to use instead of /tmp and you can set OUTPUT to a dir that all your packages can go. You aren't really accomplishing anything much different than using /tmp. If you have /tmp mounted on tmpfs though, you will lose everything in there when you reboot. That's what OUTPUT is good for.
Last edited by manwichmakesameal; 01-31-2010 at 04:58 PM.
Would it be a bad idea to export OUTPUT to ~/src/packages with my /etc/profile? I want to make sure it doesn't break anything and that it will actually set the SlackBuild output globally.
Also, if I wanted to keep my system up for a long time and didn't feel like rebooting to clear out /tmp (on tmpfs), would a good old rm -rf /tmp/* do the trick or does having tmpfs complicate things?
Some stuff you want to leave in /tmp. AFAIK, you should be able to set OUPUT. I would set it in my ~/.bash_profile or ~/.bashrc though. You could also set it when you run the script like:
Some stuff you want to leave in /tmp. AFAIK, you should be able to set OUPUT. I would set it in my ~/.bash_profile or ~/.bashrc though. You could also set it when you run the script like:
Thanks. The only thing I really have in /tmp is packages and build files for when I want to build some software. It seems like that stuff would be pretty useless once I install the package (and I'm planning on keeping new packages in ~/src/packages anyway).
Well I used the tmpfs line in my /etc/fstab and tested it by creating this gigantic text file with vim in /tmp (it was about 1.2GB in size) and saving it. I was monitoring the output of df -h as I did it, and as soon as it hit 999MB (I have 2GB of RAM) it stopped with a "file system full?" error. What if I'm building a gigantic package with sbopkg? If I just set the TMP variable to something else on the filesystem, I haven't really accomplished much with trying to prevent so much space from being used.
Also, now that I use this tmpfs, sbopkg always asks to create the necessary directories in /tmp when I start it because it gets cleared when I reboot. How do I make it so it doesn't bother me about this? Maybe it's a better idea to go in sbopkg.conf and set it's TMP variables to /tmp instead of /tmp/sbopkg or whatever (unless that'll just cause a big mess)?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.