You are not logged in.

#1 2011-06-25 15:51:15

sironitomas
Member
From: Cordoba, Argentina
Registered: 2009-11-28
Posts: 174
Website

Netfs daemon doesn't umount sshfs

Hi people. I have an up to date arch box and i usually need to work with files from my work computer. I use sshfs to connect there and i have those lines in fstab (as explained in the Sshfs Arch Wiki) so i can mount the network drives using the netfs daemon.

Netfs mount the network drives correctly. The problem is when i stop the daemon. The drives still mounted and i have to unmount them manually using fusermount -u.

Is that a bug in the netfs script?

Any recommended workaround?

I appreciate your help. Regards!

Last edited by sironitomas (2011-06-26 22:50:21)

Offline

#2 2011-06-29 16:48:10

sironitomas
Member
From: Cordoba, Argentina
Registered: 2009-11-28
Posts: 174
Website

Re: Netfs daemon doesn't umount sshfs

Does anybody have any clue?

Offline

#3 2011-06-30 00:02:12

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Netfs daemon doesn't umount sshfs

Is netfs supposed to mount/unmount sshfs? I thought it was only for real network mounts. sshfs uses fuse which creates a userspace filesystem. As far as your system is concerned, it is just a local mount.
I could be wrong but that's my take on it.


neutral

Offline

#4 2011-06-30 00:06:26

sironitomas
Member
From: Cordoba, Argentina
Registered: 2009-11-28
Posts: 174
Website

Re: Netfs daemon doesn't umount sshfs

Don't know what you mean by "real network mount", but if you refer to nfs, tell me how to set up a encrypted connection. I tried but it doesn't work. That's the only reason I use sshfs, the traffic is encrypted.

Offline

#5 2011-06-30 01:07:34

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: Netfs daemon doesn't umount sshfs

I think sandman means "physical mount points on a physical hard drive."  At least that's how I interpreted it.  Feel free to throw fire at me, I can take it.

Offline

#6 2011-06-30 02:58:10

sironitomas
Member
From: Cordoba, Argentina
Registered: 2009-11-28
Posts: 174
Website

Re: Netfs daemon doesn't umount sshfs

No. I think sand_man tells the method sshfs uses to connect (fuse), doesn't let the kernel know the filesystem is actually somewhere else (and not local).

AFAIK, the netfs script mounts the filesystem calling sshfs, but it won't umount it because was mounted by fuse (which was called by sshfs).

Think i'm more confused than before... A propper explanation would be appreciated. Thanks.

Last edited by sironitomas (2011-06-30 02:59:36)

Offline

#7 2011-06-30 03:55:00

parintachin
Member
Registered: 2009-05-25
Posts: 72

Re: Netfs daemon doesn't umount sshfs

if it is just for one user you can put the sshfs invocation in your .bash_login and the fusermount -u part in .bash_logout
some desktopenviroments also support that stuff is executed on login and/or logout

Offline

#8 2011-06-30 07:18:19

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Netfs daemon doesn't umount sshfs

I was referring to nfs. But I'm wondering how does netfs know what the difference is?


neutral

Offline

#9 2011-08-07 16:47:04

ThomasC
Member
From: Belgium
Registered: 2009-10-04
Posts: 8

Re: Netfs daemon doesn't umount sshfs

Maybe a bit too late, but I had unmounting issues as well (umount: /media/serverhome mount disagrees with the fstab.) I played a bit with the fstab lines and I can mount and umount perfectly now using lines like this:
[username]@[host]:[path] [mountpoint] fuse.sshfs defaults,noauto 0 0

Last edited by ThomasC (2011-08-07 16:48:10)

Offline

Board footer

Powered by FluxBB