Ls Input Output Error Linux
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 the company ls reading directory . input/output error centos Business Learn more about hiring developers or posting ads with us Unix & Linux Questions input/output error ubuntu Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD ls reading directory . input/output error redhat 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 to the top “Input/output ls: reading directory .: input/output error ext4 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 error -????????? ? ? ?
Linux Input Output Error Deleting File
? ? 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: [sdb] Assuming drive cache: write through [19001.895958] sd 5:0:0:0: [sdb] Attached
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 the
Cannot Open Directory . Input/output Error
company Business Learn more about hiring developers or posting ads with us Stack Overflow input/output error nfs Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 input/output error mac million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up ls: reading directory .: Input/output error [closed] up vote 2 down vote favorite My system raised the I/O error http://unix.stackexchange.com/questions/39905/input-output-error-when-accessing-a-directory when I tried to use 'ls' on a mounted hard disk. I am using hadoop@hbase1:/hddata$ uname -a Linux hbase1 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 16:19:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux hadoop@hbase1:/hddata$ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/hbase2--vg-root 468028968 2715496 441532304 1% / udev 6081916 4 6081912 1% /dev tmpfs 2436652 336 2436316 1% /run none 5120 0 5120 0% /run/lock none 6091620 0 6091620 0% /run/shm /dev/sda1 1922727280 http://stackoverflow.com/questions/18819812/ls-reading-directory-input-output-error 867279740 957771940 48% /hddata /dev/sdb1 233191 27854 192896 13% /boot 10.18.103.101:/data/marketdata 1883265024 1644255232 143344640 92% /srv/data/marketdatah The last several lines of dmesg hadoop@hbase1:/hddata$ dmesg | tail [316263.280056] EXT4-fs (sda1): previous I/O error to superblock detected [316263.281326] sd 0:0:0:0: [sda] Unhandled error code [316263.281329] sd 0:0:0:0: [sda] [316263.281330] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK [316263.281332] sd 0:0:0:0: [sda] CDB: [316263.281334] Write(10): 2a 00 00 00 00 3f 00 00 08 00 [316263.281342] end_request: I/O error, dev sda, sector 63 [316263.282584] Buffer I/O error on device sda1, logical block 0 [316263.283799] lost page write due to I/O error on sda1 [316263.283842] EXT4-fs error (device sda1): ext4_find_entry:1270: inode #2: comm bash: reading directory lblock 0 linux filesystems share|improve this question edited Apr 4 '14 at 18:54 Tshepang 4,6991059103 asked Sep 16 '13 at 2:56 Vimos 1021211 closed as off-topic by Duck, wudzik, Yu Hao, JB., Kjuly Sep 16 '13 at 9:37 This question appears to be off-topic. The users who voted to close gave this specific reason:"Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User." – Duck, wudzik, Yu Hao, JB., KjulyIf this question can be reworded to fit the rules in the help center, please edit the question. add a
login Username: * Password: * Create new account Request new password Tickets per project All tickets French Republican Calendar and Decimal Time API Linux distribution http://linux.overshoot.tv/ticket/64 Linux hardware Linux server Linux software Programming Web site lftp Home http://www.centos.org/forums/viewtopic.php?t=49718 » 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 pages:#29: filesystem :-:-: #65: Troubleshooting a failing hard output error 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 - 05:44 Related pages:+29: filesystem wiki. Login or register to post reading directory . 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.com/Mailing-Lists/SuSE/2009-11/msg02355.html Login or register to post comments #7 augustin - 05/06/2010 - 06:17 with USB unless you have gone out of your way t
/ Output Error with USB Drive Issues related to hardware problems Post Reply Print view Search Advanced search 7 posts • Page 1 of 1 crock Posts: 6 Joined: 2014/07/22 13:41:40 [SOLVED] Input / Output Error with USB Drive Quote Postby crock » 2014/11/20 12:58:33 500GB Seagate USB Hard Drive - attempting to mount it on my Centos 6.6 box. I want to be very clear - this drive works 100% flawlessly on other machines (both windows and other linux flavors)During mount attempts, I'm getting Input/Output Errors. I have no idea what I'm doing wrong here.I've got the following packages installed directly from EPEL:Code: Select all(1/2): ntfs-3g-2014.2.15-6.el6.x86_64.rpm | 258 kB 00:00
(2/2): ntfsprogs-2014.2.15-6.el6.x86_64.rpm | 235 kB 00:00
I can use the following command to mount it (and it mounts successfully):Code: Select all$ sudo ntfs-3g /dev/sdd1 /mnt/usbI just cannot read or write anything to it.Code: Select all$ ls /mnt/usb
ls: reading directory .: Input/output errorI however *CAN* write to it on my Fedora20 and Windows7 boxes. Can anyone give me an idea as to what I'm doing wrong? The Fedora20 box has the same RPMs installed.I have the Seagate Diagnostic tools installed on my Windows7 box and it passes every single diagnostic test.I have even zero'd the thing out, reformatted NTFS and still no luck. Any help is appreciated! Last edited by crock on 2014/11/21 12:16:09, edited 1 time in total. Top aks Posts: 1995 Joined: 2014/09/20 11:22:14 Re: Input / Output Error with USB Drive Quote Postby aks » 2014/11/20 17:11:40 I had this one recently. I had previously installed the ntfs fuse driver via rpmforge (naughty me) and I ended up having to remove it, disable rpmforge and install all the nfs stuff from elrepo - then it worked fine. I think the rpmforge fuse driver was "marked" as a later version than the EPEL one, so yum installed that everytime until I disabled rpmforge. Exact same symptoms (I/O error).But if you're 100% sure you got it from EPEL, then tha's a different story. Top TrevorH Forum Moderator Posts: 16880 Joined: 2009/09/24 10:40:56 Location: Brighton, UK Re: Input / Output Error with USB Drive Quote Postby TrevorH » 2014/11/20 17:15:58 Try the copy from epel-testing instead - this is a known bug in the current one. Run yum --enablerepo=epel-testing --noplugins update \*ntfs\* CentOS 5 dies in March 2017 - migrate s