Talk:NTFS-3G
From Gentoo Linux Wiki
what do you think, is this article ready for the removal of the wikification notice?
Yes, it is. And I am confirming that ntfs3g also works on amd64, not only on 32bit platforms.
should we bother to explain all the general mount options (e.g. noauto, users, uid, gid...)? the same about locale generation issues
I'm not an expert, but I couldn't believe that I have to disable fuse or recompile my kernel in order to access the NTFS (usb) drives. So I just ignored it and kept it running (I heavily use SSHFS).
I was also streaming mp3 over my network while attempting to mount the NTFS drive, got an error like this:
seb# ntfs-3g /dev/sda1 /mnt/alien/
$LogFile indicates unclean shutdown (0, 0)
Failed to mount '/dev/sda1': Operation not supported
Mount is denied because NTFS is marked to be in use. Choose one action:
Choice 1: If you have Windows then disconnect the external devices by
clicking on the 'Safely Remove Hardware' icon in the Windows
taskbar then shutdown Windows cleanly.
Choice 2: If you don't have Windows then you can use the 'force' option for
your own responsibility. For example type on the command line:
mount -t ntfs-3g /dev/sda1 /mnt/alien/ -o force
Or add the option to the relevant row in the /etc/fstab file:
/dev/sda1 /mnt/alien/ ntfs-3g defaults,force 0 0
so, I executed
seb# mount -t ntfs-3g /dev/sda1 /mnt/alien/ -o force $LogFile indicates unclean shutdown (0, 0) WARNING: Forced mount, reset $LogFile.
my current sshfs music stream got interrupted shortly, but the drive got mounted. no problems so far.
Hi. I found the following solution for automounting, but I can't say how clean this is. I created a file '/usr/share/hal/fdi/policy/10osvendor/20-ntfs-config-write-policy.fdi' with the content:
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="volume.fstype" string="ntfs">
<match key="@block.storage_device:storage.hotpluggable" bool="true">
<merge key="volume.fstype" type="string">ntfs-3g</merge>
<merge key="volume.policy.mount_filesystem" type="string">ntfs-3g</merge>
</match>
</match>
</device>
</deviceinfo>
As I'm using a german windoze but en_US.utf8 in gentoo, I also needed to remove the link /sbin/mount.ntfs-3g and replace it by a bash script like that:
#!/bin/bash /bin/ntfs-3g -o locale=de_DE.utf8 $@
With that, automounting in kde worked for me. As I don't know if this is a clean solution could please someone else who knows more about that add it to the wiki page.
[edit] don't put users in the disk group
By default, any disk / partition (i.e. /dev/hd* /dev/sd* etc.) has at least read permissions for the disk group. This means that any user who belongs in the disk group can read raw data of any disk. This practically makes the user root, as he can access the data of files that on the file system layer, would belong to root and only be readable by root, for example text files that contain passwords and the like. I don't quite understand how the suid bit for ntfs-3g works, the point of having the suid bit at all is that the user himself does not actually need additional priviledges to access all disks in general. It's the app and only the app that gets those rights through the suid. frostschutz 22:08, 1 June 2008 (UTC)
