You are not logged in.

#1 2014-11-26 16:24:11

diederick76
Member
Registered: 2010-02-14
Posts: 157

fuse.sshfs xsystemd.automount: illegal device

Hi all,

Using instructions found at https://wiki.archlinux.org/index.php/Sshfs, I'm trying to mount a directory on a remote machine using this entry in my fstab:

diederick@192.168.1.121:/home/share/dossiers            /home/diederick/documenten/dossiers     fuse.sshfs noauto,x-systemd.automount,_netdev,users,idmap=user,IdentityFile=/home/diederick/.ssh/id_rsa,allow_other,reconnect 0 0

However, this works only when the fstab entry is not there during boot. If it is, this happens:

diederick@bob:~/ $ cd documenten/dossiers/
bash: cd: documenten/dossiers/: Onjuist apparaat

which is Dutch for illegal device, I guess. But it *is* mounted, even before I cd to the mountpoint:

diederick@bob:~/ $ mount |grep dossiers
systemd-1 on /home/diederick/documenten/dossiers type autofs (rw,relatime,fd=21,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)

But isn't "noauto" supposed to make mounting wait until it is asked for?

journalctl then has these lines:

nov 26 17:03:27 bob mount[1056]: read: Connection reset by peer
nov 26 17:03:27 bob systemd[1]: home-diederick-documenten-dossiers.mount mount process exited, code=exited status=1
nov 26 17:03:27 bob systemd[1]: Unit home-diederick-documenten-dossiers.mount entered failed state.

On the wiki page there is a section about Connection reset by peer, but those hints don't help me further. I would love to debug, but where do I put "sshfs -o sshfs_debug user@server ..." as is mentioned there?

Can someone tell me what I'm missing here?

Offline

#2 2014-11-26 19:06:12

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: fuse.sshfs xsystemd.automount: illegal device

Did you setup password-less login? What does journalctl -b tell you about that device? I wonder if your network is functional when the initial mount is attempted

Offline

#3 2014-11-26 20:00:36

diederick76
Member
Registered: 2010-02-14
Posts: 157

Re: fuse.sshfs xsystemd.automount: illegal device

Password-less login is enabled. During boot, according to journalctl -b, NetworkManager startup complete is before the mount attempt.

nov 26 20:43:50 bob NetworkManager[254]: <info> startup complete
...
nov 26 20:45:18 bob mount[810]: read: Connection reset by peer
nov 26 20:45:18 bob systemd[1]: home-diederick-documenten-dossiers.mount mount process exited, code=exited status=1
nov 26 20:45:18 bob systemd[1]: Unit home-diederick-documenten-dossiers.mount entered failed state.

Last edited by diederick76 (2014-11-26 20:11:24)

Offline

Board footer

Powered by FluxBB