If I mount an NTFS partition as a non-root user (member of group fuse),
I cannot unmount the filesystem with fusermount -u. It must be
unmounted by root with umount.
--------
$ ntfs-3g /dev/sda11 ~/mnt/nt/
$ mount
[ other mounts snipped ]
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/sda11 on /home/mrvn/mnt/nt type fuseblk (rw,nosuid,nodev,noatime,allow_other,blksize=4096)
$ fusermount -u ~/mnt/nt/
fusermount: entry for /home/mrvn/mnt/nt not found in /etc/mtab
$ fusermount -u /dev/sda11
fusermount: entry for /dev/sda11 not found in /etc/mtab
$ cat /etc/mtab
[ other mounts snipped ]
fusectl /sys/fs/fuse/connections fusectl rw 0 0
/dev/sda11 /home/mrvn/mnt/nt fuseblk rw,nosuid,nodev,noatime,allow_other,blksize=4096 0 0
$ cat /proc/mounts
[ other mounts snipped ]
fusectl /sys/fs/fuse/connections fusectl rw 0 0
/dev/sda11 /home/mrvn/mnt/nt fuseblk rw,nosuid,nodev,noatime,user_id=0,group_id=1000,allow_other 0 0
$ sudo umount ~/mnt/nt
$ mount
[ other mounts snipped ]
fusectl on /sys/fs/fuse/connections type fusectl (rw)
--------
Unmounting with fusermount -u works when mounting with ntfsmount from
the ntfsprogs package.
...Marvin
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.20 (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages ntfs-3g depends on:
ii fuse-utils 2.6.5-3 Filesystem in USErspace (utilities
ii libc6 2.6-2 GNU C Library: Shared libraries
ii libfuse2 2.6.5-3 Filesystem in USErspace library
ii libntfs-3g5 1:1.710-1 ntfs-3g filesystem in userspace (F
ntfs-3g recommends no packages.
-- debconf information:
* ntfs-3g/warning:
--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
It's planned that the next release of ntfs-3g will also fix this issue
which will work with fuse 2.7.0 and later (it's not possible to fix it
for earlier fuse releases).
If you already have fuse 2.7.0 then a workaround can be
ntfs-3g /dev/sda11 ~/mnt/nt/ -o user=<username>
then fusermount -u will work.
In the long run fusermount will be eliminated and umount(8) can be used
instead. This requires kernel support on which Miklos Szeredi is already
working on.
ntfsmount works because it uses the unsafe 'fuse' fstype for block devices
which can result corruptions, data or volume loss if the device is detached
or powered down right after unmount since the kernel buffers aren't ensured
to be flused to the disk. You can make fusermount -u work with ntfs-3g the
same unsafe, risky way if you downgrade the fuse kernel module to a 2.5.x
or your kernel to a prior 2.6.20 version.
Szaka
--
NTFS-3G Lead Developer: http://ntfs-3g.org
...Marvin