ls: cannot access *** Input/output error
Jump to:
Project: | Linux software |
Component: | Documentation |
Category: | bug report |
Priority: | normal |
Assigned: | Unassigned |
Status: | active |
Related pages: | #29: filesystem :-:-: #65: Troubleshooting a failing hard drive |
Description
I have an external USB drive. I can mount it and browse some of its directories.
However, when I try to browse a specific directory, I get:
ls: cannot access *** Input/output error
Comments
#1
wiki.
#2
http://en.wikipedia.org/wiki/S.M.A.R.T.
do smart test
$ sudo apt-get install smartmontools
http://ubuntuforums.org/showthread.php?t=1129872
#3
try e2fsck
http://www.mail-archive.com/cwelug@googlegroups.com/msg00823.html
#4
Reboot with force fsck to check your filesystems
shutdown -F -r now
http://bbs.archlinux.org/viewtopic.php?pid=549952
#5
fdisk -l
dd if=/dev/zero of=/dev/sdb
http://www.linuxforums.org/forum/misc/122254-solved-cant-remove-files-us...
#6
(Probably) the filesystem is corrupted.
I would copy/clone the the whole partition (using eg. dd) just to make data safe (don't forget to unmount the partition first).
Then you can experiment with one of the copies to recover the files and fix filesystem; try to run fsck, or this might help as well:
http://www.cgsecurity.org/
(photorec, testdisk)
http://linux.derkeiler.com/Mailing-Lists/SuSE/2009-11/msg02355.html
#7
with USB unless you have gone out of your way to write another file
system over the one you have then your friend is a little tool called
dosfsck
as long as it is not mounted
dosfsck /dev/sd.....
you change the dots for real life partition things
warning backup the rest of the key first - if it breaks you get to keep
all the pieces :-/
http://old.nabble.com/Input-Output-error-td20099254.html
#8
If you check the /var/log/messages and /var/log/dmesg you may find warnings re your disk.
http://www.linuxquestions.org/questions/linux-newbie-8/input-output-erro...
#9
Your harddrive may be failing. I would recommend backing up everything that is important just in case. If you are running Karmic, there is a utility called palimpsest which will check the SMART status of the drive and let you know if there are any bad sectors on the disk. System-->Administration-->Disk Utility is where it is located. You can also run the drive test utility made by the harddrive manufacturer (should be a free download from their website).
http://ubuntuforums.org/showthread.php?t=1357398
#10
wiki.
#11
I couldn't find in Ubuntu , Debian and TLDP documentation anything about disk failure...
#12
Installing
smartmontools
installed postfix as well, which I am sure I didn't configure properly when I was asked:#13
# e2fsck /dev/sdc1
e2fsck 1.41.9 (22-Aug-2009)
/dev/sdc1 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Error reading block 162824194 (Attempt to read block from filesystem resulted in short read) while getting next inode from scan. Ignore error<y>?
What am I supposed to answer? What is safe? What difference does it make?
man e2fsck didn't help much.
#14
I asked here:
http://kubuntuforums.net/forums/index.php?topic=3112081.0
#15
http://blog.volker-lanz.de/2010/05/29/new-in-kde-partition-manager-1-1-i...
KDE Partition Manager 1.1 gains support for reading, analyzing and reporting the SMART status of disks. SMART (sometimes also written as S.M.A.R.T.) is an acronym for “Self-Monitoring, Analysis, and Reporting Technology”. In plain English it is a monitoring system for hard drives and its intention is to give the computer user a chance to take action before an impending hard drive failure — the action being to copy his data to another disk, of course.
#16
http://0pointer.de/blog/projects/being-smart.html