Linux Rm Cannot Lstat 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 the company rm cannot remove input output error linux Business Learn more about hiring developers or posting ads with us Unix & Linux Questions ls input output error linux Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD
Rm Input/output Error Mac
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
Cannot Access Input/output Error
“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 error -????????? ? ? input/output error ubuntu ? ? ? 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:
Start 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 Ubuntu
the company Business Learn more about hiring developers or posting ads with us Server Fault cannot open directory . input/output error Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join input/output error centos 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 rm: cannot lstat `cd1/Linux/nic/UBUNTU11_64/âââ\033\nwâ.αÃo': Input/output error http://unix.stackexchange.com/questions/39905/input-output-error-when-accessing-a-directory up vote 0 down vote favorite am trying to delete folder in My rhel machine , but is giving error like rm: cannot lstat `cd1/Linux/nic/UBUNTU11_64/âââ\033\nwâ·.αÃo': Input/output error folder permissions are rwx to all thanks mahesh linux redhat rhel6 share|improve this question asked Jun 18 '13 at 11:01 user1812956 3517 1 That's...an interesting file path. Have you run fsck recently? Seems like a corrupted file. –Nathan C Jun 18 '13 at 11:08 http://serverfault.com/questions/516594/rm-cannot-lstat-cd1-linux-nic-ubuntu11-64-%C3%A2%C3%A2%C3%83%C2%A2-033-nw%C3%A2-%C3%8E%C2%B1%C3%83o-input-output-er i didt use fsck command but in that directory displaying all junk and corrupted files –user1812956 Jun 18 '13 at 11:42 What does SMART say? Do you have any bad sectors? –Cristian Ciupitu Jun 18 '13 at 14:05 add a comment| 2 Answers 2 active oldest votes up vote 0 down vote It looks like you have a corrupted folder and subfolders. I highly recommend running fsck on the drive and seeing if that either renames the files to something that you can delete or removes the entries entirely. share|improve this answer answered Jun 18 '13 at 11:44 Nathan C 12.3k22854 add a comment| up vote 0 down vote If the filesystem is verified from fsck, you can use the "-i" flag on rm. $cd /path/to/directory/ $ rm -i * rm: cannot remove directory File-Path-2.08 rm: remove File-Path-2.08.tar? n rm: remove Makefile? y
HDD) Pages: 1 #1 2010-04-25 18:21:29 murfMan Member Registered: 2009-10-27 Posts: 161 [SOLVED] rm: cannot remove file Input/Output error (NTFS HDD) Im having a weird issue regarding my external (ntfs) hdd.there is one file on the drive https://bbs.archlinux.org/viewtopic.php?id=95994 which i cannot get rid ofit keeps giving me:rm: cannot access file_name Input/Output errorwhenever i do ls -lart on it i get:-????????? ? ? ? ? ? file_namei tried fschk on the drive and got: sudo fsck /dev/disk/by-label/New\x20Volume Password: fsck from util-linux-ng 2.17.2 fsck: fsck.ntfs: not found fsck: Error 2 while executing fsck.ntfs for /dev/sdc2any suggestions?thanks Last edited by murfMan (2010-04-25 20:11:16) Offline #2 2010-04-25 19:21:28 output error skottish Forum Fellow From: Here Registered: 2006-06-16 Posts: 7,932 Re: [SOLVED] rm: cannot remove file Input/Output error (NTFS HDD) For the first part, look into rm by inode number. Offline #3 2010-04-25 19:51:45 murfMan Member Registered: 2009-10-27 Posts: 161 Re: [SOLVED] rm: cannot remove file Input/Output error (NTFS HDD) ls -li ls: cannot access file_name: Input/output error total 0 ? -????????? ? ? ? ? ? file_name input output error Offline #4 2010-04-25 20:10:41 murfMan Member Registered: 2009-10-27 Posts: 161 Re: [SOLVED] rm: cannot remove file Input/Output error (NTFS HDD) i ended up just plugging it into a windows machine and scanning the file-system for errors. I was then able to remove the file. i don't think fsck works with ntfs drives. Offline #5 2010-04-25 20:57:49 Knute Member From: Minot, ND Registered: 2009-03-17 Posts: 604 Re: [SOLVED] rm: cannot remove file Input/Output error (NTFS HDD) You would need the ntfs apps on your system; such as: ntfs-3g or ntfsprogs My guess is that you didn't have that on your machine; a supposition that is supported by fsck.ntfs not being found. Knute Offline Pages: 1 Index »Applications & Desktop Environments »[SOLVED] rm: cannot remove file Input/Output error (NTFS HDD) Board footer Jump to Newbie Corner Installation Kernel & Hardware Applications & Desktop Environments Laptop Issues Networking, Server, and Protection Multimedia and Games System Administration Other Architectures Announcements, Package & Security Advisories Arch Discussion Forum & Wiki discussion Pacman & Package Upgrade Issues [testing] Repo Forum Creating & Modifying Packages AUR Issues, Discussion & PKGBUILD Requests GNU/Linux Discussion Community Contributions Programming & Scripting Other Languages Artwork and Screenshots At