[ltp] Writing to an NTFS disk?

Bill Sheppard linux-thinkpad@linux-thinkpad.org
Thu, 03 Aug 2006 09:43:20 -0700


George Katsitadze wrote:
> On Wed, Aug 02, 2006 at 06:01:27PM -0400, gervin23 wrote:
>   
>> i'd be careful about using ntfs-3g. for me, everything seemed fine while 
>> happily reading/writing files to my ntfs partition but after rebooting 
>> into windows things got weird. the files ended up corrupted in both 
>> windows and linux with unknown filesizes.
You need to be careful that you actually unmount the volumes, both from
Linux and from Windows, when switching between environments. If you just
hibernate on one side or the other the OS which hibernated will be
unaware of any changes made by the other OS, and will wake up assuming
an unchanged filesystem. The easiest way to do this is simply to shut
down rather than hibernate (suspend-to-disk), but you can also create a
shell script to unmount the volumes prior to hibernation.
> Shoot. That's bad. Thanks for the heads up. Now I'm thinking
> about going back to FAT32.
>   
There's an article on NTFS-3g at
http://www.apcstart.com/site/amills/2006/08/870/linux-to-get-reliable-ntfs-write-support.

Bill

-- 
-------------------------------------------------------------------------
Bill Sheppard                           Senior Industry Marketing Manager
bill.sheppard@sun.com                                Client Systems Group
(408) 404-1254 (x68154)                            Sun Microsystems, Inc.