Howto move Ubuntu . . .
Martin Schmitz
ubuntu at zangpo.org
Fri Jan 14 13:21:34 UTC 2005
Rune Maagensen schrieb:
> maikhai wrote:
>> I have on HD:
>> - /dev/hda7 (5GB) installed Ubuntu
>> - /dev/hda8 (9GB) Empty.
>>
>> Pls show me what command line to :
>> - move or
>> - 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)
And your new filesytem will miss the /.dev-directroy. :-( A better way
to copy a complete Unix-System is to use tar:
cd /oldroot
tar cS --atime-preserve -f - . | ( cd /newroot && tar xpS \
--atime-preserve -f - )
> 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
Martin
More information about the ubuntu-users
mailing list