Hi all. I've tried searching for this question but found no answer that was reasonably current, nor seemed to fit my exact circumstances, so here goes.
I'm currently running Ubuntu 10.04 exclusively. Until recently my system had / and /home on separate partitions on the same physical drive, but I've installed a new, larger drive and migrated /home completely over to it. This has freed up a whole bunch of space on the primary drive, which I'd like to repartition to accommodate a few other operating systems that I want to play around with (other Linux distros, and so forth).
This would also include reinstalling Windows XP. Being Windows, it likes to be installed on the first primary partition on the first drive - exactly the position that Ubuntu is currently in. I know that Linux really doesn't care where it's installed, so I'd like to know if it's an easy matter to migrate my Ubuntu install to another partition without rendering it unusable.
Based on my experience migrating non-root partitions in the past (e.g. /home), my educated guess is that the procedure should work something like this:
- Create a new, empty ext4 partition (say, /dev/sda2) alongside the existing one containing / (/dev/sda1)
- Copy sda1 --> sda2
- Update /etc/fstab with the new location for /
- Install Windows to sda1
- Boot to sda2 and restore grub
I'm not going to rush right into this, of course. But is my thinking sound? Are there any obvious steps I've missed? Is there a recent howto of some kind that would address this accurately?