|
From: Bruce A. <ba...@gr...> - 2007-04-02 10:12:38
|
Doug: could you please incorporate this into the document? Cristian: is there a way to identify what file is being overwritten with a sector of zeros? Cheers, Bruce On Sun, 1 Apr 2007, Cristian KLEIN wrote: > Hi, > > Please include the following information somewhere on your site. It > describes how to solve 'Current Pending Offline' problems on FreeBSD. If > I had this information sooner, it would have saved me a lot of trouble. > The following was tested on a FreeBSD 5.4, but should work on any > FreeBSD > 5. > > Thank you very much, > Cristi. > > --- cut here --- > Suppose /dev/ad2 is failing a sector $x$. Do the following: > > root# sysctl kern.geom.debugflags=16 > root# dd if=/dev/zero of=/dev/ad2 bs=512 count=1 oseek=$x$ > root# sysctl kern.geom.debugflags=0 > > The first command enables writing directly to GEOM providers (your disk > in this case). The second command overwrites the 'sick' sector with > zeroes. The third command disables writing directly to GEOM providers > (better be safe than sorry). > --- and here --- > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Smartmontools-support mailing list > Sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartmontools-support > |