[Linux] Accessing NTFS in write mode
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 driver does not support write NTFS (eg Knoppix <5.1)
You can then use Captive-NTFS.
Captive-NTFS
Principle
It is possible to have a real write access using Captive-NTFS.
Link: http://www.jankratochvil.net/project/captive/
This module emulates part of the Windows kernel to run the NTFS file system in Linux.
Implementation
Here's how (eg Knoppix 3.4):
(These operations are performed as root).
- Get the file ntfs.sys and ntoskrnl.exe fromWindows XP
(Do not take those for Windows 2000: It is imperative to those of Windows XP, 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)
Note
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.