nautilus cannot unmount encfs and sshfs disks

Bug #417743 reported by Balau
46
This bug affects 10 people
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
Incomplete
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: nautilus

Appears on Ubuntu 9.04 Desktop x86.
nautilus 1:2.26.2-0ubuntu2

To reproduce the problem:

- Run the commands:
$ sudo apt-get install encfs
$ mkdir ~/d_enc
$ mkdir ~/d
$ encfs ~/d_enc ~/d
The last command creates the encfs disk in d_enc and mounts d.

- A disk called "d" appears on the desktop.
- Right-click on the disk "d" and select "Unmount Volume"
- A message window opens with title "Unable to unmount d" and text "umount: /home/username/d is not in the fstab (and you are not root)" and presents an OK button.

The same happens on disks mounted through sshfs.

Nautilus should understand that the disks can be unmounted with "fusermount -u $dir", or it should not display "Unmount Volume" or even show the disks on the desktop at all.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

does it works fine if you mount them with gvfs-mount ?

Changed in nautilus (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Balau (balau82) wrote :

For ssh disks: Yes.
I can mount the remote disk using:
$ gvfs-mount sftp://${SERVER}/${PATH}
...or using "Connect to Server..." dialog and Service Type: SSH. The effect is the same. In these ways, it is not using sshfs. A folder appears on the desktop, instead of a disk. If I unmount this folder by right-clicking on it and selecting "Unmount Volume", it works just fine and the folder disappears. This functionality can easily replace sshfs.

For encfs disks:
I don't know how to mount an encfs folder with gvfs-mount, and the command gvfs-mount lacks its man page.

Revision history for this message
Sebastien Bacher (seb128) wrote :

could you try if that's still an issue in karmic or lucid?

Revision history for this message
Balau (balau82) wrote :

Ubuntu Karmic behaves in the same way, both for encfs and for sshfs. I don't have Lucid installed.
At this point I don't know if it can be considered a bug or a feature request.
What I know is that these protocols (both based on FUSE) seem to be managed by the desktop environment because an icon appears on the desktop (and also in nautilus "Places") after mount, but trying to unmount the disk from that icon results in the error message.

Revision history for this message
Sebastien Bacher (seb128) wrote :

does using "udisks --unmount <device>" on the device works?

Revision history for this message
Balau (balau82) wrote : Re: [Bug 417743] Re: nautilus cannot unmount encfs and sshfs disks

udisks is only available on Lucid, so I installed Lucid RC in QEMU.
I tried the following:

for encfs:
$ mkdir /home/francesco/d_enc
$ mkdir /home/francesco/d
$ encfs /home/francesco/d_enc /home/francesco/d # a new disk icon
called "d" appears on the desktop
$ udisks --unmount /home/francesco/d
Device file /home/francesco/d is not a block device: resource
temporarily unavailable
$ udisks --unmount /home/francesco/d_enc
Device file /home/francesco/d is not a block device: resource
temporarily unavailable
$ sudo udisks --unmount /home/francesco/d
Cannot stat device file /home/francesco/d: Permission denied

for sshfs
$ mkdir /home/francesco/s
$ sshfs user@host:/path /home/francesco/s # a new disk icon called "s"
appears on the desktop
$ udisks --unmount /home/francesco/s
Device file /home/francesco/s is not a block device: resource
temporarily unavailable
$ sudo udisks --unmount /home/francesco/d
Cannot stat device file /home/francesco/s: Permission denied

On Thu, Apr 22, 2010 at 10:31 AM, Sebastien Bacher <email address hidden> wrote:
> does using "udisks --unmount <device>" on the device works?
>
> --
> nautilus cannot unmount encfs and sshfs disks
> https://bugs.launchpad.net/bugs/417743
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “nautilus” package in Ubuntu: Incomplete
>
> Bug description:
> Binary package hint: nautilus
>
> Appears on Ubuntu 9.04 Desktop x86.
> nautilus 1:2.26.2-0ubuntu2
>
> To reproduce the problem:
>
> - Run the commands:
> $ sudo apt-get install encfs
> $ mkdir ~/d_enc
> $ mkdir ~/d
> $ encfs ~/d_enc ~/d
> The last command creates the encfs disk in d_enc and mounts d.
>
> - A disk called "d" appears on the desktop.
> - Right-click on the disk "d" and select "Unmount Volume"
> - A message window opens with title "Unable to unmount d" and text "umount: /home/username/d is not in the fstab (and you are not root)" and presents an OK button.
>
> The same happens on disks mounted through sshfs.
>
> Nautilus should understand that the disks can be unmounted with "fusermount -u $dir", or it should not display "Unmount Volume" or even show the disks on the desktop at all.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/417743/+subscribe
>

Revision history for this message
udude (igal) wrote :

+1 affected by this bug on Lucid

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.