LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   howto troubleshoot disk with dmesg (https://www.linuxquestions.org/questions/linux-newbie-8/howto-troubleshoot-disk-with-dmesg-871539/)

drManhattan 03-28-2011 02:58 PM

howto troubleshoot disk with dmesg
 
Hi

How can I troubleshoot disk with 'dmesg' cmd ?
How to distinquish :
- physical disk error
- file system corruption

What is I/O Error ?

thx for help.

kilgoretrout 03-28-2011 03:21 PM

The dmesg command outputs kernel messages which can help in troubleshooting hardware problems. An I/O error message relating to a hard drive which shows up in dmesg output indicates the system is having difficulty reading from or writing to a sector on the hard drive. There can be many reasons for this.

The best way to trouble shoot possible hardware related problems with hard drives is by running the manufacturer's diagnostic utilities in thorough mode on the drive. All the major manufacturers have them on their websites. They are generally in the form of a bootable iso file which your burn as an image to a CD-R. You then boot with the CD-R and run the manufacturer's diagnostic utility which will thoroughly test the hard drive sector by sector. This can take a long time when run in thorough mode but you will definitively know if the drive has hardware issues when your done. Also, if the hard drive is still under warranty, usually 3 to 5 years, the manufacturer generally requires that you run their diagnostics on the drive before returning for warranty replacement.


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