Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Feb 2005 17:49:37 +0100
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        falaki@ce.sharif.edu
Cc:        freebsd-fs@freebsd.org
Subject:   Re: badsect 
Message-ID:  <8879.1109263777@critter.freebsd.dk>
In-Reply-To: Your message of "Thu, 24 Feb 2005 20:22:32 %2B0330." <53844.194.225.42.20.1109263952.squirrel@ce.sharif.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <53844.194.225.42.20.1109263952.squirrel@ce.sharif.edu>, falaki@ce.s
harif.edu writes:
>Hello;
>
>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
	src/tools/tools/recoverdisk
instead

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8879.1109263777>