tool for mapping away bad blocks on an external disk
RW
rwmaillists at googlemail.com
Mon Apr 18 21:33:35 UTC 2016
On Mon, 18 Apr 2016 15:56:05 -0500 (CDT)
Valeri Galtsev wrote:
> On Mon, April 18, 2016 3:45 pm, Kevin P. Neal wrote:
> > On Mon, Apr 18, 2016 at 08:55:34AM +0200, Matthias Apitz wrote:
> >>
> >> Thanks for all the hints; I started last night with overwriting
> >> the full disk with:
> >>
> >> # dd conv=noerror if=/dev/zero of=/dev/da0 bs=1m
> >
> > Just curious: Does anyone know what happens when there is not
> > enough space at the end of a disk (or tape) to write the entire
> > block? Does a partial block get written, or does no block get
> > written?
>
> As far as I understand, block device (/dev/da0) operations are
> "quantized" in size of blocks the device reports to the system.
> (which are either 512 bytes or 4kbytes on most modern 4kn drives)
FWIW FreeBSD hasn't had block devices for a long time. It's
true that drives don't have fractional sectors, but I think the block
referred to is the block size in the dd command.
The dd man page does refer to writing partial blocks:
"A partial output block is one where less than the output block size
was written. Partial output blocks to tape devices are considered
fatal errors. Otherwise, the rest of the block will be written.
Partial output blocks to character devices will produce a warning
message."
More information about the freebsd-questions
mailing list