RE: Migrate primary disk (duplicate)

From: Alexandre D. (alexandre.delay_at_free.fr)
Date: 08/01/05

  • Next message: Björn König: "Re: can't find libexpact.so.4"
    To: "Gary W. Swearingen" <garys@opusnet.com>, <alexandre.delay@free.fr>
    Date: Mon, 1 Aug 2005 18:59:27 +0200
    
    

    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.
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Björn König: "Re: can't find libexpact.so.4"

    Relevant Pages

    • Recovering Swap Partition
      ... The disklabel looks to be intact. ... I've been researching all afternoon trying to find out how to recover the swap with something like newfs, but I haven't found any examples of how to do it, only how to create the swap during a system installation. ...
      (freebsd-stable)
    • Re: Recovering Swap Partition
      ... because the swap partition is toast. ... The disklabel looks to be ... intact. ... I've been researching all afternoon trying to find out how to ...
      (freebsd-stable)