Have the same exact error on a friend's Ubuntu system that was on an outlet controlled by a light switch and powered off as such. Bad design as you can imagine, but that's literally how they turned off their computer. Long story short, the error you're seeing is possibly just the tip of the iceberg. In other words, after mounting and attempting to navigate around the drive (i.e. /home
) you may start hitting Could not ls: Input/output error
, etc.
Their's is an 80 GB HDD and I've already begin using PhotoRec which is pretty effective when it comes to images (not so much with *.mp4, *.mov, etc). Tried e2fsck
without much success, just a large lost+found directory with missing files, and errors remaining in an attempt to fix the partitions but to no avail.
At this point I'm not too hopeful that I'll be able to "revert" the system to a usable/bootable state, but I did want to mention some data recovery tools in the event your system is beyond a simple e2fsck
repair.
There is also TestDisk which comes from the same vendor as PhotoRec and claims to be able to fix partition tables. I have not actually tried it yet, but it does come on the Ubuntu Rescue Remix Live CD. I was able to locate an ISO here as their main site is currently throwing a HTTP 500.
Also wanted to mention that Ubuntu Rescue Remix comes with ddrescue
which I incidentally jumped to prior to learning that conventional dd
imaging does not work for the same reason (Input/output error reading /dev/sda
). I can't get more than 5 MB before dd
quits on me, where as ddrescue
is able to skip unreadable blocks and dump the entire partition, implying data loss of course.
badblocks -s /dev/XdY
) – Fabby Jan 13 '16 at 11:25