My Ubuntu isn't able to mount a partition.
It suddenly became unreadable because of a corrupt Master File Table. chkdsk /f
is unable to correct it, saying:
Windows will now check the disk.
Corrupt master file table.
Windows will attempt to recover master file table from disk.
Windows cannot recover master file table. CHKDSK aborted
I tried with ntfsfix
without success:
ntfsfix /dev/sda5
Mounting volume... ntfs_mapping_pairs_decompress() failed: Input/output error
Failed to load $MFT: Input/output error
FAILED
Attempting to correct errors... ntfs_mapping_pairs_decompress() failed: Input/output error
Failed to load $MFT: Input/output error
FAILED
Failed to startup volume: Input/output error
Checking for self-located MFT segment... OK
ntfs_mapping_pairs_decompress() failed: Input/output error
Failed to load $MFT: Input/output error
Volume is corrupt. You should run chkdsk.
I tried the following instructions, but ntfsclone
said that there were an I/O error
ntfsclone -o /media/backup/partition.ntfs --rescue --ignore-fs-check --force /dev/sda5
ntfsclone v2013.1.13AR.1 (libntfs-3g) ntfs_mapping_pairs_decompress() failed: Input/output error Failed to load $MFT: Input/output error ERROR(5): Opening '/dev/sda5' as NTFS failed: Input/output error
I did a successful clone with dd, so I'm not very sure if it is caused by an I/O error.
dd if=/dev/sda5 of=/media/backup/partition.dd bs=32M
After copying it, I tried again to use ntfsclone from the copied file. I had the same response, so I think that the disk is Ok (no I/O error), but the master file table is corrupted.
What should I do at this point?
Try Testdisk.
Testdisk can use the backup boot sector to fix a corrupted NTFS boot sector.
The primary boot sector is sector zero of the filesystem and the backup NTFS boot sector is located near the end of the filesystem.
Even if the boot sector is accidentally overwritten, the backup should be intact.
Testdisk checks the boot sector and the backup boot sector. If the boot sector and backup boot sector mismatch, you can restore the NTFS boot sector from its backup or; update the backup NTFS boot sector with the current boot sector.
To install it:
Open a terminal,
Press Ctrl+Alt+T
Run it:
If Microsoft's Checkdisk failed to repair the MFT:
Run TestDisk ---- In the
Advanced menu
---- Selectyour NTFS partition
----Choose Boot
---- ThenRepair MFT
.TestDisk will compare the MFT and MFT mirror. If the MFT is damaged, it will try to repair the MFT using the backup. If the MFT backup is damaged, it will use the main MFT.
Main Page
Source