Re: How to write on a NTFS partition

szcs_at_abuse.co.uk
Date: 02/13/05


Date: 13 Feb 2005 01:24:46 -0800

The one year old message quoted below is from Rick Moen who is very
knowledgable about NTFS suppport on Linux:

This is no longer the case, even though it's long been accepted wisdom,
and is something you will routinely hear.

As many people know, there have been two Linux kernelspace drivers for
NTFS, which I'll refer to as old and new. The old driver (_not_
written
by the current Linux-NTFS team) rather naively failed to check the NTFS
version string, in the apparent belief that Microsoft would never
change
the format. Worse, the original authors stopped maintaining that code
some time before Microsoft, indeed, changed NTFS's internal structures,
post-NT4 -- twice, once for Win2k, and then again for XP/Win2003.

The results were predictable: People used the old, recklessly
incautious driver on post-NT4-created NTFS filesystems, resulting in
corruption. This situation persisted for several years (because the
old driver was no longer being maintained), during which many people
including me got the idea firmly fixed in our heads that "the Linux
NTFS
driver's write mode is dangerous". Which was never quite accurate.

Also, further things have changed: The new Linux-NTFS team have
retrofitted safeguards into the old driver, so that it now refuses
all attempts to coax it to write to post-NT4-format filesystems.

The _new_ driver is a from-scratch reimplementation to get away from
those and other problems. (For example, the new driver is SMP-safe;
the old one never was.) Initially, it included no write-mode code
whatsoever. It now has limited write support. (Details are on
http://linux-ntfs.sourceforge.net/status.html .)

(It's important to speak of both drivers because they're both still in
use.)



Relevant Pages

  • Re: Windows Logical Disk Manager error
    ... >> then mount the created MD device with the ntfs driver. ... I would not advise you to use volume6 without the md driver. ... Windows is using 512-byte blocks ...
    (Linux-Kernel)
  • [BK-PATCH-2.6-test] Minor NTFS update
    ... Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK ... Linux NTFS maintainer / IRC: ... Using Software RAID with NTFS ... The driver currently works only in read-only mode, ...
    (Linux-Kernel)
  • [PATCH 12/17] NTFS: The big ntfs write(2) rewrite has arrived.
    ... NTFS: The big ntfs writerewrite has arrived. ... -- This is a complete rewrite of the NTFS driver that used to be in the kernel. ... This new driver implements NTFS read support and is functionally equivalent ... This is because if the page cache page is not uptodate we ...
    (Linux-Kernel)
  • [PATCH 20/20] Re: [2.6-BK-URL] NTFS 2.1.17 release
    ... NTFS: 2.1.17 - Fix bugs in mount time error code paths. ... Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK ... -use the kernel's Software RAID / MD driver. ...
    (Linux-Kernel)
  • Re: Bootable CD Attack disk + NTFS question
    ... The best NTFS driver for Linux is the Linux-NTFS project driver, ... Cross site scripting and other web attacks before hackers do! ...
    (Pen-Test)