Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
Now this probably wasn't a good idea to create the partitions with those specs, and I'm now seeing this. I am running out of space on my root partition. This happened before, and I didn't keep an eye on it -- eventually Linux would not work very well, complaining of 'No free space on /'. I do not want that to happen to me again, especially when I have 20 GIGABYTES of free space sitting on the /home partition doing nothing!
I've searched around a bit, and gotten the all-too-familiar 'O..K. Can't do that' feeling when I've read how to do it. I don't mind having a command-line method to resize the paritions, but I'd like a method I can put my confidence in. I do not have any backup solutions at the moment (except for a 128MB USB Pendrive and 30MB of FTP space from my ISP, which is virtually useless in this case. I also have no blank CDRs left).
Can this be done -- reliably, safely and securely?
And also, out of interest, is it possible for the partitions to become resized automatically over time? I'm sure I set my / and /home to be around 50/50. I can't imagine setting myself around 5GB for apps and such, and 30GB for my own personal files.
I'd really rather not pay out on commercial software for something that can be done with tools already available. I mean, I know I can do it in Linux, but the process of unmounting is a little daunting.
Do you know of any good guides for this? I've Googled, but turned up results I can't put my whole confidence in.
Last edited by techsimian; 03-01-2005 at 09:18 AM.
Do you have another hard drive available? Even on a different system that you can connect with via network? If you do the job is simple. If you don't you will have a hard time.
Basically, you need to put the contents of /home someplace else while you change that partition. You can resize / nondestructively, but you are going to lose /home.
Oh, thanks. That helps. I dropped the symlink from /music -> /myhomedir/music, and replaced it with an actual directory (probably not the greatest idea really, but the permissions are set properly. It's not exactly world writable.) and I guess I can FTP my important stuff like documents -- unless you think it's absolutely necessary I keep the home dir exactly as it is (dotfiles, etc)?
Don't query the disk structure using df; it doesn't give enough information. Instead, use sfdisk -l and post that here.
Actually, you won't be able to do what you want to do without blowing off partition 6 and replacing it. You can't change the start point of a partition, and you can't resize the partition in front of it unless there is unallocated space available at the end of the partition. So partition 6 has to go.
Back up the data, blow it off, then enlarge partition 1 (which is easy to do at that point). Then recreate the other partition and reload the data.
Actually, don't try anything until you have looked at the disk using sfdisk.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.