Linux Partition Input/output Error
Contents |
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour 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 the company
Input/output Error Linux
Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags input/output error ubuntu Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only input/output error centos 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 How do you repair an “input/output error” in an NTFS
Ubuntu Input Output Error External Hard Drive
partition? up vote 26 down vote favorite 13 I replaced a buggy Windows Vista installation with Ubuntu. All works fine except that the main HD where I had all my files are now inaccessible. Here is the error message I get: Error mounting: mount exited with exit code 13: ntfs_attr_pread_i: ntfs_pread failed: Input/output error Failed to read NTFS $Bitmap: Input/output error NTFS is either inconsistent, or there is a hardware fault, or it's a SoftRAID/FakeRAID hardware.
Cannot Access Input/output Error
In the first case run chkdsk /f on Windows then reboot into Windows twice. The usage of the /f parameter is very important! If the device is a SoftRAID/FakeRAID then first activate it and mount a different device under the /dev/mapper/ directory, (e.g. /dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation for more details Is it necessarily a hardware problem? If not, is there a way to repair the HD from Ubuntu? windows ntfs share|improve this question edited May 15 at 19:06 muru 69.1k12125176 asked Oct 31 '11 at 15:13 Calixte 68461528 add a comment| 5 Answers 5 active oldest votes up vote 17 down vote accepted chkdsk /R is a pretty important command when things get hairy with NTFS. Unfortunately I don't know of a Linux tool that comes close to covering everything it does. In short, to run it, you're going to need some sort of Windows recovery disk. If you don't have one to hand, there's an ISO offered up in a thread on another set of support forums (see the first answer). There are tools like ntfsfix (part of the ntfsprogs package) that can do surface checks on NTFS disks but they don't tend to be able to fix the drives. share|improve this answer answered Oct 31 '11 at 15:24 Oli♦ 172k56435646 3 You could install VirtualBox and an XP on it. Prev
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 input output error ubuntu usb site About Us Learn more about Stack Overflow the company Business Learn more
How To Fix Input Output Error In Linux
about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix input/output error during read on /dev/sda & 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: http://askubuntu.com/questions/74105/how-do-you-repair-an-input-output-error-in-an-ntfs-partition 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 http://unix.stackexchange.com/questions/39905/input-output-error-when-accessing-a-directory 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
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 http://superuser.com/questions/354418/input-output-error-and-fsck developers or posting ads with us Super User Questions Tags Users 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 https://linuxexpresso.wordpress.com/2011/09/20/howto-fix-an-ntfs-partition-in-ubuntu/ it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Input/output error and fsck up vote 0 down vote favorite recently I couldn't mount my hard drive so I output error booted with a live cd and doing a fsck on that partition. it said Deleted inode 992193 has zero dtime. Fix i entered y and another one it showed me this prompt again and I entered ctrl-C now I'm able to mount that hard disk. but my problem: I can't access some files it says Input/output error If I do fsck again and answer all prompts like (Deleted inode 992193 has zero dtime. Fix) to yes my data will be input output error recovered?! my another data will be lost?! I'm not technical in hard disks so I can't read the manuals. it has some technical issues linux filesystems data-recovery share|improve this question asked Oct 29 '11 at 15:15 sinoohe migrated from stackoverflow.com Nov 6 '11 at 9:11 This question came from our site for professional and enthusiast programmers. add a comment| 2 Answers 2 active oldest votes up vote 4 down vote This is off-topic here, but you need to let the fsck finish, or your filesystem will remain corrupt and you will continue to have problems with it. Run fsck -y, let it complete, and then you should be ok (most of the time). share|improve this answer answered Oct 29 '11 at 16:30 Employed Russian 22612 add a comment| up vote 1 down vote Watch out with performing fsck on a failing drive. If it's an hardware issue, better first make an image of what is still readable with something like ddrescue (see that you get the GNU one, it's the better of the 2 ddrescues that are around). trying to fix the filesystem on a failing disk might wear it out, and limit the amount of data that you'll be able to recover. So first copy, and try fixing the FS on the copy. share|improve this answer answered Oct 29 '11 at 17:00 jpjacobs 22624 I made a backup by dd and do fsck -y after my back
only reason I wrote it is because it was something that happened to me now and again. But what about dual boots? What happens when your NTFS drive goes beserk, and you only have access to your Ubuntu install? Well, finally, I've come across a solution. Now, before we begin, this HowTo assumes that your Ubuntu install is working as normal, and that the NTFS partition isn't essential to Ubuntu. It's also possible (though I've not yet tried) to follow this HowTo using Parted Magic. First, we need to find out what partition we are dealing with. To do this, open a terminal and type; sudo fdisk -l That'll give you something like this; Disk /dev/sdb: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x2709a320 Device Boot Start End Blocks Id System /dev/sdb1 * 1 19457 156288321 7 HPFS/NTFS /dev/sd1 is in this case the NTFS drive we'll be working with. Obviously change this to whatever yours is. If your partition isn't listed here, or appears to be the wrong size, you'll need to use TestDisk. Next, you need to install some software called "ntfsprogs". You can do this through Synaptic or on the command line using; sudo apt-get install ntfsprogs There's just one last step. sudo ntfsfix /dev/sdb1 With any luck, you should see the following; Mounting volume... OK Processing of $MFT and $MFTMirr completed successfully. NTFS volume version is 3.1. NTFS partition /dev/sdb1 was processed successfully. And that's it! Go try to mount you NTFS partition, and it should work again as normal. If not, feel free to leave a comment below. Share this:TwitterFacebookGoogleLike this:Like Loading... Related Filed under: Debian, HowTo, Operating Systems, Ubuntu |17Comments Tags: Debian, fix, HowTo, NTFS, partition, postaweek2011, Ubuntu 17 Responses to "HOWTO: Fix an NTFS partition inUbuntu" Feed for this Entry 1 Ron Bell on October 16, 2011 said: I have followed your instructions faithfully in this article as well as the previous posting: HOWTO: Repair a broken Ext4 Superblock in Ubuntu No luck. The superblock numbers did not work. The Ubuntu 10.10 Disk Utility shows the MAXTOR partitition as Partition Type - Empty (0x00), Type - FAT