Howto move Ubuntu . . .

Magnus Therning magnus at therning.org
Sat Jan 15 08:50:09 UTC 2005


On Fri, Jan 14, 2005 at 02:21:34PM +0100, Martin Schmitz wrote:
>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 - )

Yes. Copy should be avoided when you're trying to copy a complete
partition this way. Tar is better:
 
 http://www.debian.org/doc/manuals/reference/ch-tips.en.html#s8.3.3

I usually use cpio:

 http://www.debian.org/doc/manuals/reference/ch-tips.en.html#s8.3.5

/M

-- 
Magnus Therning                    (OpenPGP: 0xAB4DFBA4)
magnus at therning.org
http://magnus.therning.org/

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

Genius is applying the originality of youth to the experience of maturity.
     -- Michael Polanyi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050115/a6668191/attachment.sig>


More information about the ubuntu-users mailing list