Poul-Henning Kamp phk at
Thu Feb 24 17:48:51 GMT 2005

In message <53844. at>, falaki at ce.s writes:
>I have a hard disk that seems to have some limitted number of bad sectors.
>I want to use badsect to avoid these errors.
>   ad0: TIMEOUT - READ_DMA retrying (2 retries left) LBA=27546816
>   ad0: FAILURE - READ_DMA timed out
>I tried this:
>   #badsect /mnt/data 27546816
>and got:
>   block 27546816 out of range of file system
>   don't forget to run fsck ...
>What should I do?

You should let your disk deal with it.

Try booting single user and:

	dd if=/dev/ad0 of=/dev/null bs=1m

and see how much damage there actually is.

If there is much damage, you may want to use

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

More information about the freebsd-fs mailing list