Re: disk duplication question

2001-02-20 Thread Alvin Oga
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

Re: disk duplication question

2001-02-15 Thread David Wright
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 ^

disk duplication question

2001-02-14 Thread Stuart Marshall
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

Re: disk duplication question

2001-02-14 Thread Andrew Perrin
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

Re: disk duplication question

2001-02-14 Thread Stuart Marshall
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