Toto je starší verze dokumentu!
Introduction
The ntfs-3g driver is an open source, GPL licensed, Linux NTFS driver which was implemented by the Linux-NTFS project using FUSE. It provides full read-write access to NTFS, but currently lacks support for encrypted and compressed files and POSIX attributes. The driver is quite stable and the performance is comparable with other native Linux filesystems (sometimes even better). It was reported to run on x86, amd64 and arm CPU's, and no major errors or data loss have been yet reported, although there are some known issues.
For more information you can visit the ntfs-3g home page. Warning: BACKUP YOUR FILES BEFORE USING THIS DRIVER just in case. In fact back up your files anyway. [edit] Installation
The driver ebuild depends on sys-fs/fuse (portage will install it automatically as a dependency of the ntfs3g ebuild). Furthermore, it depends on the version of the fuse kernel module built by the fuse ebuild, not the one provided by the kernel itself. Basically, just ensure that the „File Systems → Filesystem in Userspace support“ option is DISABLED in your kernel configuration. If it's enabled or set to build as a module, disable it, recompile and reinstall your kernel then reboot before proceeding.
Then emerge it: # emerge sys-fs/ntfs3g
The fuse kernel module must be prepared for loading into the kernel (the ntfs-3g driver will load it automatically if needed): # modules-update [edit] Usage examples
Replace /dev/hda1 with your NTFS volume and /mnt/windows with your mountpoint. [edit] Mount a volume manually
Full access to all users, permission free: # ntfs-3g /dev/hda1 /mnt/windows [edit] Mount at boot (combine the options provided in the following examples into one single line of /etc/fstab ):
Modify /etc/fstab: # echo „/dev/hda1 /mnt/windows ntfs-3g 0 0“ » /etc/fstab
Locale support( in the following examples it's used locale=en_US.utf8, replace with yours):
Modify /etc/fstab: # echo „/dev/hda1 /mnt/windows ntfs-3g locale=en_US.utf8 0 0“ » /etc/fstab
Access for non Root-Users(make ntfs partitions mountable for a normal user, unmountable for everyone else):
Set the suid flag for the ntfs-3g binary and then re-emerge it: # echo sys-fs/ntfs3g suid» /etc/portage/package.use # emerge sys-fs/ntfs3g -1
Modify /etc/fstab: /dev/hda1 /mnt/windows ntfs-3g users 0 0
To make a user/group own everything on the ntfs drive:
Modify /etc/fstab: /dev/hda1 /mnt/windows ntfs-3g users,uid=THE_ID_OF_THE_OWNER,gid=THE_ID_OF_THE_GROUP 0 0
A User's ID and GID can be found with: $ id username
If you don't want the drive to be automounted at boot: /dev/hda1 /mnt/windows ntfs-3g noauto 0 0
One single line doing all these things: /dev/hda1 /mnt/windows ntfs-3g users,locale=en_US.utf8,uid=THE_ID_OF_THE_OWNER,gid=THE_ID_OF_THE_GROUP,noauto 0 0
Now you can mount the drive as a normal user: $ mount /mnt/windows
For more detailed options and explanations see this document and the manual page: $ man ntfs-3g [edit] Kernel upgrade issues
If your driver stops working after you have upgraded your kernel then you should reinstall fuse. # emerge -1 sys-fs/fuse # modules-update [edit] Disclaimer
The author of this document isn't responsible for any damage or loss of data that the software could cause, use at your own risk.