Re: Getting rid of pending sectors
[email protected] Wed, 16 Nov 2016 10:24:21 -0500
| Newsgroups | gmane.linux.utilities.smartmontools |
|---|---|
| Message-ID | <[email protected]> |
Badblocks non-destructive write test is EXTREMELY slow. So much so I recommend backing everything up, doing the destructive write test, and restoring (depending on how the test went) as it is usually faster. Beyond that, a read test, either badblocks or SMART should tell you were at least the first pending sector is. I generally use the short SMART test. It stops on the first pending sector it finds, but it is quick. "Fix" that sector and re-run until it completes. If there are still pending sectors, then you have do to the full test. > Hello Bob, > >  > Thanks for your answer. > > Tried âbadblocks -b 4096 -c 8 -svn -o /home/badblocks.n.sdb /dev/sdbâ > but it takes 6 hours to achieve 1% so I stopped dit. > > Any way to know where those pending sectors are so I can tell badblocks > where to search ? > >  > Regards, > > Ozy. > >  > De : Bob Weber [mailto:[email protected]] > Envoyé : dimanche 23 octobre 2016 19:57 > à: [email protected] > Objet : Re: [smartmontools-support] Getting rid of pending sectors > >  > Try badblocks with the non destructive write mode test (-n see "man > badblocks"). That way the drive should remap the sectors after the write > process and hopefully your data will be intact afterwords. > > > ...Bob > > On 10/22/2016 02:03 PM, Orsiris de Jong wrote: > > Hello, > >  > I own a small private NAS with 2x WD RE4 4TB drives. > > One of the drives recently got a number of current pending sectors : > >  > 197 Current_Pending_Sector 0x0032  200  200  000   > Old_age  Always      -      142 > > 198 Offline_Uncorrectable  0x0030  200  200  000   > Old_age  Offline     -      142 > >  > The smart long self test suceeds. > > Iâve tried to force the firmware to reallocate the sectors by reading > them. > > So far Iâve tried : > > dd if=/dev/sdb of=/dev/null bs=4096 > > badblocks -b 4096 -c 8 -sv -o /root/badblocks.sdb /dev/sdb > >  > Neither of both commands changed anything, and the badblocks utility > reports 0 bad blocks. > > Usually the self test locates at least the bad sectors so I can write to > the sector and force reallocation, but nothing here. > >  > Iâm used to not trust a drive if it gets more than 10 bad sectors, but > as itâs a private server, Iâm pretty unwilling to spend 300$ into new > 4TB RE4 / Gold drives. > >  > Any suggestions ? > >  > Regards, > > Ozy. > > > > > > > ------------------------------------------------------------------------------ > > > Check out the vibrant tech community on one of the world's most > > > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > <http://sdm.link/slashdot> > > > > > > > _______________________________________________ > > > Smartmontools-support mailing list > > > [email protected] > <mailto:[email protected]> > > > https://lists.sourceforge.net/lists/listinfo/smartmontools-support > >  > > ------------------------------------------------------------------------------ > > > > Check out the vibrant tech community on one of the world's most > > > > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > <http://sdm.link/slashdot> > > > _______________________________________________ > > > > Smartmontools-support mailing list > > > > [email protected] > <mailto:[email protected]> > > > > https://lists.sourceforge.net/lists/listinfo/smartmontools-support > > > ------------------------------------------------------------------------------ > _______________________________________________ > Smartmontools-support mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/smartmontools-support > ------------------------------------------------------------------------------