View Single Post
  #3   (View Single Post)  
Old 18th October 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

You can do it like that:
Code:
% dd < /dev/ad0 > /dev/null
it will read every block of your hard drive, if you get any read errors, then you have bad sectors.

You can also try to "fix" these bad sectors with gshred from coreutils package:
Code:
# gshred --verbose /dev/ad0
But keep in mind that gshred will erase all your data from this drive.
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote