Linux - Accessing NTFS in write mode

July 2017




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


Published by deri58. Latest update on April 12, 2011 at 01:34 PM by deri58.
This document, titled "Linux - Accessing NTFS in write mode," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).