Bitcoin donations are welcome:14snQXeLcnJtWUduKZ6rC2MHdPYrYar1Tw

Wednesday, May 20, 2009

Error mounting NTFS in Linux

I have recently bought a Western Digital (WD) Mirror Edition 2TB, which I run in raid in order to offer me a really good backup solution for all my pictures and hd-videos from my SLR and important documents. The system is delivered with a NTFS system, which I knew obviously might cause some problems with Linux. As predicted, it happened today. I was just going to do a routine dismout (umount) and connect it to another computer when I ran into problems trying to unmount it. So I did a "umount -l" on the drive, which I apparently never should have.

Later when trying to mount the drive again in Linux (Windows always handles this stuff perfect), I got the following errors:

[root@nomore /]# mount -t ntfs-3g /dev/sdb1 /mnt/ntfs
ntfs_attr_pread_i: ntfs_pread failed: Input/output error
Failed to read of MFT, mft=10 count=1 br=-1: Input/output error
Failed to read vcn 0x4: Input/output error
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.


So as instructed I connected the drive up to my computer running Microsoft Windows thinking the chkdsk /f command would fix it, but without luck. Tried dismounting properly aswell but it still refused to work.

But I found a solution. Go into "My Computer" while the drive is connected, right click on the drive, select "Properties" head to the "Tools" tab and under Error-checking click "Check now". Remember to tick both the options you get, and let it finish. This might take some time. For my 1TB USB drive it took a couple of hours. When finished, dismount the drive properly in Windows. I don't know if it matters, but just to be sure I dismounted it both with the WD tools and the windows plug&play manager.

I also rebooted my laptop running Linux, before I tired reconnecting. This time it worked perfectly again :) Thank god!

No comments:

Post a Comment