0

I'm currently dual booting Windows 7 64bit and Ubuntu 10.10 each on primary partitions. Then on the other 2 partitions I have the manufacturer recovery partition (which I am not sure I should remove...), and then a partition for storage and files.

Ok so now I want an Arch Linux installation on the hard drive, but obviously I cannot create a new primary partition because I already have 4. I found out that linux can run from a logical partition (which you can have multiple of)..However I do not want to format my Ubuntu partition and I'd prefer to keep the data on there all intact.

Is there a way to move my Ubuntu installation (on the primary partition) to an extended partition where I could put multiple logical partitions for multiple linux installations?

1
  • 1
    Unless you want to do this programatically this is probably better asked on superuser.com – Day Nov 5 '10 at 18:22
1

absolutely. I have done this multiple times.

  1. Copy the entire partition keeping permissions intact and not fallowing symbolic links.
  2. Update your /etc/fstab file for the new root partition.
  3. Update your bootloader.

done!

Obviously this is a high level overview. But that's the basics.

2
  • awesome! I'm not quite that proficient with a terminal (yet). Any guides you may know of? I searched around but didn't find anything useful. – Dennis Nov 5 '10 at 18:22
  • 1
    This article is linux flavor agnostic linuxjournal.com/content/… – Harmon Wood Nov 5 '10 at 18:27
0

Make a new logical partition and use dd or ddrescue to copy the ubuntu filesystem to the new logical partition (make sure the logical partition is greater then or equal to the ubuntu filesystem). Use gparted to expand the copied filesystem to the partition size. Install Arch linux on the old ubuntu partition. Make sure your boot loader configuration corresponds to the correct partitions

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.