1833875 Members
1962 Online
110063 Solutions
New Discussion

Re: check harddisk

 
SOLVED
Go to solution
hangyu
Regular Advisor

check harddisk

is there any unix command can check the harddisk bad sector and whether it is properly work or not ? thx.
3 REPLIES 3
RAC_1
Honored Contributor
Solution

Re: check harddisk

You can check it with STM, with diskinfo and dd command.
There is no substitute to HARDWORK
sudhapage
Regular Advisor

Re: check harddisk

You may check through following command, it will show you whether harddisk are claimed or not..

If your disk is claimed status, one point of view your disk is ok. But you also have to check through dd, diskinfo, fsck etc..

ioscan -fnC disk

Regards,
Sudhakaran.K
Bill Hassell
Honored Contributor

Re: check harddisk

For a simple read-every-sector test, you can use this command:

DSK=/dev/rdsk/c0t0d0 <---change to match your disk
dd if=$DSK of=/dev/null bs=256k

This checks the ability to read every sector. Any errors will be reported as: I/O error.

Now this is by no means a detailed test. It simply reads the disk. It cannot test random access, writing, etc. The best way to see if the disk is working is to look at /var/adm/syslog/syslog.log regularly.


Bill Hassell, sysadmin