[Samba] Ghosting Linux Partitions.

Rashkae rashkae at tigershaunt.com
Wed Mar 19 14:39:40 GMT 2003


Question:  why would one tar and not simply cp -a?


On Wed, 19 Mar 2003 JJunge at paritaet-th.de wrote:


Ghosting ????
Why, you are useing linux.

Boot your system from cd.

Make the filesystem on the new hd
      mke2fs .....

Mount the old and the new hd, eg.:

      mkdir /OLD
      mkdir /NEW
      mount /dev/hda5 /OLD
      mount /dev/sda1 /NEW

Change to the old hd

      cd /OLD

use tar to archive the old partionion im memory and untar it on the new hd
with keeping all the flags:

      tar -cSp --numeric-owner -f - . | ( cd /NEW && tar xSpvf - )

Write the boot manager to the new hd.
That's all.

Taken from http://sdb.suse.de/de/sdb/html/maddin_kopieren.html
But this is a german source.

resize2fs will not work on ext3

Regards
Joerg Junge

---------------------------------------------------------------------------=
--------------------

J=F6rg Junge
EDV-Koordinator

Parit=E4tischer Wohlfahrtsverband
Landesverband Th=FCringen e.V.
Bergstr. 11
99192 Neudietendorf
Deutschland

Tel : +49 36202 26 204
Fax: +49 36202 26 234



--=20
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



More information about the samba mailing list