Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
1  
Unless you want to do this programatically this is probably better asked on superuser.com –  Day Nov 5 '10 at 18:22
add comment

migrated from stackoverflow.com Nov 5 '10 at 22:46

This question came from our site for professional and enthusiast programmers.

2 Answers

up vote 1 down vote accepted

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.

share|improve this answer
    
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 Hodapp Nov 5 '10 at 18:22
1  
This article is linux flavor agnostic linuxjournal.com/content/… –  Harmon Wood Nov 5 '10 at 18:27
    
Perfect! Thank you very much. –  Dennis Hodapp Nov 5 '10 at 19:59
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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