You are not logged in.

#1 2007-04-03 21:57:02

Shagbag
Member
Registered: 2006-10-25
Posts: 259

How do I increase the size of my existing Arch partition?

I have a 60GB hard drive partitioned as follows:

Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         892     7164958+   7  HPFS/NTFS
/dev/sda2             893         905      104422+  83  Linux
/dev/sda3             906        1392     3911827+  82  Linux swap / Solaris
/dev/sda4            1393        7296    47423880    5  Extended
/dev/sda5            1393        4432    24418768+  83  Linux
/dev/sda6            4433        7296    23005048+  83  Linux

sda5 houses my (now unused) Ubuntu install while sda6 contains my (frequently used) Arch install.  I want to get rid of sda5 and use the space created to increase the size of my sda6 partition.  I don't want to kill my Arch install, but I'm not sure what I should do.  Can someone please advise me of the best way to go about this?

Offline

#2 2007-04-03 22:34:34

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: How do I increase the size of my existing Arch partition?

Your best call is to get some LiveCD like System Rescue CD or RIP and use gparted (in X environment). If you use ext3/xfs on sda6, you should be able to grow your filesystem (backuping sda6 is preferable anyway). If not, you should copy sda6 contents somewhere, get rid of both partitions, create one in its place and copy Arch installation back.

Offline

#3 2007-04-04 08:53:38

Shagbag
Member
Registered: 2006-10-25
Posts: 259

Re: How do I increase the size of my existing Arch partition?

Thanks for the response.  I've not used Gparted much, but I'll have a go at 'growing' sda6.
What's the best way to backup my Arch install?  Should I use a LiveCD, mount sda6, and then 'tar.gz' the whole partition using the tar command while in the LiveCD environment?  Or is there a better way, eg. an app that does it for me?

Offline

#4 2007-04-04 10:30:28

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: How do I increase the size of my existing Arch partition?

Shagbag wrote:

Should I use a LiveCD, mount sda6, and then 'tar.gz' the whole partition using the tar command while in the LiveCD environment?

That's the best way.

Remember to adjust fstab and grub/lilo when you move solely to sda5.

Last edited by lucke (2007-04-04 10:32:09)

Offline

#5 2007-04-05 17:25:07

go4it
Member
Registered: 2006-10-03
Posts: 44

Re: How do I increase the size of my existing Arch partition?

Offline

Board footer

Powered by FluxBB