Linux Cannot Delete File Input/output Error
Contents |
Help » General » rm: cannot remove : Input/output error [SOLVED] « previous next » Print Pages: [1] Go Down Author Topic: rm: cannot remove : Input/output error [SOLVED] (Read 13633 times) Archie Global Moderator Super rm input/output error mac Villain Posts: 10967 Eureka! PCLinuxOS! rm: cannot remove : Input/output error [SOLVED] « on: rm cannot remove input/output error ntfs July 28, 2014, 08:45:22 AM » I was in the middle of transferring a directory with a whole bunch of files onto a centos rm cannot remove input/output error (NTFS) USB removable drive when the power went off. Tough luck for me, I didn't have the battery. When power resumed, I booted up, press Esc and noted that the journal was fixed. I plugged the USB cannot access input/output error removable and decided to resume the transfer. Since the files were of different sizes, I tried to copy the file, no go. Then I tried to delete the files that were copied, no go. I tried to delete the directory, no can do. I tried to do the same on a root terminal, nope that didn't happen.I read that the files/filesystem were most probably corrupted when the power went out, or disk hardware issues. Searches
Ls Input Output Error Linux
on the Internet advised to do a scandisk. Ubuntu suggested using Wndows Scandisk .... bleh. I have ntfs-3g installed on my system but...Code: [Select]root@pclinuxos ~ > fsck /dev/sdb1
fsck from util-linux 2.22.2
fsck: fsck.ntfs: not found
fsck: error 2 while executing fsck.ntfs for /dev/sdb1
root@pclinuxos ~ > So before I bring this drive over to my place of work and scandisk it, I read from this site that either ntfs-3g or ntfsprogs might do it. I already have ntfs-3g installed and it didn't work. I install ntfsprogs, which removed ntfs-3g and ntfs-config, and that didn't work either.Any suggestions? « Last Edit: July 28, 2014, 08:41:21 PM by Archie » Logged Since 2006 | LiCo 401868 i14 PCLinuxOS Tester Super Villain Posts: 23844 MLUs Forever! Re: rm: cannot remove : Input/output error « Reply #1 on: July 28, 2014, 08:51:15 AM » http://www.pclinuxos.com/forum/index.php/topic,127428.msg1069665.html#msg1069665 Logged "Posterity - a paultry form of eternity" L. CohenKernel: 4.8.1-pclos1 x86_64 (64 bit); Desktop: KDE 4.14.18; Mobo: ASUSTeK P8Z68-V PRO v: Rev 1.0.1; CPU: Quad core Intel Core i7-3770S (-MCP-) cache: 8 MB; Memory: 8 GB; CPU Speed max: 3900 MHz; Graphics Card: Intel Xeon E3-1200 v2/3rd; SONY DVD RW Archie Global Moderator Super Villain Posts: 10967 Eureka! PCLinuxOS! Re: rm: cannot remove : Input/output error « Reply #2 on: July 28, 2014, 09:00:15 AM » Thanks for th
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
Ls Cannot Access Input/output Error Redhat
drive which i cannot get rid ofit keeps giving me:rm: cannot access file_name cannot remove input/output error centos Input/Output errorwhenever i do ls -lart on it i get:-????????? ? ? ? ? ? file_namei tried fschk on cannot remove input output error ext4 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 http://www.pclinuxos.com/forum/index.php?topic=127513.0 2010-04-25 19:21:28 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 ? -????????? ? ? https://bbs.archlinux.org/viewtopic.php?id=95994 ? ? ? file_name 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
Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Software Can't delete file - "Input/output error" User Name Remember Me? Password Linux - Software This forum is for Software issues. Having a problem installing a http://www.linuxquestions.org/questions/linux-software-2/can't-delete-file-input-output-error-778833/ new program? Want to know which application is best for the job? Post your question in this forum. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community http://unix.stackexchange.com/questions/39905/input-output-error-when-accessing-a-directory you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members output error see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This cannot remove input guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 12-30-2009, 02:59 AM #1 tensigh Member Registered: Mar 2004 Location: Tokyo, Japan Distribution: Backtrack 5 R3 Posts: 141 Rep: Can't delete file - "Input/output error" Hey guys, My box crashed while I was copying files to a USB external drive and I had to POPO to get it to recover. When it did, one of the files reports all of its info (File size, date created, etc) with question marks. When I try to rm the file (using -f as well), I get "input/output" error. Anybody know how to remove this file? I'm stuck and tired.... tensigh View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by ten
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 Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users 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 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 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