@Poka64 & Domino :
EDIT : Scroll down to post 137 to see our last improvement
Ok guys, here it is .
I finaly manage to mount my NTFS partition with pmount (using /etc/allow.pmount) so i could test it a bit. And as far as i go, it works.
What changed :
- For the non empty directory problem, i add the option nonempty. This is safe because pmount already test if the directory is empty or not. But i really don't no why fuse see it as non empty
- I manage to set the locale correctly. I pass lot of time on it, because i first didn't know how to get the entire locale (en_US.UTF8 instead of UTF8 ) but google is definitly my fiend 8)
- I made 2 packages :
* The first one, givre3.deb force all ntfs partition to use ntfs-3g instead, and to use ntfs, you have to set '-t ntfs-old' to pmount. This way, when you plug an NTFS device, gnome-volume-manager will use ntfs-3g directly and mount it with full w/r access automaticly. This has to be test (see below)
* The second one, givre4.deb don't force ntfs-3g, so you will have to mount it manually to use ntfs-3g. This will permit to make a nautilus script to mount it with w/r access (not done already)
- pmount didn't allow to unmount other things than device block. I made an exception to /dev/fuse, cause it's the only way to unmount it.
So be carefull, to unmount one, you will have to unmount all. With the nautilus script, we will be able to remount the other partition.
But it still needs some test:
TEST for *givre3.deb:
- Before installing the package, Plug your device and unmount it (with pumount). Be sure of that by checking /etc/mtab.
- Install the package (*givre3.deb).
- Test if it mount correctly without option:
it should stop for ntfs-3g (i remove the output 'filesystem:*' but you still can see the driver use). Note the option pass to mount. You should have the option locale='*.UTF8'
- unmount it:
- try to mount it with the old driver
- unmount it again
pmount -d -t ntfs-old /dev/sd*
If all work, let's try gnome-volume-manager:
- unplug your device.
- start gnome-volume-manager in debug mode
- plug your device. see if it mount it correctly, and when it's done, check in /etc/mtab that the driver has been mount with fuse. Check that you have write access
gnome-volume-manager -d no
- If it's work. Great
TEST for *givre4.deb:
- install the package
- plug and unmount everything
- try to mount it without any option
- unmount it
- try to mount it with the ntfs driver
- If it works we are ready for a nautilus sript.
pmount -d -t ntfs /dev/sd*
Say me what option do you prefer.
@all_other: sorry, i don't have time for the moment, i'll see that after