Re: Disk cloning script...

From: Stachu 'Dozzie' K. (dozzie_at_dynamit.im.pwr.wroc.pl.nospam)
Date: 04/10/05


Date: Sun, 10 Apr 2005 12:26:11 +0000 (UTC)

On 10.04.2005, mgrd <mgrd@gmx.net> wrote:
> Bev A. Kupf wrote:
>> You would use something like: `dd if=/dev/acd0 of=/dev/acd1 bs=512`
>
> Someone else suggested `bs=4096'
>
> Isn't the block size of the output file determined by the block size
> used on the original file system (= if)?

My `man dd' says that the default for bs is 512 bytes. And how would you
like to determine original filesystem's block size when there's no
filesystem, eg. when dumping raw hard disk (with MBR and all other
sections)?

> Or can you choose any block size?

You can, but for performance you should choose multiple of device's
block size. *Device's*, not *filesystem's*.

-- 
Feel free to correct my English
Stanislaw Klekot