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. 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?
ntfsfix
worked for me :Provided in the
ntfs-3g
package.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 thentfsprogs
package) that can do surface checks on NTFS disks but they don't tend to be able to fix the drives.NTFS is a closed source Microsoft file system, and you'll need Windows to repair it, by running
chkdsk /f
, as suggested. If the problem is hardware related, you'll have to replace the hdd.i have encountered a similar situation once,then i kept the harddisk on windows,then a popup appeared asking to check the disk for errors.
if didn't ask goto computer,right click on the drive and then click on properties,there would be a tab "tools"
select "check now"
this type of errors occur if you dont safely remove harddisks.
Background:
So I was facing, more or less, the same issue. Around 12 files on the NTFS partition of my HD were inaccessible nor could they be deleted. Got to know about them through backintime's error logs. Fired up my Window 7 on vmware, accessed that folder containing the files through shared folder and copied them to a new folder. But for some reason I was not able to delete those files (0 bytes) from Windows 7 either. No surprise there, the OS did not have low-level access to those files.
ntfsfix
did not fix it, said nothing was wrong, andfsck
said all's cool with the the device. I could notchkdsk /R
because the files were shared through network drive. And I didn't have Window 7 installed on my physical machine.Solution (steps for vmplayer, but could easily be followed for virtualbox):
For me Windows 7 detected the new partition and did a checkdisk on boot. It had a lot of (Index) cleaning to do. The buggy files were gone. And the problem solved.
I got this after newly fomratting an SD card as ntfs, all I had to do what umount it first.
then mount worked again