Moving my Ubuntu Hoary to another partition without reinstalling
/dev/hda1 was where My Windows XP Home resided. After weeks of waiting for that one reason why I shouldn't wipe it out and go Ubuntu all the way, I didn't find any. So tonight I made that final decision --no more Windows (dual-booting).
/dev/hda3 was where my Ubuntu was temporarily and happily serving. Now is the time for it to be moved to its rightful place.
As usual, I googled first and took me to linuxquestions.org. One thread looked promising. It was a question about how to move his Mandriva to another drive. After reading the whole posting, I decided to try the solution given by
So here's a play-by-play account of how I did it.But first, a backgrounder. I had a bunch of Live CDs in my arsenal including Knoppix but I opted for
- # mkdir /mnt/x
- # mkdir /mnt/x/{orig,new}
- # mount -t ext3 /dev/hda3 /mnt/x/orig
- # mount -t ext3 /dev/hda1 /mnt/x/new
- # cd /mnt/x/orig
- # tar -cf - . | (cd /mnt/x/new; tar -xvf -)
- Waited for a few minutes, and then...
- I edited /mnt/x/new/etc/fstab to reflect the new reality --really minor changes
- And then I edited /mnt/x/new/boot/grub/menu.lst --again, to reflect the new reality
- # reboot
I crossed my fingers, expecting for the worst. First came the Debian3 splash screen (from Splashy), then the gdm, and after logging in, came the familiar login sound, and finally my desktop. Mission accomplished. Bye bye Windows.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home