I made an image of my NTFS partition before I formatted, but now it won't mount. I'm pretty sure I've mounted this image before.
root@z:/var/backup# mkdir Storage-disk
root@z:/var/backup# mount Storage-disk.img Storage-disk
ntfs_attr_pread_i: ntfs_pread failed: Input/output error
Failed to read vcn 0x2: Input/output error
Failed to mount '/var/backup/Storage-disk.img': 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.
I've tried running ntfsfix on the image, but no dice.
root@z:/var/backup# ntfsfix Storage-disk.img
Mounting volume... pread: Input/output error
Failed to calculate number of free MFTs: Input/output error.
FAILED
Attempting to correct errors...
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
pread: Input/output error
Failed to calculate number of free MFTs: Input/output error.
Remount failed: Input/output error.
Needless to say, I really want this backup to work :-( Please help!
Update: ntfsmount
says this:
root@z:/var/backup# ntfsmount Storage-disk.img Storage-disk
pread: Input/output error
Failed to calculate number of free MFTs: Input/output error.
Failed to mount '/var/backup/Storage-disk.img': Input/output error.
NTFS is inconsistent. Run chkdsk /f on Windows then reboot it TWICE!
The usage of the /f parameter is very IMPORTANT! No modification was
made to NTFS by this software.
Mount failed.
How do I run chkdsk /f
on an image? Do I have to create a partition and write the image on it? How do I do that?
Have you tried running a scandisk in windows? That's how I've always fixed faulty partitions.
This could also be due to an error in the filesystem containing the image (basically the device on which
storage-disk.img
is stored). Did you try checking that device with fsck ?If that is successful, the following are the options :