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-15-2009, 10:44 AM   #1
SuperDude123
Member
 
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
done
Pass completed, 5 bad blocks found.


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

Rep: Reputation: 96
Hi.

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...

Dave
 
Old 02-15-2009, 01:12 PM   #3
Electro
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, 03:08 PM   #4
SuperDude123
Member
 
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, 07:36 PM   #5
Electro
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.
 
  


Reply


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


All times are GMT -5. The time now is 03:38 PM.

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