HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: check harddisk
Operating System - HP-UX
1833875
Members
1962
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2006 06:14 PM
09-20-2006 06:14 PM
is there any unix command can check the harddisk bad sector and whether it is properly work or not ? thx.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2006 06:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2006 06:30 PM
09-20-2006 06:30 PM
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2006 02:47 AM
09-21-2006 02:47 AM
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
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
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP