You are not logged in.

#1 2008-08-16 07:13:55

colbert
Member
Registered: 2007-12-16
Posts: 807

Best way to increase root and home part sizes

Just want to check what means to increase size of root and home. Here's the drive with them now:

   Device Boot      Start         End      Blocks   Id  System
(xp) /dev/sdc1   *           1        7649    61440561    7  HPFS/NTFS
/dev/sdc2            7650        8865     9767520   83  Linux (root)
/dev/sdc3            8866       12512    29294527+  83  Linux (home)
/dev/sdc4           12513       60801   387881392+   5  Extended
/dev/sdc5           12513       12998     3903763+  83  Linux (swap)
/dev/sdc6           12999       60801   383977566   83  Linux (stuff)

Everything is backed up and I have other drives to move the /dev/sdc6 over onto temporarily. I have burned GParted LiveCD but I have never used it, would I boot into it and basically see GParted and be able to delete/edit/etc. my partitions?

Now here's where I get a bit confused: Will I have to delete root and/or home to increase their sizes? If so, what is the right way to copy root back over when I am done the partitioning? I have never copied a root back over onto the system. If I use something as simple as cp -pr, then from where would I do it? Would it be some console I can get into from the Arch LiveCD or something?

Thanks for your help! smile

Offline

#2 2008-08-16 07:33:50

COMMUNISTCHINA
Member
Registered: 2008-06-16
Posts: 122
Website

Re: Best way to increase root and home part sizes

colbert wrote:

If so, what is the right way to copy root back over when I am done the partitioning? I have never copied a root back over onto the system. If I use something as simple as cp -pr, then from where would I do it? Would it be some console I can get into from the Arch LiveCD or something?

Thanks for your help! smile

I am not too sure about the other stuff myself, but rsync is a way I read about to do backups.
It would be like
rsync [options] /source /destination


i don't know you that well.

Offline

#3 2008-08-16 07:41:24

jbromley
Member
From: Pasadena, CA
Registered: 2007-02-04
Posts: 268

Re: Best way to increase root and home part sizes

If you move the sdc6 partition off of this drive to make space available, then gparted should be able to move and resize the remaining partitions to take advantage of the remaining space. This means that you shouldn't have to copy over your root and home partitions after the resize. Of course, you'll want backups of these partitions just in case.

You second questions is good just for general knowledge. As mentioned above, you shouldn't have to do this. If you do need to copy over root/home the best way is to use some LiveCD to boot your machine. System Rescue CD and grml are two good rescue/admin type CDs, but I'll bet you can get to a console using the gparted live CD. Once your system is booted with some live CD,  mount your root/home partitions and your backup copy and copy over the root/home partitions from your backup. Something as simple as cp -pr should work here. Once you're done copying, unmount the drives and reboot. When you reboot after resizing a partition you'll probably have to run fsck, but it shouldn't be a problem.

It's all pretty straightforward. Note that resizing big partitions might take a long time. Oh yeah, be sure to back up your partitions before doing any of this.

Last edited by jbromley (2008-08-16 07:42:15)

Offline

#4 2008-08-16 07:46:27

dhave
Arch Linux f@h Team Member
From: Outside the matrix.
Registered: 2005-05-15
Posts: 1,109

Re: Best way to increase root and home part sizes

OT: From the subject line, I was sure this was spam, of the "male self-improvement" variety. tongue


Donate to Arch!

Tired? There's a nap for that. --anonymous

Offline

#5 2008-08-16 14:18:09

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: Best way to increase root and home part sizes

jbromley wrote:

If you move the sdc6 partition off of this drive to make space available, then gparted should be able to move and resize the remaining partitions to take advantage of the remaining space. This means that you shouldn't have to copy over your root and home partitions after the resize. Of course, you'll want backups of these partitions just in case.

You second questions is good just for general knowledge. As mentioned above, you shouldn't have to do this. If you do need to copy over root/home the best way is to use some LiveCD to boot your machine. System Rescue CD and grml are two good rescue/admin type CDs, but I'll bet you can get to a console using the gparted live CD. Once your system is booted with some live CD,  mount your root/home partitions and your backup copy and copy over the root/home partitions from your backup. Something as simple as cp -pr should work here. Once you're done copying, unmount the drives and reboot. When you reboot after resizing a partition you'll probably have to run fsck, but it shouldn't be a problem.

It's all pretty straightforward. Note that resizing big partitions might take a long time. Oh yeah, be sure to back up your partitions before doing any of this.

jbromley, you give quality answers. Furthermore, you could use your Arch install cd as the "rescue" disk. It has all the tools you need to mount your partitions and copy files. But you shouldn't have to do that if gparted works.

Offline

#6 2008-08-16 21:34:07

jbromley
Member
From: Pasadena, CA
Registered: 2007-02-04
Posts: 268

Re: Best way to increase root and home part sizes

Cool, I wasn't sure about it since it's been a long time since I've used an Arch CD. I also mentioned the others because they have a much fuller suite of useful tools than what comes on the Arch CD. Unless the Arch CDs are now radically different, I imagine this is still the case. Anyway, it's good to know.

Offline

#7 2008-08-18 00:51:34

colbert
Member
Registered: 2007-12-16
Posts: 807

Re: Best way to increase root and home part sizes

Thanks so much fellas, it worked great! I had a problem on booting up after since my fstab had UIDs, changed to fixed device paths and it's fine now! GParted LiveCD is awesome! I actually just deleted the XP partition and resized the root backwards to the beginning, and home backwards as well so didn't even need to copy anything up or whatnot.

(However I could not locate a shell on the Arch LiveCD).

Thanks again!

Offline

Board footer

Powered by FluxBB