Re: cloning hard disk

From: Allasso Travesser (allasso_at_bacavalley.com)
Date: 02/17/05

  • Next message: Allasso Travesser: "Re: cloning hard disk"
    To: debian-user@lists.debian.org, Pigeon <jah.pigeon@ukonline.co.uk>
    Date: Thu, 17 Feb 2005 14:50:54 -0700
    
    

    On Monday 14 February 2005 11:54 am, you wrote:
    > On Sun, Feb 13, 2005 at 09:12:35PM -0700, 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.
    >
    > That only works properly if hdc and hda are identical in size and
    > geometry. Similarly with partitions: dd if=/dev/hdc2 of=/dev/hda2 is
    > only sensible if the partitions are identical in size. I'd be doing
    > something like this:
    >
    > (boot off hdc)
    > # cfdisk /dev/hda
    > (set up partitions)
    > # mke2fs /dev/hda2
    > # mount /dev/hda2 /mnt
    > # cd /
    > # for x in `ls -1 / | grep -v mnt`; do cp -a /$x /mnt; done
    >
    > Other people have their own favourite recipes involving tar and/or
    > cpio which will be in the list archives somewhere.
    >
    > BTW your partitioning scheme could do with a little modification -
    > it's customary to make the swap partition the first partition on the
    > disk, not the last, as access to the outer part of a disk is faster.

    My understanding has been that the first partition has to be the boot
    partition. Am I understanding you correctly, that you are saying that
    hdx1 would be the swap partition?

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

  • Next message: Allasso Travesser: "Re: cloning hard disk"

    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: Disk Utility to align tracks on a hardware RAID1 system
      ... you should contact you hard disk manufacture for resolution. ... > Microsoft provides RAID 1 based on software method. ... > This newsgroup only focuses on SBS technical issues. ... >>system partition but a separate drive or extended artition. ...
      (microsoft.public.windows.server.sbs)