Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

Bug#434128: ntfs-3g: fusermount -u refuses to unmount

瀏覽次數:223 次
跳到第一則未讀訊息

Marvin Renich

未讀,
2007年7月21日 下午2:10:102007/7/21
收件者:
Package: ntfs-3g
Version: 1:1.710-1
Severity: normal

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

Szabolcs Szakacsits

未讀,
2007年7月22日 下午4:20:102007/7/22
收件者:

This is a bug in both ntfs-3g and fuse. Fuse 2.7.0 has fixed it and that
version is a requirement for this functionality for any fuseblk type fuse
file systems.

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 Renich

未讀,
2007年7月22日 下午5:50:082007/7/22
收件者:
Thanks for the info and workaround. I don't see fuse 2.7.0 in
experimental, and unstable is still 2.6.5-3, which is what I have. I'll
try this out when 2.7.0 hits unstable.

...Marvin

0 則新訊息