Bad Sectors on HDD??

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Black Swordsman

Bad Sectors on HDD??

Post by Black Swordsman »

Not sure if this is the proper place to post this but I was wondering if there was a way to fix bad sectors on a hard drive?

(I would like to show an screenshot of the Disks, which is where I got my question but not sure how to put it on here)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Mute Ant

Re: Bad Sectors on HDD??

Post by Mute Ant »

"A way to fix bad sectors on a hard drive?" No there isn't. The SMART bad sector count represents permanently defective areas on a storage device. Even if you had access to the factory formatting software, all it could do is move the bad blocks out of the 'visible' list into the 'hidden' list of unusable storage.

Bad sectors are re-mapped by the drive firmware when you try to write to them, until the drive runs out of spares. For a magnetic disk drive...
o No bad sectors: Good.
o Tens of bad sectors: Bad luck, or bad handling.
o Hundreds of bad sectors: Duplicate the data really soon, before it simply stops working.

SSD are slightly different...
o The bad luck is built in to the physics of pushing bits through an insulator. It's just normal for the occasional transistor to go pop during a write, without degrading the reliability of the drive.
o If the SSD SMART is honest, one bad bit shows up as a whole erase block gone 'bad' ... 8192 sectors lost all in one go. Don't Panic.
Black Swordsman

Re: Bad Sectors on HDD??

Post by Black Swordsman »

Ok so when it says that there are 3 bad sectors then I don't really need to worry as of right now?
User avatar
Pjotr
Level 24
Level 24
Posts: 20086
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Bad Sectors on HDD??

Post by Pjotr »

Black Swordsman wrote: Tue Mar 06, 2018 9:10 am Ok so when it says that there are 3 bad sectors then I don't really need to worry as of right now?
Well, I wouldn't trust such a disk.... Disk rot usually goes from bad to worse rather rapidly.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Black Swordsman

Re: Bad Sectors on HDD??

Post by Black Swordsman »

Hmmm, It is a rather old laptop...
User avatar
Moem
Level 22
Level 22
Posts: 16229
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Bad Sectors on HDD??

Post by Moem »

That's a good reason to make your data is backed up regularly.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
Black Swordsman

Re: Bad Sectors on HDD??

Post by Black Swordsman »

If I were to back up the system using Timeshift and then decided to change out the Drive for an SSD, would I be able to restore the data saved on Timeshift onto the SSD or would I have to reinstall everything?
User avatar
sdibaja
Level 5
Level 5
Posts: 899
Joined: Sun May 08, 2011 12:57 pm
Location: Baja California, Mexico

Re: Bad Sectors on HDD??

Post by sdibaja »

I suggest you install GSmartControl and test your drive.

Sometimes you can run a drive for more than 10 years and have no problems at all... but as said above, when they go bad the usually die rapidly.

Yes, Backup, Backup, Backup... always. (I prefer LuckyBackup)
also Clone your drive for quick repair or migrate (I clone root, /home, and swap partitions to an external device with Gparted)
Peter
Mate desktop https://wiki.debian.org/MATE
Debian GNU/Linux operating system: https://www.debian.org/download
Mute Ant

Re: Bad Sectors on HDD??

Post by Mute Ant »

"Ok so when it says that there are 3 bad sectors then I don't really need to worry as of right now?" I wouldn't panic, no. The count won't increase unless you try to write to a bad sector, but you can check the general readability while a drive is in use...
A Note the 'Sectors Pending Re-allocation' count.
B Read the whole drive at around 10GB/minute, throwing away the data... sudo cat /dev/sda > /dev/zero
C Note the 'Sectors Pending Re-allocation count.
If the number for C is larger than the number for A, the drive is definitely failing.

BackBlaze reported that half of their failed drives never showed a SMART error... a "Drive is Okay" report is often wrong, but a "Drive is Failing" report is usually correct.
vintagepen

Re: Bad Sectors on HDD??

Post by vintagepen »

I have a similar problem on a 750gb drive in a secondary computer. Very secondary. In the sense that there is nothing to lose.

It has been failing SMART for about six months but otherwise everything seems OK?? no slowness, no temp alerts, no data loss, and the drive passes all other tests. So I have been watching it and looking for a way of resetting SMART.'

Then I discovered something called drive refurbishment. There is a video online of a software called Dolphin drive refurbishment which includes SMART resetting! So I thought I'd explore. That came screeching to a halt pretty quickly. Dolphin tools costs more than buying another drive!

Leading to some obvious questions. When drives either start or look as if they are failing, they almost always are and failing surely MUST be in a hardware (platter) sense. So why would anyone want to either refurbish a drive, or spend so much money buying software to do large scale refurbishment of lots of drives which perceived wisdom states are 98% BOUND to fail, and quickly too! (I dont believe that a company has designed software solely to allow crooks to make dying HDDs look OK. SO what is drive refurbishment for??)

if there really is no practical way of resetting SMART, I am running a slowest/most secure erase on this drive. if writing every sector seven times doesn't kill it stone dead, surely nothing will?
gm10

Re: Bad Sectors on HDD??

Post by gm10 »

I'm not a moderator but:
1. Please don't necro post
2. Please don't off-topic post (no, you're not on topic)
3. Please don't post in big text. If your eyesight is failing then zoom your browser window, don't force it on us.

As to your question: You don't reset S.M.A.R.T. data for legitimate reasons. And all mechanics eventually fail, your drive is no different. But if you want to speed up its demise then writing every sector several times is probably the way to do it, so go ahead. ;)
User avatar
Pjotr
Level 24
Level 24
Posts: 20086
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland) 🇳🇱
Contact:

Re: Bad Sectors on HDD??

Post by Pjotr »

As gm10 said. And don't use fancy colours for your text. It's silly, straining for the eyes of the readers and distracts from the content.
Tip: 10 things to do after installing Linux Mint 21.3 Virginia
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Locked

Return to “Hardware Support”