LinuxQuestions.org
Help answer threads with 0 replies.
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 11-29-2011, 03:52 AM   #1
sunnieside-up
Member
 
Registered: Aug 2011
Distribution: Debian
Posts: 68

Rep: Reputation: Disabled
Hard Disk Bad Sectors Help


Hi All,

I have an external USB hard disk, partitioned in NTFS and Ext4, but when I try to copy off some areas of the ext4 part, the hard disk just stops reading properly and I get I/O errors. I ran badblocks, and it found a ton of bad sectors on the ext4 partition... and a few on the NTFS as well. What is the best way to fix this? Is there any way to recover the data on the corrupted portion? Thanks!
 
Old 11-29-2011, 04:14 AM   #2
godh8sme
LQ Newbie
 
Registered: Dec 2005
Location: mid MO
Distribution: Suse 10
Posts: 14

Rep: Reputation: 0
The best way I have found is a program called SpinRite its not foolproof but I have had a lot of success with it. You can find it a grc.com
 
Old 11-29-2011, 02:33 PM   #3
sunnieside-up
Member
 
Registered: Aug 2011
Distribution: Debian
Posts: 68

Original Poster
Rep: Reputation: Disabled
Thanks, I'll look into it! It looks like a data recovery thing, but once I recovered the data and want to reuse the hard disk, how do I fix or block the bad sectors?
 
Old 11-29-2011, 03:18 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You simply don't. If you have a massive amount of bad blocks that means the disk is dying, you will get more and more bad blocks on it. Backup/recover all you can, then replace the disk. Using it any further is of no use at all, you will loose data.
 
Old 11-30-2011, 12:37 AM   #5
godh8sme
LQ Newbie
 
Registered: Dec 2005
Location: mid MO
Distribution: Suse 10
Posts: 14

Rep: Reputation: 0
SpinRite will mark the sectors as bad and remove them from use. But as stated above if there are a lot of them I would only use the disk as a secondary or temporary use disk as it is likely to be dying.
 
Old 11-30-2011, 05:21 AM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I agree with TobiSGD, the drive will die very soon.

Spinrite is not a good solution, IMO. Yeah, it will mark bad sectors, and then you may believe that the drive is ok, but it will fail suddenly and Spinrite won't be able to help.

What I would do is I would either get all the important data off ASAP, or I would image the drive to a larger drive if you have a lot of important data on it.
 
Old 11-30-2011, 08:06 PM   #7
sunnieside-up
Member
 
Registered: Aug 2011
Distribution: Debian
Posts: 68

Original Poster
Rep: Reputation: Disabled
Alright, thank you all for your help!
 
  


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
HARD DISK BAD SECTOrS dishman316 Linux - Hardware 2 04-14-2011 09:23 AM
[SOLVED] Bad sectors on Hard Disk dsenic2000@yahoo.com Debian 5 03-17-2011 02:07 AM
Bad Sectors on Hard Disk cccc Linux - Hardware 5 12-19-2010 05:42 PM
HARD DISK BAD SECTOrS zoetrope87 Linux - Hardware 7 03-02-2007 05:16 PM
HARD DISK BAD SECTOrS zoetrope87 Linux - Software 2 01-12-2006 03:54 AM

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

All times are GMT -5. The time now is 01:14 PM.

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