LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-28-2012, 02:29 PM   #1
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 331

Rep: Reputation: 50
change location of /


My root seems to fill up quite quickly with Slackware and somehow 15G isn't enough - I don't believe I've put 8Gs of software in since I installed a month or two back, but I guess I have unless df -h is wrong!

I'm a little puzzled as to how this is happening. I uninstalled/reinstalled wine and used up 500megs apparently. No big deal I guess - I've got loads of spare space so I may as well make a new / directory on another HDD where I've got loads of space.

To change root, would it be sufficient to copy the existing root to the new partition, change the applicable entry in fstab and then mount -a?
 
Old 07-28-2012, 02:39 PM   #2
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
what's in /tmp?
 
Old 07-28-2012, 02:46 PM   #3
KDHofAvalon
Member
 
Registered: Apr 2007
Location: Kansas
Distribution: Slackware
Posts: 48

Rep: Reputation: 28
No, that would not be sufficient, and could possibly damage the system. To do it safely you should copy the partition, change fstab, and edit /etc/lilo.conf from a live cd. But before you do that, you should try to find out why it's happening in the first place. The first thing that comes to mind is /tmp. Second is /var. I'm assuming of course that they're on the root partition, and not seperate. If you could run
Code:
du --max-depth=1 -h -x / | sort -hr
and post the output here so we can help you better, otherwise you'll likely run into the same problem eventually no matter how large you make the new root partition.

Last edited by KDHofAvalon; 07-28-2012 at 02:47 PM.
 
3 members found this post helpful.
Old 07-28-2012, 03:19 PM   #4
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 331

Original Poster
Rep: Reputation: 50
Thanks for the replies.

/tmp is mainly full of the packages I've installed through sbopkg. I guess it's OK just to clear /tmp out - what's the best way safely to clean it up?

Code:
3.0G    /tmp
2.8G    /tmp/SBo
54M     /tmp/sbopkg.QqD6Ho
50M     /tmp/sbopkg.wTaZTf
396K    /tmp/sbopkg.bYNcHI
48K     /tmp/sbopkg.oTfIOk
8.0K    /tmp/ksocket-slack
8.0K    /tmp/kde-slack
8.0K    /tmp/.wine-1001
4.0K    /tmp/plugtmp
4.0K    /tmp/orbit-slack
4.0K    /tmp/ksocket-root
4.0K    /tmp/kde-root
4.0K    /tmp/akonadi-slack.1a0uVj
4.0K    /tmp/.X11-unix
4.0K    /tmp/.ICE-unix
Using the same code reveals another 1.2G in /var, of which 1G is in /var/tmp.

If we assume that the full install was 7G, then there's still 4G or so to be accounted for; some will be a good number of AlienBob's packages, Flash, LibreOfffice as well as multilibs.

My system's working very well and I have nothing else weird going on.
 
Old 07-28-2012, 03:26 PM   #5
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
You can just delete the packages if you are sure you won't need them. I usually save the packages in another folder and clean /tmp afterwards. Also, you can clear the sources cache from sbopkg, this will free some space in /var
 
1 members found this post helpful.
Old 07-28-2012, 04:38 PM   #6
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 331

Original Poster
Rep: Reputation: 50
Thanks - cleaning /tmp and /var/tmp has got it back to 9.5G, probably where it should be.
 
Old 07-29-2012, 12:53 AM   #7
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
If you have enough RAM, why not put /tmp in tmpfs? Then, when you reboot, it's all gone. Of course, that seems like a LOT of stuff from SBo that you've built. I hope you keep those pkgs.
 
2 members found this post helpful.
Old 07-29-2012, 11:21 AM   #8
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 331

Original Poster
Rep: Reputation: 50
Thanks - I'll have a look at tmpfs.

I haven't put that much on though, maybe 1.5G decompressed but about 1G nominal.

/usr is about 8G; the larger entries are as follows

Code:
2.4G    /usr/lib64
2.2G    /usr/share
956M    /usr/lib
902M    /usr/bin
514M    /usr/src
488M    /usr/doc
Is this about right?
 
Old 07-30-2012, 08:58 PM   #9
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I'd just toss /tmp/SBo and any cached packages out and leave the rest.

Code:
rm -r /tmp/SBo
rm *.t?z
 
  


Reply



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
[SOLVED] change location athrin Linux - Newbie 2 04-07-2011 02:06 AM
Change GDB location joelcomp1 Linux - Newbie 1 07-03-2007 08:28 AM
how to change the location of mysql lexthoonen Linux - Newbie 4 01-25-2007 12:02 PM
Why change location of nano sigma957 Debian 1 06-18-2005 02:20 PM
how to change location of /home? mark_2811 Linux - General 4 01-23-2004 06:19 AM

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

All times are GMT -5. The time now is 01:34 AM.

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