Linux - Accessing NTFS in write mode

December 2016




The various versions of Linux come with different NTFS drivers.
  • Some can write in NTFS, while others can't (even when they appear RW!)
  • If your NTFS drive does not support write NTFS (eg Knoppix <5.1)
  • You can then use Captive-NTFS.



Captive-NTFS

Principle


Implementation


(under Knoppix 3.4 -These operations are performed as root).
  • Get the ntfs.sys and ntoskrnl.exe files from Windows XP
  • (Do not take those from Windows 2000: It is imperative to make use Windows XP files, even to access NTFS partitions of Windows 2000.)
  • Copy these two files in / tmp
  • In the command line:

captive-install-acquire --text --scan-path=/tmp  

captive-install-fstab --add  



Make a " cat /etc/fstab " to ensure that captive is displayed.
  • To mount your partition, for example (any one):

mount /mnt/hda5   
mount -t captive-ntfs /dev/hda5 /mnt/hda5


Try creating a directory, it should be ok

Disclaimer


Beware, the driver does not sync very often.
(Type sync in command line if you want to force writing)

NTFS-3G

  • It's a slow procedure (about 90 kb / second on a Pentium III 500 MHz).
  • This is due to the Windows emulation layer.
  • If your driver supports NTFS writing NTFS (eg Knoppix 5.1.1)


You can use NTFS-3G.
  • NTFS-3G : http://www.ntfs-3g.org/
  • The NTFS-3G module is capable of direct access to NTFS partitions (write access).
  • On Debian distributions (Ubuntu, etc..) Is the package ntfs-3g
  • Under Knoppix, right-click on your hard> "Change the way of reading / writing" you can write directly on the disc.
  • You can also use the command: mount -o remount,rw /mnt/hda1 to set your disk to read-write mode .
  • Remember to shutdown your system to make sure everything is written to disk.

Related :

This document entitled « Linux - Accessing NTFS in write mode » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.