Error Writing To File Input Output Error Linux
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: [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 [
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 http://unix.stackexchange.com/questions/39905/input-output-error-when-accessing-a-directory tar: /dev/nst0: Cannot write: Input/output error when taking backup up vote 2 down vote favorite When I try to take backup of data more than 1MB in a tape (LTO3) using tar command it showing me the following error. xyz@localhost# tar -cvf /dev/nst0 file1.tar file1.tar tar: /dev/nst0: Cannot write: Input/output error tar: Error is not recoverable: exiting now Output of mt -f /dev/st0 status: SCSI 2 tape drive: File number=0, block number=0, partition=0. Tape block http://unix.stackexchange.com/questions/126497/tar-dev-nst0-cannot-write-input-output-error-when-taking-backup size 0 bytes. Density code 0x44 (LTO-3). Soft error count since last status=0 General status bits on (41010000): BOT ONLINE IM_REP_EN Output of dmesg: st0: Sense Key : Aborted Command [current] st0: Add. Sense: Information unit iuCRC error detected and st0: <
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 http://superuser.com/questions/110576/cp-reading-filename-input-output-error-why/110577 Learn more about hiring developers or posting ads with us Super User Questions Tags Users http://www.linuxforums.org/forum/slackware-linux/120350-cp-writing-filename-input-output-error.html Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. 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 cp: reading `filename': Input/output error WHY? up vote 2 down error writing vote favorite I wish to know what could be the possible cases for this error: cp: reading `filename': Input/output error I am getting this message when I am trying to copy a big file of around 50MB. linux command-line file-management cp share|improve this question edited Feb 19 '10 at 1:59 quack quixote 31.3k1068114 asked Feb 18 '10 at 12:38 Arpit migrated from stackoverflow.com Feb 18 '10 at 20:00 This question came from our site for professional error writing to and enthusiast programmers. This recent bug report started out with a similar error. It has been fixed in the meantime and removed the problem for me. Good luck to you. –JJD Sep 5 '12 at 22:52 add a comment| 3 Answers 3 active oldest votes up vote 4 down vote The most likely problem is a faulty disk, unless the disk is mounted over a network, in that case, I believe network issues could also cause that. It is likely that the size impact is statistical, especially in the network case (i.e. the chance of failure increases with size because more operations are involved and each has a chance to fail). share|improve this answer answered Feb 18 '10 at 13:22 Ofir 1,3261714 I have had this for days! It definitely is a faulty disk. This error usually goes hand-in-hand with the Bad Sector error. You don't have to replace your disk. Just do a full backup, reinstall your OS (this will ostracize bad sectors), restore from backup. You're golden. –Yasky Apr 13 '13 at 17:15 add a comment| up vote 3 down vote The only time I have ever seen cp giving this error was when an iso image was mounted twice, eg: /dev/sr0 mounted on /mnt AND /dev/loop0 mounted on /mnt too. In this scenario, I think cp gets some
Today's Posts Advanced Search Find the answer to your Linux question: Entire Site Articles Downloads Forums Linux Hosting Forum Your Distro Slackware Linux cp: writing 'filename': Input/output error If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. ** If you are logged in, most ads will not be displayed. ** Linuxforums now supports the Tapatalk app for your mobile device. Results 1 to 8 of 8 Thread: cp: writing 'filename': Input/output error Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Enjoy an ad free experience by logging in. Not a member yet? Register. 04-26-2008 #1 jspring View Profile View Forum Posts Private Message View Articles Just Joined! Join Date Aug 2006 Posts 7 cp: writing 'filename': Input/output error I am able to partially copy a large file to a mounted USB drive, but the copy terminates with the error message: cp: writing 'filename': Input/output error I previously successfully formatted the drive with the command: root@myname# mkdosfs -F 32 /dev/sda1 Running mount gives: root@myname# mount /dev/hda1 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) usbfs on /proc/bus/usb type usbfs (rw) /dev/sda1 on /home/jspring/mount type vfat (rw,noexec,nosuid,nodev) Running df gives: root@myname# df mount/ Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 58576464 198784 58377680 1% /home/jspring/mount It appears to me that the drive is formatted correctly and mounted with rw privileges. Another drive (Iomega) gave similar problems, so I think it's either the Linux configuration or operator error. Any ideas? Thanks very much! Reply With Quote 04-26-2008 #2 Freston View Profile View Forum Posts Private Message View Articles Linux Engineer Join Date Mar 2007 Location The Netherlands Posts 1,049 How big is the file?? Because FAT32 has a 4GB limit to file size. Can't tell an OS by it's GUI Reply With Quote 04-26-2008 #3 jspring View Profile View Forum Posts Private Message View Articles Just Joined! Join Date Aug 2006 Posts 7 Reply to thread 'cp: writing 'filename': Input/output error' Oh, it's not that big. 500 MB. But the ide