gvfs-mount -u tries to mount, unclear --help

Bug #1043848 reported by Martin Pitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gvfs
Expired
Low
gvfs (Ubuntu)
Triaged
Low
Unassigned

Bug Description

I have my USB stick automounted by nautilus/gvfs. Trying to unmount it gives:

$ gvfs-mount -u -d /dev/sdb1
Error mounting /dev/sdb1: Device /dev/sdb1 is already mounted at `/media/martin/4805-C45B'.

Apparently it tries to mount it again instead of unmount. Same with using --unmount.

Revision history for this message
Martin Pitt (pitti) wrote :

udisks works fine FTR:

$ udisksctl unmount -b /dev/sdb1
Unmounted /dev/sdb1.

Changed in gvfs (Ubuntu):
status: New → In Progress
assignee: nobody → Martin Pitt (pitti)
importance: Undecided → Medium
Revision history for this message
Martin Pitt (pitti) wrote :

Apparently the --help output is a bit misleading, you are not supposed to specify a device with -d. But if you try without:

$ gvfs-mount -u /dev/sdb1
Error finding enclosing mount: Containing mount does not exist

Both errors happen exactly the same with current git head, so regardless of whether or not -d should be used, something is wrong.

Revision history for this message
Martin Pitt (pitti) wrote :

A variant that does work:

 $ gvfs-mount -u file:///media/martin/4805-C45B

so apparently gvfs-mount does not support unmounting by device file, only by URI.

summary: - gvfs-mount -u stopped working, tries to mount
+ gvfs-mount -u tries to mount, unclear --help
Changed in gvfs (Ubuntu):
status: In Progress → Triaged
importance: Medium → Low
Changed in gvfs:
importance: Unknown → Low
status: Unknown → New
Martin Pitt (pitti)
Changed in gvfs (Ubuntu):
assignee: Martin Pitt (pitti) → nobody
Changed in gvfs:
status: New → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.