Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

accessing ntfs volumes

2 views
Skip to first unread message

PRadyut

unread,
Jan 10, 2006, 9:03:36 AM1/10/06
to
Hi Group,
I'm running Fedora Core 3 on pentium machine with dual boot with
windows installations
Uname gave the release id as 2.6.9-1.667
I want to access ntfs volumes.
I want to know what to write out in /etc/fstab or etc/mtab such that
ntfs volumes can be read/write.

Thanking you
Pradyut
http://pradyut.tk
http://spaces.msn.com/members/oop-edge/
http://groups-beta.google.com/group/oop_programming
India

moma

unread,
Jan 10, 2006, 10:09:50 AM1/10/06
to
PRadyut wrote:
> Hi Group,
> I'm running Fedora Core 3 on pentium machine with dual boot with
> windows installations
> Uname gave the release id as 2.6.9-1.667
> I want to access ntfs volumes.
> I want to know what to write out in /etc/fstab or etc/mtab such that
> ntfs volumes can be read/write.

1) NTFS write support in pre 2.6.15 kernels.
In pre 2.6.15, use user_space NTFS driver. (FUSE-driver & ntfsprogs tools).

http://www.linux-ntfs.org/content/view/19/37/

First, install FUSE module from source og apt-get it.
http://wiki.linux-ntfs.org/doku.php?id=ntfsmount

Update library cache
# ldconfig

Then install ntfsprogs tools. It will auto-detect FUSE.

$ man ntfsprogs
$ man ntfsmount

Mount NTFS drive as root (sudo).
# umount /dev/sda2
# ntfsmount /dev/sda2 /media/ntfs -o fmask=000,dmask=000

Test, write on it
$ vi /media/ntfs/AUTOEXEC.BAT
OK.

Note: "gedit" and other editors may wanna create _new_ tempporary files
on NTFS. It will wooov.
-----------------------------------------------

Alternative
2) Achieving write on NTFS by Captive
http://www.jankratochvil.net/project/captive/

Captive gives you write acess to NTFS, but it will only work on X86
(intel/amd) because it employs native Windows (ntfs.sys) driver.

Is it slow?

-----------------------------------------------
Alternative
3) Linux kernel 2.6.15 has now a _partial_ NTFS write support.

http://wiki.kernelnewbies.org/LinuxChanges says:

[[NTFS write support: You can write(2) to a file even beyond the end of
the existing file. Sparse files can also be written and holes will be
filed appropriately. truncate(2), ftruncate(2) and open(2) with O_TRUNC
flag also works. There're some limitations with heavily fragmented files
which you won't be allowed to change. Also, notice that
creation/deletion of files and directories is still not supported and
mmap(2) based writes is still not complete]]
-
You must enable this feature in the kernel config. In
# make menuconfig

File systems --->
DOS/FAT/NT Filesystems --->
[*] NTFS write support
------------------------------------

Kernel driver replaces the FUSE module (in alternative 1). It's also
quicker than FUSE.

Study the status and further destin of kernel NTFS driver.
http://wiki.linux-ntfs.org/doku.php?id=driver

Note: I think you still need to use the special user_space ntfsprogs
(tools) even you use the kernel based NTFS-driver. Am I wrong? Nope.

ntfsprogs: http://www.linux-ntfs.org/content/view/19/37/

It means that an ordninary
mount -o rw
will not work yet. Use ntfsmount instead.
------------------------------------


// moma
http://www.futuredesktop.org/how2burn.html#Ubuntu

Amadeus W. M.

unread,
Jan 11, 2006, 10:45:31 AM1/11/06
to


The livna repository maintains rpms for the ntfs kernel module:

http://rpm.livna.org/fedora/3/i386/yum/stable/RPMS/


Download the kernel-module-ntfs version that precisely matches your kernel
version. Do a

uname -r

at a shell prompt, to see what kernel you're running.

The livna repository is a very useful one, so you may want to enable it
if you haven't. Once it's enabled, you simply do

yum install kernel-module-ntfs

You will find instructions on how to enable the livna repository for yum
here:

http://rpm.livna.org/


moma

unread,
Jan 12, 2006, 5:10:49 AM1/12/06
to

XX)


> [[NTFS write support: You can write(2) to a file even beyond the end of
> the existing file. Sparse files can also be written and holes will be
> filed appropriately. truncate(2), ftruncate(2) and open(2) with O_TRUNC
> flag also works. There're some limitations with heavily fragmented files
> which you won't be allowed to change. Also, notice that
> creation/deletion of files and directories is still not supported and
> mmap(2) based writes is still not complete]]
> -
> You must enable this feature in the kernel config. In
> # make menuconfig
>
> File systems --->
> DOS/FAT/NT Filesystems --->
> [*] NTFS write support
> ------------------------------------
>
> Kernel driver replaces the FUSE module (in alternative 1). It's also
> quicker than FUSE.
>
> Study the status and further destin of kernel NTFS driver.
> http://wiki.linux-ntfs.org/doku.php?id=driver
>
> Note: I think you still need to use the special user_space ntfsprogs
> (tools) even you use the kernel based NTFS-driver.

>Am I wrong?
YES !

I have now tested both FUSE user_space driver and kernel NTFS driver,
and both work very well within the limits described in XX).

You'll find my tests at the _bottom_ of this file:
http://www.futuredesktop.org/kompilere_kjerne.html

// moma

0 new messages