Re: Disk copy, last sector problem

From: Philippe Troin
Date: Tue Jun 22 2004 - 12:38:03 EST


David Balazic <david.balazic@xxxxxxxxx> writes:

> Hi!
>
> cat /dev/hda > /dev/hdc
>
> This would not copy the entire disk as expected, but miss the last sector if
> the number of
> sectors on hda is odd. ( I used "cat" becasue it has the simplest syntax,
> "dd" and other behave the same ).
> Has this been fixed recently ?
> What about suppport of other sectors sizes, like 8kb ?

Have you tried setting the device block size to its sector size?

blockdev --setbsz $(blockdev --getss /dev/...) /dev/...

Phil.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/