hi ya
IF (and only if) the drives are geometrically the same, you can use dd:
dd if=/dev/hda of=/dev/hdb
you can specify only to copy the first 1Mb if that is the smaller
partition to be copied to the new disk ...
-- problem(??) with dd for copying it copies the good and bad block data
Quoting Stuart Marshall ([EMAIL PROTECTED]):
sfdisk to partition the new drive;
mke2fs to make file systems on the new drive;
mkswap to initialize the swap area on the new drive;
cd old-partition; find . -mount | cpio -pdm /new-partition
^
Hi,
I would like to duplicate a hard drive that has Debian
installed to use of several additional computers.
I can write a script which does:
sfdisk to partition the new drive;
mke2fs to make file systems on the new drive;
mkswap to initialize the swap area on the new drive;
cd
IF (and only if) the drives are geometrically the same, you can use dd:
dd if=/dev/hda of=/dev/hdb
to copy directly disk-to-disk, or to save to a file for later dumping to
a disk:
dd if=/dev/hda of=filename
of course, filename will be very big and must not be on /dev/hda or
you will create
Hi Andrew,
Thanks for the response. But no the drives are not exactly the
same. However, the original drive and its partitions will
comfortably fit in the new drive. That is why I need a less
simple approach using sfdisk, mke2fs, cpio, etc.
thanks,
Stuart
Quoting Andrew Perrin ([EMAIL
5 matches
Mail list logo