Unable to mount NTFS external hard drive

185,427

Solution 1

Install ntfs-3g with sudo apt-get install ntfs-3g. Then run the ntfsfix command on your NTFS partition.

ntfsfix v2.0.0 (libntfs 10:0:0)

Usage: ntfsfix [options] device

Attempt to fix an NTFS partition.

-h, --help             Display this help
-V, --version          Display version information

For example: ntfsfix /dev/hda6

Developers' email address: [email protected] Linux NTFS homepage: http://www.linux-ntfs.org

Note: Whenever you're dealing with partition, make sure that you have a complete backup just to be on the safe side.


sudo apt-get install testdisk

Then run it:

sudo testdisk

and follow the instructions. You must search for partitions and then write the changes.

Thanks to answerers here:

Solution 2

This was good enough for me:

sudo ntfsfix /dev/sdb1

On Ubuntu 14.04 this comes with:

sudo apt-get install ntfs-3g

Older versions of Ubuntu (e.g. 12.04) would require:

sudo apt-get install ntfsprogs

Solution 3

This looks like an old question, but I ran into this issue in ubuntu 15.10. I mounted the hard drive in windows and simply removed the ._.Trashes directory on the drive that happened to contain a lot of data. Then I plugged it back into linux and it worked fine.

Solution 4

Just in case this happens to anyone else and they don't hit dr Hannibal Lecter's comment, I just had to try a different USB port. There's nothing wrong with that USB port, but for some reason, it wouldn't work with this drive.

Share:
185,427

Related videos on Youtube

user307687
Author by

user307687

Updated on September 18, 2022

Comments

  • user307687
    user307687 almost 2 years

    I am having trouble mounting my external hard drive, every time I try and do so I get the following message:

    "Error mounting /dev/sdb1 at /media/fuzzy27/My Book: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdb1" "/media/fuzzy27/My Book"' exited with non-zero exit status 13: $MFTMirr does not match $MFT (record 0).
    Failed to mount '/dev/sdb1': 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."
    

    How do I go about or what do I need to do in order to fix this error/problem without losing any of the data on my hard drive?

    Is there no other way of fixing it without having to reinstall windows or finding someone using windows?

    • Rinzwind
      Rinzwind almost 10 years
      see the message: "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." Windows problems you fix with windows tools.
    • Chinmaya B
      Chinmaya B almost 10 years
      yeah I think you have to shut down restart windows and then come to ubuntu to access it. Is the drive encrypted or something?
    • user68186
      user68186 almost 10 years
      As the message says: "run chkdsk /f on Windows then reboot into Windows twice." This means you have to boot Windows or take the drive to a friend who has a computer running Windows. Then use the Windows Command Line and enter the command "chkdsk /f X: where X is the external drive. Then as the message says, reboot into Windows twice.
    • AzkerM
      AzkerM almost 10 years
      I couldn't agree more. You need to run chkdsk /f on a windows environment or use HirensBootCD booted into a USB. I've been through the same and it helped me to fix.
    • Mukesh Chapagain
      Mukesh Chapagain about 9 years
    • mic
      mic about 7 years
      For other users, you might have to turn off fastboot: sudopacman.wordpress.com/2015/01/09/…
  • Cbhihe
    Cbhihe over 8 years
    Getting rid of the middle section of yr answer is recommended. As you remarked ntfsprogs is long gone. The remainder of yr answer stands.
  • MycrofD
    MycrofD about 8 years
    actually i have tried that with windows. what now happens is, it mounts in windows but data transfer is really slow (0 to 70 to 200 kbps). As for ubuntu, it does not mount at all. the same problem. so i now ran this ntfsfix. it made all corrections. after "ntfs partition /dev/sdb1 was processed successfully" it is now mounting. :). but the problem is speed. still 200 kbps
  • Sridhar Sarnobat
    Sridhar Sarnobat about 8 years
    Sounds like physical damage. If I were you I'd buy a drive duplicator to do a low level copy of all bits, and throw that drive away before it causes you to lose more precious data. amazon.com/gp/aw/d/B003WV5DLA?pc_redir=T1
  • Er. Mohit Agrawal
    Er. Mohit Agrawal about 8 years
    @sridhar Thannks it worked
  • dan_linder
    dan_linder over 7 years
    FYI, if you've used ddrescue to pull an image off of a dying harddrive you can use ntfsfix on the image to address NTFS issues too. Just point ntfsfix at the image file (ntfsfix dyinghdd.image) instead of the actual device in /dev/.
  • pranay
    pranay about 7 years
    Hello from 2017! Mine is even weirder: I just plugged my disk into a different USB port..? No idea why the error occurred.
  • c24b
    c24b about 7 years
    This worked as a charm nevertheless I have to do the same command at EACH reboot of my system...
  • zondo
    zondo about 7 years
    The point here is that the hard drive is not being mounted correctly. How then can a backup be performed?
  • Sridhar Sarnobat
    Sridhar Sarnobat almost 7 years
    @c24b maybe your shutdown process is always interrupting something writing to the disk (no easy solution to this), or maybe ubuntu is just being stupid (I've seen that before but don't have an idea how to solve it)
  • Yair Daon
    Yair Daon over 6 years
    First line of this answer was sufficient in my case.
  • Nidheesh
    Nidheesh over 6 years
    sudo ntfsfix /dev/sdc1 fixed my issue and was able to mount the external Hard Disk.
  • Tejaskumar Tank
    Tejaskumar Tank over 6 years
    WORKED PERFECTLY :)
  • Alex. S.
    Alex. S. over 5 years
    The volume now mounts correctly. Thank you! (in my case the external drive was /dev/sda1, so people remember to run a lsblk to confirm which is the right device. I guess for most folks running laptops with nvme interfaces since the last 3 years or so it must be the case).
  • JosephK
    JosephK over 4 years
    For Centos7, install the ntfsprogs package to get ntfsfix (not included with the ntfs-3g package)
  • creative
    creative over 3 years
    You made my day. Thanks.
  • Spandyie
    Spandyie over 3 years
    This worked like charm for me
  • Momchill
    Momchill over 2 years
    Legendary status! Worked on ubuntu 20.