Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
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?


  Search this Thread
Old 02-15-2009, 11:44 AM   #1
Registered: Nov 2008
Posts: 158

Rep: Reputation: 30
Bad sectors, what to do with them?

Here's what I ran:

sudo badblocks -sv /dev/hda
Checking blocks 0 to 20010815
Checking for bad blocks (read-only test): 193106569310656/ 20010815
193106649310664/ 20010815
193106659310665/ 20010815
193106669310666/ 20010815
193106679310667/ 20010815
Pass completed, 5 bad blocks found.

what should I do with this data? Can I blacklist those 5 sectors?
Old 02-15-2009, 12:29 PM   #2
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96

Check the man page for mkfs.ext3 and look for the '-l' option.

I'd be wary of entrusting valuable data to that disk though...

Old 02-15-2009, 02:12 PM   #3
LQ Guru
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Use a hard disk utility from the manufacture to mark those sectors as bad and it should use its spare sectors as a substitute. If you run the badblock utility, it should not list any bad sectors.
Old 02-15-2009, 04:08 PM   #4
Registered: Nov 2008
Posts: 158

Original Poster
Rep: Reputation: 30
Is there a way to do this from a distance? I'm running the server over ssh, and the box is in a different city.
Old 02-15-2009, 08:36 PM   #5
LQ Guru
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
You can not do anything on your end. Force the person that built the server to fix the problem. One of the fixes is using a hard drive utility from the hard drive manufacture. If the utility badblocks still prints out corrupt sectors, it is best to just replace the hard drive.


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
mark bad sectors juice99 Linux - Hardware 3 02-25-2008 01:43 AM
Bad sectors and RAID comrade_bronski Linux - General 1 10-16-2006 09:29 AM
Bad sectors tuxombie Linux - Hardware 3 01-29-2005 02:05 PM
searching 4 bad sectors zeky Linux - Software 1 12-12-2002 09:49 AM
Bad sectors blystovski Linux - Software 1 10-17-2001 01:18 PM

All times are GMT -5. The time now is 02:30 PM.

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