LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 02-04-2008, 01:51 AM   #1
raylhm
Member
 
Registered: Sep 2006
Location: WA St
Distribution: Suse 10.3, Windows XP Home, Register Linux #386151
Posts: 240

Rep: Reputation: 30
Repair Hard Drive Sectors


Is there a way or a software product that can repair hard drive sectors in Linux? (Suse 10.3)
 
Old 02-04-2008, 02:25 AM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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.
 
Old 02-04-2008, 03:11 AM   #3
ronlau9
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: Reputation: Disabled
Question 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
 
Old 02-04-2008, 10:07 AM   #4
raylhm
Member
 
Registered: Sep 2006
Location: WA St
Distribution: Suse 10.3, Windows XP Home, Register Linux #386151
Posts: 240

Original Poster
Rep: Reputation: 30
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.
 
Old 02-04-2008, 12:29 PM   #5
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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.
 
Old 02-04-2008, 01:35 PM   #6
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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.
 
Old 02-04-2008, 03:40 PM   #7
raylhm
Member
 
Registered: Sep 2006
Location: WA St
Distribution: Suse 10.3, Windows XP Home, Register Linux #386151
Posts: 240

Original Poster
Rep: Reputation: 30
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.
 
Old 02-05-2008, 09:33 AM   #8
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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.
 
  


Reply

Tags
hdd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Bad sectors in hard drive Johnnio Linux - Hardware 5 07-31-2007 03:38 PM
Repair Hard drive bad sector jselby Linux - Hardware 4 10-25-2005 06:27 PM
repair corrupt floppy sectors cccc Linux - Hardware 1 08-05-2005 04:00 AM
How to I check a Linux formated hard drive for bad sectors NewtoLinuxWorld Linux - Hardware 1 02-27-2004 03:46 AM
Linux Software to Repair Hard Drive adamsjw2 Linux - Software 4 08-06-2003 05:32 PM


All times are GMT -5. The time now is 06:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration