Re: cloning hard disk

From: Tom Pfeifer (tplists_at_optonline.net)
Date: 02/15/05

  • Next message: Andrew M.A. Cater: "Vanishing USB for printer - udev to blame - also /dev/usblp0 - typo??"
    Date: Mon, 14 Feb 2005 19:40:38 -0500
    To: debian-user@lists.debian.org
    
    

    Allasso Travesser wrote:
    >
    > Hello,
    >
    > I would like to clone my Debian Woody system onto a second larger hard disk.
    > It seems to me that it would just be a matter of cleaning off the second
    > disk, partioning using fdisk, and then running:
    >
    > dd if=/dev/hdc of=/dev/hda
    >
    > where hdc is the drive from which I am copying my current system, and hda is
    > the drive I want to put this system on.
    >
    > current hdc partition table (2 Gb disk):
    >
    > Device Boot Start End Blocks Id System
    > /dev/hdc1 1 13 52384+ 83 Linux
    > /dev/hdc2 14 449 1757952 83 Linux
    > /dev/hdc3 450 523 298368 82 Linux swap
    >
    > How I plan to partition hda (30 Gb disk):
    >
    > Device Boot Start End Blocks Id System
    > /dev/hda1 1 13 52384 83 Linux
    > /dev/hda2 14 3704 29647957+ 83 Linux
    > /dev/hda3 3705 523 298368 82 Linux swap
    >
    > Can anyone see anything wrong with this, or would you tell me anything I
    > should watch out for? Anything I should find out about my current system
    > first? It seems that this could be fatal if it is not done right.

    The biggest problem is that it won't do what you're expecting it to do.

    Going through the excercise of partitioning the new disk will be a
    wasted effort. The command 'dd if=/dev/hdc of=/dev/hda' will simply wipe
    out that new partition table while copying the the old partition table
    (and everything else) over to the new disk, byte for byte. So you will
    end up, at best, with the same 2 GB worth of partitions on the 30 GB
    disk, just like you have on the old disk.

    You'd be much better off looking into one of the suggestions in the
    other posts here - using 'cp' or 'rsync' etc.

    Tom

    -- 
    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: "Vanishing USB for printer - udev to blame - also /dev/usblp0 - typo??"

    Relevant Pages

    • Re: Linux community software-update-anarchy polemic
      ... Remember, I'm just a monkey. ... That implies that if you have one disk per partition, ... Trust the kernel or don't trust the kernel, but either way, both ...
      (comp.os.linux.misc)
    • SUMMARY: Moving /usr From Under Root "/" To Its Own Partition
      ... One of the reasons for doing this is to end up with a smaller root ... Install the boot block and boot off the new drive. ... " In order for the root partition to be fscked and remounted ... D> temporarily on the existing disk. ...
      (SunManagers)
    • Re: Two "expert" issues I must solve before upgading
      ... I think backups are different than the other fluff you suggest - more ... out there who had a disk crash and had to start from scratch. ... >image of your current Windows 98 OS partition. ... you can restore the disk image and get back quickly ...
      (microsoft.public.windowsxp.newusers)
    • Re: Found the chkdsk log [STOP error, data unviewable etc...]
      ... The type of the file system is NTFS. ... CHKDSK is recovering lost files. ... 33013543 KB total disk space. ... partition, etc. Oh well... ...
      (microsoft.public.win2000.file_system)
    • Re: Copying a Hard Disk Containing Windows With Fedora
      ... His basic mistrake was using partitions rather than copying the entire ... fdisk showed my Windows HD had a main partition and a "hidden" ... windows from a PARTITION to a new partition of another drive, ... > Subject: Re: Copying a Hard Disk Containing Windows With Fedora ...
      (Fedora)