About badblocks w/dd

Daniel da Costa Jotha <[email protected]>
Newsgroups gmane.comp.gnu.fileutils.bugs
Message-ID <[email protected]>
Hello!

I running a Debian GNU/Linux 3.0 system with Kernel 2.2 and GNU C
Library 2.2.5.


I don't now exactly if it's a bug.
Also it can be from C Library.

The problem is:
I have a 1.44MB floppy disk that has the 2817th sector bad and its
2816th sector isn't bad; when I try to read this sector with the
command:
# dd if=/dev/fd0h1440 of=/dev/null bs=512 skip=2816 count=1
, it gets an io error. I think it's because dd or the C Library gets
1024 bytes instead of 512 bytes at a time from the device.

The badblocks program, which is not part of fileutils package, has the
same behavior with -b 512, an option that takes 512 bytes per block.

I tested to cp a file that is using this sector from the mounted
diskette (an operation that uses kernel filesystem drivers, which ones
don't use glibc), and I don't encounter any problem.

If there isn't information enough, or if my Brazilian English wasn't
very clear, please tell me.
Thanks very much!

_______________________________________________________________________
Yahoo! PageBuilder
O super editor para criação de sites: é grátis, fácil e rápido.
http://br.geocities.yahoo.com/v/pb.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.