Linux Cd Input/output Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow ls reading directory . input/output error in linux the company Business Learn more about hiring developers or posting ads with us Unix & input/output error ubuntu Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users input/output error centos of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise
Cannot Open Directory . Input/output Error
to the top “Input/output error” when accessing a directory up vote 39 down vote favorite 9 I want to list and remove the content of a directory on a removable hard drive. But I have experienced "Input/output error": $ rm pic -R rm: cannot remove `pic/60.jpg': Input/output error rm: cannot remove `pic/006.jpg': Input/output error rm: cannot remove `pic/008.jpg': Input/output error rm: cannot remove `pic/011.jpg': Input/output error $ ls -la pic ls: cannot access pic/60.jpg: Input/output input/output error nfs error -????????? ? ? ? ? ? 006.jpg -????????? ? ? ? ? ? 006.jpg -????????? ? ? ? ? ? 011.jpg I was wondering what the problem is? How can I recover or remove the directory pic and all of its content? My OS is Ubuntu 12.04, and the removable hard drive has ntfs filesystem. Other directories not containing or inside pic on the removable hard drive are working fine. Added: Last part of output of dmesg after I tried to list the content of the directory: [19000.712070] usb 1-1: new high-speed USB device number 2 using ehci_hcd [19000.853167] usb-storage 1-1:1.0: Quirks match for vid 05e3 pid 0702: 520 [19000.853195] scsi5 : usb-storage 1-1:1.0 [19001.856687] scsi 5:0:0:0: Direct-Access ST316002 1A 0811 PQ: 0 ANSI: 0 [19001.858821] sd 5:0:0:0: Attached scsi generic sg2 type 0 [19001.861733] sd 5:0:0:0: [sdb] 312581808 512-byte logical blocks: (160 GB/149 GiB) [19001.862969] sd 5:0:0:0: [sdb] Test WP failed, assume Write Enabled [19001.865223] sd 5:0:0:0: [sdb] Cache data unavailable [19001.865232] sd 5:0:0:0: [sdb] Assuming drive cache: write through [19001.867597] sd 5:0:0:0: [sdb] Test WP failed, assume Write Enabled [19001.869214] sd 5:0:0:0: [sdb] Cache data unavailable [19001.869218] sd 5:0:0:0: [sdb] Assuming drive cache: write through [19001.891946] sdb: sdb1 [19001.894713] sd 5:0:0:0: [sdb] Test WP failed, assume Write Enabled [19001.895950] sd 5:0:0:0: [sdb] Cache data unavailable [19001.895953] sd 5:0:0:0
LINUX HOWTO | 2 Replies More Bad Disk This article I am trying to explain how to deal with " Input/output error ls reading directory . input/output error ubuntu " when you initiate any commands in Linux. I have pointed some examples
Linux Input Output Error Deleting File
that reports similar error. # du -bash: /usr/bin/du: Input/output error #mkdir sampledir mkdir: cannot create directory `sampledir': Input/output error Input/output
Ls Reading Directory . Input/output Error Centos
error while running the command mostly due to two reason. Either it could be bad blocks on the disk or someone hacked your machine. In this situation first suggestion would be to http://unix.stackexchange.com/questions/39905/input-output-error-when-accessing-a-directory check /var/log/messages for any disk related alerts (might see some sense key alerts). tail -n 100 /var/log/messages tail -f /var/log/messages If you notice any disk issues , try any disk utility to confirm this. One option would be use smarttools. You can check smartool option to fix bad blocks. If you already installed it you can take the advantage of that. Next immediate action would be http://linoxide.com/how-tos/inputoutput-error-bad-blocks-how-to-restart-linux/ take backup of your system. Good if you already have it :-). If you have good backup its safe to reboot.If your system was hacked there are chances they might messed up your file and system would not work after reboot. You can also try fsck but it really dont fix most time if it bad block issue. Fsck can fix only if it related to any filesystem related issues. Usually fsck will fail in between as when it try to read the file at bad block. Now if try to reboot , it can also give the same output. You can try init 6. # reboot bash: /sbin/reboot: Input/output error # shutdown -r now bash: /sbin/shutdown: Input/output error If the above reboot commands doesnot work try either forced reboot or shutdown . Forced Reboot echo 1 > /proc/sys/kernel/sysrq echo b > /proc/sysrq-trigger Forced Shutdown echo 1 > /proc/sys/kernel/sysrq echo o > /proc/sysrq-trigger You might also likeHow To Fix / Repair Bad Blocks In LinuxLinux Hdparm Command: Display Hard Disk Model and Serial NumberFew Tips Check Hard Disk Error and Health using smartctl6 Examples To Get Linux Hardware Details / InformationError: modprobe: Can't locate module bloc
login Username: * Password: * Create new account Request new password Tickets per project All tickets French Republican Calendar and Decimal http://linux.overshoot.tv/ticket/64 Time API Linux distribution Linux hardware Linux server Linux software Programming Web site lftp Home » Linux software » Issues » ls: cannot access *** Input/output error ls: cannot access *** Input/output error Thu, 05/06/2010 - 05:44 - augustin Jump to:Most recent comment Project:Linux software Component:Documentation Category:bug report Priority:normal Assigned:Unassigned Status:active Related output error pages:#29: filesystem :-:-: #65: Troubleshooting a failing hard drive DescriptionI 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 Login or register to post comments Comments #1 augustin - 05/06/2010 directory . input/output - 05:44 Related pages:+29: filesystem wiki. Login or register to post comments #2 augustin - 05/06/2010 - 05:52 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 Login or register to post comments #3 augustin - 05/06/2010 - 05:54 try e2fsck http://www.mail-archive.com/cwelug@googlegroups.com/msg00823.html Login or register to post comments #4 augustin - 05/06/2010 - 05:55 Reboot with force fsck to check your filesystems shutdown -F -r now http://bbs.archlinux.org/viewtopic.php?pid=549952 Login or register to post comments #5 augustin - 05/06/2010 - 05:57 fdisk -l dd if=/dev/zero of=/dev/sdb http://www.linuxforums.org/forum/misc/122254-solved-cant-remove-files-us... Login or register to post comments #6 augustin - 05/06/2010 - 06:15 (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.