RE: How to duplicate a disk

From: Les Mikesell (lesmikesell_at_gmail.com)
Date: 10/29/05

  • Next message: Dotan Cohen: "Re: Finally adding that swap file"
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    Date: Sat, 29 Oct 2005 10:20:02 -0500
    
    

    On Sat, 2005-10-29 at 05:22, LinuxMedia wrote:

    > >The thing I was really trying to stress is that "dd" is not a good tool
    > >to use _unless_ the source and target drives are the same make and >model
    > >as "dd" does a block-by-block copy...and that includes the partition
    > >table and boot sector. If the drives don't match up, you could end up
    > >with a mess. That holds even for drives in LBA mode on some systems
    > >with weird BIOSes.
    >
    > I completly forgot about all these considerations. Would it suffice to
    > just have two drives that are the same size? Or would that even be
    > taking a chance? I remember being very careful to get the same makes of
    > drives just in case there were slight difference is Brand X's 40 Gig
    > drive and Brand Y's 40 Gig drive.

    An 'fdisk -l' should show the drive geometry. If the
    heads/sectors/cylinders match on the drives a dd
    clone should work find. However there are some identifiers
    on raid and LVM volumes that may cause trouble if two
    cloned drives are ever connected in the same machine
    at boot time, and I don't think the previous discussion
    mentioned the filesystem labels that are used in fstab
    and grub by default. If you clone with dd, these are
    reproduced identically and will work in another machine
    by will prevent booting when you have duplicates connected.
    If you copy with one of the other methods you either
    have to add the filesystem labels yourself or edit
    /etc/fstab and /boot/grub/grub.conf to use the
    partition device names.

    -- 
      Les Mikesell
        lesmikesell@gmail.com
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Dotan Cohen: "Re: Finally adding that swap file"

    Relevant Pages

    • Re: Are computer forensics people as stupid as they seem?
      ... already a contiguous file on disk. ... I fully document how to do it with DCPP, people have tried it and I ... which lets you encrypt your entire HD (except for the boot sector ... I have used two drives: the one I am preparing and another ...
      (alt.privacy)
    • Re: Does anyone recognize this?
      ... |>> into this issue some time ago on scsi drives and it can really be very ... | If I remember right it was a boot sector virus. ... | these once upon a time and fdisk and format would not remove the virus. ... hard disk and begin the boot, I removed the IDE cable from the hard disk and the PC booted ...
      (alt.computer.security)
    • Re: Boot jfs in the bootmanager...
      ... versions of OS/2-eCS autocheck your v2.0 drive. ... parameter from '*' to an explicit list of drives that excludes the bootable ... I am not entirely convinced that letting mcp2 check the drive is responsible ... only rewrites the boot sector when it finds the volume is dirty & it has to do ...
      (comp.os.os2.bugs)
    • Re: Followup re AntiVirus Scanners; Nod32, Kaspersky, etc
      ... >at a Zip disk and there was no disk in the drive. ... >scanner tries to look at the boot sector of *all* your disks. ... scan on all new drives a couple times before trusting them). ... If I could verify archive errors, boot sector errors etc that would ...
      (microsoft.public.windowsxp.general)
    • Re: A linux alternative to the "ghost" programs?
      ... > But, that won't help, anyway, because the boot sector contains the ... the guy seemed to be indicating he had on his 30 gig) uses LBA and sets ... Since were on the subject of disk drives, let me though in my 2 cents ... the 32 gig barrier followed by the 128 gig barrier followed by the 512 gig ...
      (alt.os.linux)