obexfs cannot be unmounted by non-root user

Asked by Roman Polach

I have problem unmounting an obexfs(fuse) filesystem mounted under non-root user.

using Feisty, I have obexfs installed.
I add privilege "Allow use of fuse filesystems" to user,
create /etc/fuse.conf with one line content:
  user_allow_other
and I add an entry in /etc/fstab:
  obexfs#-b00:16:4E:7B:FC:1C\040-B10 /media/nokia6021 fuse allow_other,users 0 0

I can mount it under this user with mount /media/nokia6021 or even with natilus...
...but when I tried to unmount it (using umount /media/nokia6021 or in nautilus) I got error message:

  umount: /media/nokia6021 mount disagrees with the fstab

How can I set Feisty to allow non-root user to unmount this volume?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Markus Thielmann
Solved:
Last query:
Last reply:
Revision history for this message
Markus Thielmann (thielmann) said :
#1

Thanks for your question.

It's a known bug upstream (debian and FUSE).

You might find a working solution here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=398051

Revision history for this message
Roman Polach (rpolach) said :
#2

I tried to workaround as described,
I modify /etc/fstab entry to this:
  obexfs#-b00:16:4E:7B:FC:1C\040-B10 /media/nokia6021 fuse allow_other,user,fsname=obexfs#-b00:16:4E:7B:FC:1C 0 0

I have mount it and /etc/mtab contains this line:
  obexfs#-b00:16:4E:7B:FC:1C /media/nokia6021 fuse rw,nosuid,nodev,noexec,allow_other,user=roman 0 0

But when I tried to umount it, I still got:
  umount: /media/nokia6021 mount disagrees with the fstab

...
So I tried to modify /etc/fstab entry to this:
  obexfs#-b00:16:4E:7B:FC:1C\040-B10 /media/nokia6021 fuse allow_other,user,fsname=obexfs#-b00:16:4E:7B:FC:1C\040-B10 0 0
(add -Bxx also to fsname...)

but then I cannot even mount it... mount says:
  fuse: unknown option `-B10'

Revision history for this message
Best Markus Thielmann (thielmann) said :
#3

I'm afraid I'm not able to help you with that problem.

It might be a good idea to file a ticket on the ObexFs ticket-system: http://dev.zuckschwerdt.org/openobex/report

Revision history for this message
Roman Polach (rpolach) said :
#4

Thanks Markus Thielmann, that solved my question.

Revision history for this message
Roman Polach (rpolach) said :
#5
Revision history for this message
Mariusz Radon (mariusz-radon) said :
#6

Hi! Before "naming problem" will be fixed in obexfs you can try the following hack. Simply create a wrapper /usr/local/bin/obexfs_myphone:

#!/bin/sh
/usr/bin/obexfs -b 00:00:00:00:00:00 -B 10 $*

and update the proper entry in /ets/fstab:

obexfs_myphone /media/myphone fuse user,fsname=obexfs_myphone 0 0

In this way you don't need to explicitly pass any options to obexfs command.