On Sat, 20 Mar 1999, Catalin Bucur wrote: > Hello, > > Normally, if I try to make an image of a healthy disk (3.5") with dd: > dd if=/dev/fd0 of=filename > I obtain a filename with 1474560 bytes length (2880*512). > The problem is: if I have one bad sector(512 bytes) on that disk, I want > to create an image with the same length. Something like that: > dd if/dev/fd0 of=filename conv=noerror bs=512 count=2880 > This command skips the bad block, but the image file length's is 1474048 > bytes. > How can I solve that? > Assuming you know which block is the bad block, you could do something like: dd if=/dev/fd0 of=filename bs=512 count=n (where n is the number of the bad block) dd if=/dev/zero of=filename seek=n bs=512 count=1 dd if=/dev/fd0 of=filename seek=n+1 bs=512 skip=n+1 (I think) -- Mike <[EMAIL PROTECTED]> To program is to be.
