Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I keep getting the following error my Linux machine.

Input/output error

It occurs when I try to us commands like df or change to certain directories on the drive.

Could this be caused by a hard drive failure?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Yes, it could be caused by hard drive failure. Or a bad cable. Or a good cable that isn't fully plugged in. Or bad RAM. Or other things. Is it consistently certain directories? That makes drive failure a more likely explanation.

BACK UP YOUR DATA RIGHT NOW!

OK, you're done with that? Now, boot the system off an Ubuntu, Knoppix, or other LiveCD and run fsck on the partition that has problems. If it's filesystem (as opposed to hardware) problems, fsck should be able to fix it. If you're using ext*, you can run badblocks to check for actual physical damage to the platters (the "-c" flag).

If you're experiencing hardware problems, just go ahead and buy a new disk. Hard drives are really, really cheap these days.

share|improve this answer
    
run badblocks first, then fsck. fsck will just make things worse if the drive is dying. –  user23307 Feb 14 '10 at 17:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.