Re: OT: Mirroring via disk image file

From: Hugo Vanwoerkom (hvw59601_at_care2.com)
Date: 10/30/05

  • Next message: Andrew M.A. Cater: "Re: Best way to restrict users to "one" application"
    To: debian-user@lists.debian.org
    Date:  Sun, 30 Oct 2005 15:01:22 -0600
    
    

    Roberto C. Sanchez wrote:
    > On Sun, Oct 30, 2005 at 03:15:56PM -0500, Marty wrote:
    >
    >>I plan to mirror then replace a hard drive, using an identical model drive.
    >>
    >>Instead of a device-device copy e.g. "cp /dev/hda /dev/hdb" I hope to do
    >>"cp <old drive> image" followed by cp image <new drive>" where "image" is
    >>a disk image file of the original drive.
    >>
    >>Will the physical sector arrangment be preserved using the intermediate image
    >>file, or is that only possible with the device-device copy? I'm asking here
    >>because don't have the identical drives available to test my theory beforehand.
    >
    >
    > [Assumption, current hard drive is hda, CD-ROM is hdc]
    >
    > If the drives are *exactly* identical,

    *exactly*, can that mean both e.g. 80GB drives?

    you can move your old drive to be
    > the slave on the secondary ide channel, which makes it hdd. Then place
    > the new drive on hda. Boot Knoppix, or another suitable live CD distro,
    > and then do this:
    >
    > dd if=/dev/hdd of=/dev/hda
    >
    > Make absolutely 100% sure that hdd contains the old drive and hda the
    > new drive, or you will obliterate your data with garbage. Also, make
    > sure that you specify `if' and `of' correctly, since `i' and `o' are
    > next to each other on a qwerty keyboard.
    >
    > If you would like to this reasonably quickly, I would recommend enabling
    > DMA on the drives after booting. I believe that Knoppix leaves it off
    > by default since it can cause problems in some rare cases.
    >
    > -Roberto
    >

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Andrew M.A. Cater: "Re: Best way to restrict users to "one" application"

    Relevant Pages

    • Re: OT: Mirroring via disk image file
      ... > a disk image file of the original drive. ... > because don't have the identical drives available to test my theory beforehand. ... the new drive on hda. ... Boot Knoppix, or another suitable live CD distro, ...
      (Debian-User)
    • OT: Mirroring via disk image file
      ... I plan to mirror then replace a hard drive, ... a disk image file of the original drive. ... Will the physical sector arrangment be preserved using the intermediate image ... because don't have the identical drives available to test my theory beforehand. ...
      (Debian-User)
    • Re: st3145a
      ... hda: ST3145A, ATA DISK drive ... port ZIP drives with a different interface which is ... VFS: Mounted root. ... Can't find an ext3 filesystem on dev fd. ...
      (comp.unix.bsd.openbsd.misc)
    • High memory pressure makes system nearly unresponsive.
      ... it gets, I tried to start bluefish while doing that simple "cat" test, ... is on hda, ... Both drives are using udma5, ... cat test without any noticeable slowdown of the system. ...
      (comp.os.linux.misc)
    • Re: rsync clone - ubuntu failure
      ... boot knoppix, mount drives and ... ... no error messages shown - all good, change jumpers of hdb from slave to ... but what did you do with the original hda? ...
      (Ubuntu)