How to Fix NTFS Mount Errors and File System Corruption on Linux

gene_x 0 like s 29 view s

Tags: workstation

jhuang@WS-2290C:/dev$ sudo mount /dev/sdg1 /media/jhuang/Elements $MFTMirr does not match $MFT (record 3). Failed to mount '/dev/sdg1': 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.

The error indicates an issue with the NTFS file system on /dev/sdg1. Specifically, it points to a corruption in the $MFT (Master File Table) or a potential hardware issue. This is a common problem when NTFS file systems are not properly shut down or there are issues during file system operations. Solutions to try:

  1. Run chkdsk on Windows

    Since the error specifically mentions running chkdsk /f on Windows, you can try the following:

    • Unmount the drive if it's currently mounted:

      sudo umount /dev/sdg1
      
    • Use a Windows machine (or dual-boot with Windows) to check the NTFS file system.

    • Once you connect the drive to a Windows machine, open a Command Prompt as Administrator and run:

      chkdsk /f X:
      

      Replace X: with the actual drive letter corresponding to your NTFS partition.

    • After chkdsk finishes, restart Windows twice as suggested in the error message to ensure the system fully clears any issues.

    • Reconnect the drive to your Linux machine and try mounting it again:

      sudo mount /dev/sdg1 /media/jhuang/Elements
      
  2. Check for Hardware Issues

    If chkdsk does not resolve the issue, there could be a problem with the hardware itself:

    • Try a different USB port (if it's a USB drive) or different computer to rule out issues with your current setup.
    • If the drive shows signs of failure (slow access, clicking sounds, etc.), it could be a hardware issue.
  3. Use ntfsfix on Linux

    If you do not have access to a Windows machine, you can try using ntfsfix, which is a tool available on Linux that can sometimes resolve minor NTFS inconsistencies. It's not as powerful as chkdsk but might help in some cases.

    • Install ntfs-3g (if not already installed):

      sudo apt-get install ntfs-3g
      
    • Run ntfsfix:

      sudo ntfsfix /dev/sdg1
      
    • Try mounting the partition again:

      sudo mount /dev/sdg1 /media/jhuang/Elements
      
  4. Check for RAID/FakeRAID Configuration

    If you are using RAID or FakeRAID (software RAID) on the device, this can cause issues with mounting the NTFS partition. The error message mentions the possibility of a FakeRAID, so you may need to use dmraid or ensure that the RAID is properly set up.

    • Check RAID status:

      sudo dmraid -s
      
    • If a RAID setup is detected, you might need to activate the RAID configuration and mount the device using /dev/mapper/, not directly via /dev/sdg1.

    • If you are unsure, refer to the documentation of your RAID setup for how to correctly mount the device.

  5. Backup Data (if possible)

    If the partition is still inaccessible after these steps, you may want to try data recovery tools like TestDisk or PhotoRec (both of which can handle NTFS partitions) to recover any important files before you attempt to format the drive.

  6. Summary:

    • Run chkdsk /f on Windows to repair the NTFS file system.
    • If the drive has hardware issues, consider using a different port or machine.
    • Try using ntfsfix on Linux as a last resort.
    • If using RAID, verify and manage the RAID setup.

like unlike

点赞本文的读者

还没有人对此文章表态


本文有评论

没有评论

看文章,发评论,不要沉默


© 2023 XGenes.com Impressum