LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-24-2020, 01:52 PM   #1
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Rep: Reputation: 51
hard drive with bad sectors, still OK to use?


This is in relation to Linux on my main laptop thread. It became a distro question, and now it has graduated to a hard drive question.

Original thread:
https://www.linuxquestions.org/quest...op-4175667927/

So just discovered my hard drive had a bad sector count of 200 sectors. I have installed the SMART tools (smartctl, gsmartcontrol) and I have attached a screenshot and logs. It still managed to pass the extended 3 hour SMART test.

I think in the coming months I will likely get a new laptop but I was just wondering what some of these numbers/results mean and what kind of future my drive may have (if any). I'm going to probably end up keeping the laptop as a test laptop until she finally gives up.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2020-01-24 14-10-33.png
Views:	68
Size:	79.1 KB
ID:	32393  
Attached Files
File Type: txt TOSHIBA_MQ01ABD075_33MMT1S8T_2020-01-24.txt (27.9 KB, 21 views)
 
Old 01-24-2020, 02:43 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
I'd get the OEM diag suite if possible to run it. They usually have the numbers that tell good or bad. It is common for a drive to show errors and I think smart will give some reference number. Laptops get some rough treatment.

12K hours doesn't really mean the thing has been moving data, just that it was powered on.
 
1 members found this post helpful.
Old 01-25-2020, 05:45 AM   #3
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,493

Rep: Reputation: Disabled
Laptops can get surface damage on spinning disks if not handled carefully, your dead sectors could be from rough handling, or age, but whichever it is, I've been running some old HDDs for years with some bad sectors present.

If you're worried that it may be failing, I'd suggest keeping an eye on how many new bad sectors appear, & how quickly.
 
1 members found this post helpful.
Old 01-25-2020, 06:22 AM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,627

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
I would not panic at a few bad sectors. they may have been there since the drive was new. a certain number are normal and allowed.

That said, I would be more aware of your backup integrity and backup schedule, and make sure my critical data was backed up or duplicated in another environment less subject to loss in the unlikely case that the drive fails catastrophically and unexpectedly.
 
2 members found this post helpful.
Old 01-25-2020, 07:21 AM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
there use to be, back, way back in the stone age of hdds that did not get to close 1GB, you could mark the bad sectors to not use them then get on with life.
 
2 members found this post helpful.
Old 01-25-2020, 10:37 AM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
My desktop's drive had over 100 bad sectors and still worked — until it suddenly stopped. In future I'd take bad sectors as as the the writing on the wall.
 
2 members found this post helpful.
Old 01-25-2020, 03:07 PM   #7
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
A bad sector count of 200 suggests that the drive might be on its way out. A laptop can easily develop a small number of bad sectors and not be of concern, but "200" is really not a small number in that context. The SMART system built into the drive will not predict failure until the drive has almost exhausted its supply of spare sectors (thousands), but that is far, far beyond the point at which the drive should have been removed from service.

If you do continue to use the drive, you should use a monitoring daemon like smartd to report any changes in status. If you see additional bad sectors develop, the drive should be replaced immediately.
 
1 members found this post helpful.
Old 01-26-2020, 08:12 PM   #8
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
The number of bad sectors isn't the thing to worry about, it's their escalation rate. i.e. how fast the count increases. All hard disks have a bad block file on the disk, they are made to look perfect to the operating system by having the bad block manufacturing imperfections vectored out to a different are of the disk. (There are probably a couple of spare cylinders allocated for this purpose.) If the bad block count is increasing quickly then the disk is probably on the way out. If it's stable you're probably OK, but keep monitoring now and again. Laptops are more prone to rough handling.

Going by your disk geometry file, your 750Gb disk has actually got a capacity of 750,156,374,016 bytes with a physical sector size of 4096 bytes. This, with my poor grip of mathematics, seems to equate to 183,143,646 sectors of which you have a mere 200 marked as bad. That's 0.0001% of the total sectors faulty according to my calculator which is struggling to work with such large numbers.

I reckon your disk is probably OK for the reasons above but check it every now and again just in case. In the bad old days I used to reformat dodgy partitions periodically on 500Mb drives to re-vector bad blocks, even 200 sectors on a disk as small as that didn't warrant immediate replacement.

My

Play Bonny!

 
2 members found this post helpful.
Old 01-27-2020, 09:07 AM   #9
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by jefro View Post
I'd get the OEM diag suite if possible to run it. They usually have the numbers that tell good or bad. It is common for a drive to show errors and I think smart will give some reference number. Laptops get some rough treatment.
I had wondered about finding some sort of OEM diagnostics. I dug out my old Ultimate Boot ( https://www.ultimatebootcd.com/ )hardware diagnostic just to check, but under its hard drive diagnostics it didn't have anything under Toshiba manufactured hard drives...mainly the other ones: Seagate, WD, etc. The other utilities MAY have worked, but I hadn't tried them yet.


Quote:
Originally Posted by fatmac View Post
Laptops can get surface damage on spinning disks if not handled carefully, your dead sectors could be from rough handling, or age, but whichever it is, I've been running some old HDDs for years with some bad sectors present.

If you're worried that it may be failing, I'd suggest keeping an eye on how many new bad sectors appear, & how quickly.
I kinda thought maybe it did get some bad sectors from rough handling. It doesn't really get too abused as maybe some laptops, but I'm sure it's been bumped a time or two.

Quote:
Originally Posted by wpeckham View Post
I would not panic at a few bad sectors. they may have been there since the drive was new. a certain number are normal and allowed.

That said, I would be more aware of your backup integrity and backup schedule, and make sure my critical data was backed up or duplicated in another environment less subject to loss in the unlikely case that the drive fails catastrophically and unexpectedly.
I had already backed up the files from that drive anyways. I'm going to be moving them to my other laptop and then some will probably go on my file server. I posted another thread on the topic, but I have been definitely been on more of a kick to fix our backup routine/schedule. Here in the next few months I'll purchasing some larger terabyte drives to keep some copies of our data on.

Quote:
Originally Posted by rknichols View Post
...If you do continue to use the drive, you should use a monitoring daemon like smartd to report any changes in status. If you see additional bad sectors develop, the drive should be replaced immediately.
Good suggestion, I may look into that.


Thanks for the replies everyone. Right now, the laptop is not really going to be used for anything mission critical especially since I will get a replacement in the coming months. And I'm definitely going to be keeping an eye on it for increasing bad sectors.
 
Old 02-04-2020, 03:08 PM   #10
masterclassic
Member
 
Registered: Jun 2007
Distribution: Knoppix, antiX
Posts: 252

Rep: Reputation: 73
SMART doesn't monitor bad sectors only. There are many other things concerning hard drive's health. I don't think hard drives die from lack of spare sectors. More serious problems can be with heads, drive electronics, interface electronics... For instance, voltage shock from a defective power supply unit can damage drive's electronics (as well as motherboard, CPU and other parts too). Drive's temperature is something to monitor, too.
Nevertheless, an increased number of bad sectors could make us think that there is something that "helps" them go bad

And yes, backup is the only way to keep our data safe.
 
1 members found this post helpful.
Old 02-10-2020, 03:32 PM   #11
Hermani
Member
 
Registered: Apr 2018
Location: Delden, NL
Distribution: Ubuntu
Posts: 261
Blog Entries: 3

Rep: Reputation: 113Reputation: 113
To put numbers to it all, I like to refer to the Google study that examined the collected details of over 100,000 hard drives used in their data centers.

They concluded based on this study:

Quote:
After their first reallocation, drives are over 14 times more likely to fail within 60 days than drives without reallocation counts
(a reallocation count can be read as a bad sector that needed reallocation).

And of course, I know, a laptop hard drive has a different use, a 2,5" hard drive is not a 3,5" hard drive, the study is about hard drives from the early 2000's - however the paper makes for interesting reading and might shed some light on what you can expect of a hard drive with bad sectors. You can find it here online (PDF): https://static.googleusercontent.com...k_failures.pdf

It is up to you if you want to accept data loss on that drive. For example, I have a drive with some bad sectors running in a backup RAID array. It is the backup array, it is in a RAID 1 array so I don't worry about the drive: sudden and complete drive failure will not result in data loss and even the loss of the complete array will not directly result in data loss. So I don't mind and sleep well at night.

However in your case, things might be different. You can choose:
  1. replace the drive now, on a time of your choosing with all data preserved
  2. replace the drive later when it has failed, with possible data loss, and at a time you might not have the time to do it
  3. do not replace the drive and buy a new laptop when the drive fails, knowing all files are safe because you made sure no files are to be found on the laptop only

In your case, I'd opt for 3 because 12,000 hours of lifetime activity means 500 days of constant use. And because you have to sleep and do other things, the laptop may be an old laptop. And because, finally, you always have to make sure no data is on a single point of failure.

Choose wisely

Last edited by Hermani; 02-10-2020 at 03:50 PM.
 
Old 02-12-2020, 12:57 PM   #12
Basslord1124
Member
 
Registered: Jun 2004
Location: KY
Distribution: Debian, Mint, Puppy
Posts: 507

Original Poster
Rep: Reputation: 51
Thanks for the article Hermani...I'll check it out. It'd be interesting to see what their experiences were.

As for the drive/laptop, currently the laptop is just being used as a simple Linux Mint workstation that I sit next to my file server. I use it just for looking up things on the net if I have questions/issues with my server. No major data is stored on it now. If it dies tomorrow, life will go on with no major data loss. I have moved all my major data over to a Samsung laptop with similar specs. I'll just use it until I get a new laptop.
 
1 members found this post helpful.
Old 02-12-2020, 02:58 PM   #13
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Other hard drive diags may provide some help and maybe 100% working but I always try to get the OEM diags on their web site. Sometimes might have to email for support. The OEM diags in my opinion tend to be best as they have inside track on device.
 
Old 02-18-2020, 09:20 AM   #14
martin smith
Member
 
Registered: Feb 2020
Posts: 34

Rep: Reputation: 3
Generally if drive starts developing bad sectors, data on it no longer can be considered safe. But possibly you can still use it to hold some non important data you're not afraid to loose
If your drive however is getting new bad sectors then you have a problem immediately copying all data off of the disk and replacing it. You can format the drive
If you have part of a file in a bad sector then that file will be corrupted and likely unusable.

Last edited by martin smith; 02-18-2020 at 09:23 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM: pvcreate fails on 5TB drive with "pe_align (2048 sectors) must not be less than pe_align_offset (8388607 sectors)" furryspider Slackware 12 10-14-2016 05:21 PM
LXer: Check Hard drive for bad sectors or bad blocks in linux LXer Syndicated Linux News 0 08-11-2014 08:00 AM
LXer: Check Hard drive for bad sectors or bad blocks in linux LXer Syndicated Linux News 0 08-10-2014 12:21 AM
How to use Gparted to copy a partition with bad sectors to a new hard drive? aarcov Linux - Software 3 08-15-2012 03:53 AM
re-allocated sectors count shows 2 bad sectors, in Ubuntu 10.04 disk utility james2b Linux - Hardware 4 10-12-2010 11:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration