Operating System - HP-UX
1834903 Members
2764 Online
110071 Solutions
New Discussion

What is the command to test a disk integrity

 
SOLVED
Go to solution
Vamsidin
Frequent Advisor

What is the command to test a disk integrity

What is the command to test a disk integrity
5 REPLIES 5
Grayh
Trusted Contributor

Re: What is the command to test a disk integrity

#dd if=/dev/rdsk/cXtXdX of=/dev/null bs=64k count=1000

James R. Ferguson
Acclaimed Contributor
Solution

Re: What is the command to test a disk integrity

Hi:

# dd if=/dev/rdsk/cXtYdZ of=/dev/null bs=1024k count=100

...drop the count option for an exhaustive (!) read of the entire disk.

Note the use of the raw device file to eliminate use of the buffer cache.

If the number of recoreds and equals the number out, you can perform I/O without error.

Regards!

...JRF...
Vamsidin
Frequent Advisor

Re: What is the command to test a disk integrity

Thank you so much that was really Quick...

It was useful
Vamsidin
Frequent Advisor

Re: What is the command to test a disk integrity

The above commands were useful
Paul Sperry
Honored Contributor

Re: What is the command to test a disk integrity

you could also exercise\verify the disk in xstm