LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Bad Sectors on Hard Disk (https://www.linuxquestions.org/questions/linux-hardware-18/bad-sectors-on-hard-disk-851189/)

cccc 12-19-2010 06:59 AM

Bad Sectors on Hard Disk
 
Hi

Howto scan and fix Bad Sectors on Hard Disk without damaging data?

AlucardZero 12-19-2010 09:21 AM

Use the badblocks program. See man badblocks

Dani1973 12-19-2010 11:07 AM

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.

Zetec 12-19-2010 11:08 AM

AS others have said, backup first then try to fix.

cccc 12-19-2010 05:38 PM

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?

stress_junkie 12-19-2010 05:42 PM

Code:

man badblocks
...
By  default  only  a  nondestructive  read-only  test  is  done.
...



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