LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-19-2010, 06:59 AM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
Bad Sectors on Hard Disk


Hi

Howto scan and fix Bad Sectors on Hard Disk without damaging data?
 
Old 12-19-2010, 09:21 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Use the badblocks program. See man badblocks
 
Old 12-19-2010, 11:07 AM   #3
Dani1973
Member
 
Registered: Dec 2010
Distribution: Debian testing
Posts: 148

Rep: Reputation: 16
If your drive is about to fail you might consider replacing it as fast as possible.
You can use a tool dd_rescue to copy the entire disk if you have trouble accessing certain files.
 
Old 12-19-2010, 11:08 AM   #4
Zetec
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, W7, openSUSE, Centos
Posts: 152

Rep: Reputation: 25
AS others have said, backup first then try to fix.
 
Old 12-19-2010, 05:38 PM   #5
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
I'd like to scan a hard disk just READ ONLY using badblocks.
Knows someone if:
Code:
# badblocks -s -n /dev/hda
or
Code:
# badblocks -s -v /dev/hda
will not damage any data on the hard disk?
 
Old 12-19-2010, 05:42 PM   #6
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Code:
man badblocks
...
By  default  only  a  nondestructive  read-only  test  is  done.
...
 
  


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
Recover bad sectors on hard disk ahmed_as8 Linux - Software 1 02-04-2009 01:29 AM
Repair Bad Hard Disk Sectors writedom Linux - Newbie 1 06-18-2008 08:25 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
How to remove bad sectors on hard disk ? emailssent General 4 10-13-2004 09:35 AM

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

All times are GMT -5. The time now is 12:24 AM.

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