Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Aug 2005 18:59:27 +0200
From:      "Alexandre D." <alexandre.delay@free.fr>
To:        "Gary W. Swearingen" <garys@opusnet.com>, <alexandre.delay@free.fr>
Cc:        Giorgos Keramidas <keramida@ceid.upatras.gr>, freebsd-questions@freebsd.org
Subject:   RE: Migrate primary disk (duplicate)
Message-ID:  <MAEBLPAGHGPMOKCBICBNMEKKCHAA.alexandre.delay@free.fr>
In-Reply-To: <xtslxt4r9w.lxt@mail.opusnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Here is the complete process I follow:

   sysctl kern.geom.debugflags=16
   dd if=/dev/zero of=/dev/${disk} bs=1k count=1
   fdisk -BI ${disk}
   disklabel -B -w -r ${disk}s1 auto
   disklabel -R ${disk}s1 generique.disklabel
   newfs /dev/${disk}s1a
   newfs /dev/${disk}s1d
   mount /dev/${disk}s1a ./mnt
   cd ./mnt
   dump 0uafL - / | restore xf -
   cd ..
   umount ./mnt
   mount /dev/${disk}s1d ./mnt
   cd ./mnt
   dump 0uafL - /usr | restore xf -
   cd ..
   umount ./mnt


-----generique.disklabel file-------
  a: 41943040        0    4.2BSD
  b:  2097152   *      swap 
  d: * *    4.2BSD 


------

If I do the same with /stand/sysinstall in stead of 
   dd if=/dev/zero of=/dev/${disk} bs=1k count=1
   fdisk -BI ${disk}
   disklabel -B -w -r ${disk}s1 auto

It works well.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?MAEBLPAGHGPMOKCBICBNMEKKCHAA.alexandre.delay>