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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-04-2008, 01:51 AM
|
#1
|
Member
Registered: Sep 2006
Location: WA St
Distribution: Suse 10.3, Windows XP Home, Register Linux #386151
Posts: 240
Rep:
|
Repair Hard Drive Sectors
Is there a way or a software product that can repair hard drive sectors in Linux? (Suse 10.3)
|
|
|
02-04-2008, 02:25 AM
|
#2
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
No, bad sectors are a physical defect and an unavoidable part of a HDDs life. Once you have a bad sector, you should backup everything on the drive and replace it immediately. It is a condition that will become increasingly worse until you are unable to recover data.
|
|
|
02-04-2008, 03:11 AM
|
#3
|
Senior Member
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369
Rep:
|
repair hard drive sectors
If the bad sectors are caused because the hard drive is old I agree
but in the past we said it can also happen by accident
In that case we belief that when you reformat the hard drive he also
marked the bad sectors and did not use the bad sectors again
good luck
|
|
|
02-04-2008, 10:07 AM
|
#4
|
Member
Registered: Sep 2006
Location: WA St
Distribution: Suse 10.3, Windows XP Home, Register Linux #386151
Posts: 240
Original Poster
Rep:
|
Thanks for the reply. This started happening with my original 40G hhd so I figured it was old so I bought a new 80G hhd. Same thing, different numbers. 10.3 Suse DVD installation disc doesn't do well on "repair" I don't suppose I could use my 10.2 or 10.1 disc for repairs? The 10.3 disc in "repair" mode won't install.
|
|
|
02-04-2008, 12:29 PM
|
#5
|
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
|
I would burn and try:
http://www.ultimatebootcd.com/
It has many interesting programs such as:
http://www.hdat2.com/
among others that may be of interest.
Bad sectors do appear on cheap or old HDD, but it doesn't mean the HDD should be replaced. If you HDD supports SMART, use 'smartctl' to do some tests and see if it is indeed beginning to fail.
I can't understand why so many people on here, as soon as someone reports problems with HDD, they say 'go buy a new one'. First make sure it is really failing, then backup your data, wait for it to fail, then when it fails, go buy a new one.
|
|
|
02-04-2008, 01:35 PM
|
#6
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
Because HDDs are cheap and replaceable, your data is not.
SMART tests are just estimates, they cannot and will not indicate conclusively whether or not a drive is in good condition. I have had drives in perfect working order fail under smartctl, and drives that were completely trashed pass. All smartctl does is read out values from the HDD's firmware and compare them with accepted metrics, it is no indicator of the physical condition of the media.
Some of the SMART selftests can be helpful, but even then, they are not to be trusted fully. I have had worked on machines where the HDD would even past the manufacturer's diagnostics, but still not function properly.
There is absolutely no way to reliably determine the extent and severity of physical HDD degradation from software (beyond telling you what has already been lost), so that is why you replace the drive at any sign of trouble. That is rule one, and always has been.
|
|
|
02-04-2008, 03:40 PM
|
#7
|
Member
Registered: Sep 2006
Location: WA St
Distribution: Suse 10.3, Windows XP Home, Register Linux #386151
Posts: 240
Original Poster
Rep:
|
It's smart that is telling the bad "offline" sectors. The new drive was a Western Digital, same as the old drive. I was told to change the cable so I put a new one on it it went away for awhile and then recently I had to reinstall and the warning from smart came back. I don't have any data that's important but I'm getting tired of the reinstall process and honing the box the way I want it.
|
|
|
02-05-2008, 09:33 AM
|
#8
|
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
|
Maybe next time you should buy a better HDD. None of my HDDs have failed yet (with 1 exception) or report any bad blocks. I expect they will within the next 5-10 years. Now, my computers are not that old (5-7 years is oldest) and they are always built with high quality parts. However, long ago I did buy a Compaq, and the HDD failed within 6 months. Never bought Compaq again. I think the HDD was a cheap Western Digital.
Last edited by H_TeXMeX_H; 02-05-2008 at 09:35 AM.
|
|
|
All times are GMT -5. The time now is 12:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|