SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
How big is your root partition and how long have you been running? One thing that can take up a lot of space is core dumps which you can get if you have segmentation faults while running a program. They're usually placed in the root directory and are hidden files named .core.xxxx. They can be safely deleted but you may need to be root to do so.
My root dir (/) is about 4 GB. I have been running for less than 2 weeks though!
What is there in the /var folder?? Some of that stuff looks important to me. And how big can the core dumps be?? I don't have any. I did dir -all in / and all I got were folders, nothing hidden or special.
If this were me and my system I would start over. Back it all up and take a new approch. You have a 70+ gig drive it looks like. Put the bulk of your main install on there. Then you can put /var or /etc or whatever on the 4 gigger. Or you can make that something to the tune of /home/yourname/oggs, just keeping in mind that that directory can never exceed 4 gigs.
You could also put the swap file on that one.
You can try and remove files but what do you do in a couple weeks when you need to install a new program? Just avoid the upcoming headaches and reinstall.
Damn... I can't believe I have to do this again. I am leaving tommrow morning on vacation for the holidays. I won't be back for a few weeks. I will have to do it then. Back up all of my stuff and then.. yeah.
But isn't there another way!? What about that mount --bind thing?? There HAS to be another way!
Switching your root & home? You have plenty of space on /home to copy the rest of the stuff on / onto there. Then delete the old root and put the home stuff there. You're not using too much space on that /home.
Resizing is possible with resize2fs, but you can't move the beginning of the fs. So if your / comes first and the /home right after, the /home can't move to make space for /'s expansion. I have an idea. Shrink your home with resize2fs, and put the new / (or a /usr, that's probably taking alot of space) at the end of the disk. Resize2fs works by only resizing the ext filesystem, not the partition. You do that manually (& carefully) with fdisk. You use resize2fs to resize the filesystem. In fdisk ('fdisk -l') the partition will look the same, but when you do a df ('df -h') you'll notice the filesystem has shrunk. Now you use fdisk to destroy and recreate the partition with the smaller size. Careful; if you make the partition too small or do something else wierd, your data is toast. BTW, the /home IMO is still pretty big, split it in two or something, even if your going to keep the same stuff in that space.