Bin/cp Cannot Stat 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 input output error while copying linux Overflow the company Business Learn more about hiring developers or posting ads with us Unix
Input/output Error Centos
& Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for
Ls Input Output Error Linux
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
Input/output Error Ubuntu
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: ls cannot access input output error 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
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 rm cannot remove input output error linux the company Business Learn more about hiring developers or posting ads with us Super mkdir cannot create directory input output error User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power ls reading directory . input/output error ubuntu 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': http://unix.stackexchange.com/questions/39905/input-output-error-when-accessing-a-directory Input/output error WHY? up vote 2 down 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 http://superuser.com/questions/110576/cp-reading-filename-input-output-error-why/110577 at 20:00 This question came from our site for professional 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 t
Search Tutorials/Articles Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - General Cannot stat Input/Output error User Name Remember Me? Password Linux - General This Linux forum is for general http://www.linuxquestions.org/questions/linux-general-1/cannot-stat-input-output-error-474166/ Linux questions and discussion. If it is Linux Related and doesn't seem to fit in any other forum then this is the place. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing https://answers.launchpad.net/ubuntu/+question/147311 LQ as a guest. By joining our community 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 output error absolutely free. Join our community today! Note that registered members 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 input output error to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This 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 08-15-2006, 03:55 PM #1 cygnus-x1 Member Registered: Jul 2006 Location: Crisfield Distribution: Slackware, CentOS, RedHat Posts: 159 Rep: Cannot stat Input/Output error I am trying to tar a directory structure and there are 2 files (or something) in the directory that make tar stop and puke. When you do an ls -l the line reads like this: ?--------- ? ? ? ? ? iwssd.shmid ?--------- ? ? ? ? ? iwssd.pshmid If you try to ls -l the file (or tar it) I get "Cannot stat Input/Output error".
used to work just fine. $ sudo dmesg -c $ cd Desktop/ ~/Desktop$ ls -al twentyten/ total 208 drwxrwxrwx 4 unixrealm unixrealm 4096 2010-09-22 12:26 . drwxr-xr-x 8 unixrealm unixrealm 4096 2011-02-28 17:45 .. -rwxrwxrwx 1 unixrealm unixrealm 841 2010-06-11 09:55 404.php -rwxrwxrwx 1 unixrealm unixrealm 1695 2010-06-11 09:55 archive.php -rwxrwxrwx 1 unixrealm unixrealm 4901 2010-07-13 18:17 attachment.php -rwxrwxrwx 1 unixrealm unixrealm 1950 2010-06-11 09:55 author.php -rwxrwxrwx 1 unixrealm unixrealm 928 2010-06-11 09:55 category.php -rwxrwxrwx 1 unixrealm unixrealm 2977 2010-06-05 07:55 comments.php -rwxrwxrwx 1 unixrealm unixrealm 3573 2010-07-12 12:39 editor-style.css -rwxrwxrwx 1 unixrealm unixrealm 710 2010-05-21 11:56 editor-style-rtl.css -rwxrwxrwx 1 unixrealm unixrealm 1392 2010-05-21 11:56 footer.php -rwxrwxrwx 1 unixrealm unixrealm 17956 2010-07-12 12:39 functions.php -rwxrwxrwx 1 unixrealm unixrealm 3547 2010-07-12 12:39 header.php drwxrwxrwx 3 unixrealm unixrealm 4096 2010-09-22 12:26 images -rwxrwxrwx 1 unixrealm unixrealm 884 2010-06-11 09:55 index.php drwxrwxrwx 2 unixrealm unixrealm 4096 2010-09-22 12:26 languages -rwxrwxrwx 1 unixrealm unixrealm 15129 2010-02-07 08:16 license.txt -rwxrwxrwx 1 unixrealm unixrealm 8248 2010-07-12 12:39 loop.php -rwxrwxrwx 1 unixrealm unixrealm 1074 2010-06-11 09:55 onecolumn-page.php -rwxrwxrwx 1 unixrealm unixrealm 1263 2010-07-12 20:00 page.php -rwxrwxrwx 1 unixrealm unixrealm 4348 2010-05-26 07:15 rtl.css -rwxrwxrwx 1 unixrealm unixrealm 34923 2010-06-10 18:55 screenshot.png -rwxrwxrwx 1 unixrealm unixrealm 1190 2010-06-11 09:55 search.php -rwxrwxrwx 1 unixrealm unixrealm 1742 2010-05-16 23:36 sidebar-footer.php -rwxrwxrwx 1 unixrealm unixrealm 1504 2010-05-16 23:36 sidebar.php -rwxrwxrwx 1 unixrealm unixrealm 2907 2010-06-11 09:55 single.php -rwxrwxrwx 1 unixrealm unixrealm 21887 2010-07-22 13:44 style.css -rwxrwxrwx 1 unixrealm unixrealm 703 2010-06-11 09:55 tag.php unixrealm@vulcan:~/Desktop$ cp -R twentyten /media/SonyBook/ cp: cannot create regular file `/media/SonyBook/twentyten/sidebar-footer.php': Input/output error cp: cannot create regular file `/media/SonyBook/twentyten/author.php': Input/output error cp: cannot create regular file `/media