3

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?

  • You have a dual boot system, Right? – Snake Eyes May 24 '15 at 13:04
  • Yes. Windows Vista and Ubuntu 14.04 – virilo May 24 '15 at 13:07
  • Maybe the SMART values of that drive give you an idea? You could also try to run testdisk on the image for data recovery in case you need them. – Takkat May 24 '15 at 14:08
  • Run testdisk and rewrite the partition table. – Gayan Weerakutti May 7 '17 at 10:35
1

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:

sudo -i
apt-get update
apt-get install testdisk

If Microsoft's Checkdisk failed to repair the MFT:

Run TestDisk ---- In the Advanced menu ---- Select your NTFS partition ---- Choose Boot ---- Then Repair 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

  • Thanks a lot! I tryed it, but the problem remains. I also tried with rebuild bs. Finally ended using a recovery tool for windows for my own code and docs – virilo May 27 '15 at 10:24
  • have the same issue. please tell which recovery tool did you use? – Philipp Munin Feb 25 '18 at 1:53

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.