Howto move Ubuntu . . .
Rune Maagensen
maillist at maagensen.com
Fri Jan 14 12:57:09 UTC 2005
maikhai wrote:
> Hi All!
>
> I have on HD:
> - /dev/hda7 (5GB) installed Ubuntu
> - /dev/hda8 (9GB) Empty.
>
> Pls show me what command line to :
> - move or
NEVER move always copy check if it works, then delete old.
> - copy or
1. bootup with a knoppix gnoppix or other livecd
2. mount old root (mount /dev/hda7 /mnt/oldroot)
3. make filesystem on newroot) mkfs.ext3 /dev/hda8 (make sure it's the
right partition)
4 mount new root (mount /dev/hda8 /mnt/newroot)
5. copy (cp -a /mnt/oldroot/* /mnt/newroot)
6. edit boot loader (grub just change /etc/grub/menu.lst ; lilo change
hda7 to hda8 and rerun lilo)
7. edit /mnt/newroot/etc/fstab to point at least / to /dev/hda8
8. reboot
I'd make a grub disk and learn simple grub (root kernel initrd boot)
before doing this.
> - backup then restore
nah.
(bootable of course).
> I tryed # cp -a /dev/hda7/* /dev/hda8
mount the partitions first as showed
> then run it OK, but grub bootloader dont work (I must use lilo).
Is this a quiestion or a statement?
if it's a question, then if grub worked before it'll do afterwards, just
hit "e" and change the hd(0,6) to hd(0,7)
If it's a statement then I'd advise you to get grub working lilo is crap
compared to grub.
Rune
More information about the ubuntu-users
mailing list