Sunday, June 14, 2009

Force mounting NTFS drives in Linux

Sometimes when you try to mount a NTFS drive under Linux it fails because the drive hasn't been "unmounted" under windows correctly. Well to force it to mount you can use the following command:

Sudo mount -t NTFS-3g /dev/sda1 /media/Windows -o force

Where /dev/sda1 is the HDD and /media/Windows is the label of the partition (or HDD) that you want to mount.