24
11
Please consider following fstab line (line breaks for readability):
sshfs#user@192.168.1.123:/home/user/
/home/user/Server/
fuse
auto,user,_netdev,reconnect,uid=1000,gid=1000,IdentityFile=/home/user/.ssh/id_rsa,idmap=user,allow_other
0
It works fine, but every reboot I need to use mount -a
to mount the server (or click appropriate icon in Thunar to mount the thing)
Is it possible to mount my ssh directory straight-away on boot time?
I am using Xubuntu 13.10
"Perpaphs the issue is my configuration - my ethernet network is up 5-15 seconds after xfce (and desktop env.) is up. I don't know why ubuntu works like this."
You don't ? Ask NetworkManager, or whoever wrote that ... #! If it is a wireless connection, good luck configuring it, if it is wired, you should NOT have it managed by NetworkMangler. – user2531336 – 2015-04-30T12:46:53.090
read: Connection reset by peer
– Dims – 2019-06-24T15:21:32.573It looks like almost exactly same fstab line as mine (except permissions and symlink option) Anyway I tried it, and no success. I still have to exec
mount -a
after boot – user21886 – 2013-11-04T11:41:51.113That's funny, it just worked for another user http://superuser.com/questions/666739/automatically-mount-a-remote-folder-on-boot/666775#666775. Have you checked that you are user 1000,1000, and that your key in id_rsa?
– MariusMatutiae – 2013-11-04T12:22:00.553Yes, and it is working 100%, but I need to run
mount -a
after boot. I'm concidering to addmount -a
to autostart – user21886 – 2013-11-04T12:50:16.290It is possible this occurs before your network comes up after execution of mount at boot. Try adding these two lines in rc.local sleep 10: mount -a – MariusMatutiae – 2013-11-04T13:23:55.817
Still no success. Perpaphs the issue is my configuration - my ethernet network is up 5-15 seconds after xfce (and desktop env.) is up. I don't know why ubuntu works like this. My arch connects before xfce etc. – user21886 – 2013-11-04T13:43:19.233
What is relevant to you is whether this can be done at all during boot. So, perhaps you may try sleep 120; mount -a, just to see whether the diagnosis above is correct, or whether we are facing something more fundamental. – MariusMatutiae – 2013-11-04T14:30:53.647
Sleep 120 doesn't work neither – user21886 – 2013-11-04T14:44:27.277
Can you replace "allow-hotplug" with "auto" in /etc/network/interfaces? This will bring up the network before any services that depends on it. (However this is NOT what "auto" means, see man 5 interfaces for more details.) – dash17291 – 2013-11-23T14:54:16.593