Operating System - HP-UX
1834163 Members
2446 Online
110064 Solutions
New Discussion

Anyway to scan a disk for bad sectors?

 
SOLVED
Go to solution
Sean OB_1
Honored Contributor

Anyway to scan a disk for bad sectors?

Is there any way in HPUX 11i to scan a single disk for bad sectors?

I have a file that can be read on what file system, but has problems on another. I'm trying to determine if there's a physical problem with the disk(s) in the LV that the file has problems in.
2 REPLIES 2
Bernhard Mueller
Honored Contributor
Solution

Re: Anyway to scan a disk for bad sectors?

Hi,

typically the test on a disk is:
dd if=dev/rdsk/cXtYd0 of=/dev/null bs=1024k

if this exits without I/O error, the disk is assumed OK

Regards
Bernhard
Ashwani Kashyap
Honored Contributor

Re: Anyway to scan a disk for bad sectors?

Have you tried dd .
#dd if=/dev/dsk/ of=/dev/null .

This will give an error on ecncountering bad blocks .