Automatically mount a remote folder on boot
Posted
by
Andrew
on Super User
See other posts from Super User
or by Andrew
Published on 2013-10-29T07:42:32Z
Indexed on
2013/10/29
10:01 UTC
Read the original article
Hit count: 282
I'm trying to mount a Windows folder on my Ubuntu machine on start up. I've tried following this page here, modifying /etc/fstab and appending sshfs#my_user@remote_host:/path/to/directory <local_mount_point> fuse user 0 0
to it, but it fails; on start up, I get an error saying that the mounting failed, and I can press S to skip or M to recover manually.
I also tried following this page here, appending /usr/bin/sshfs -o idmap=user my_user@remote_host:/path/to/directory <local_mount_point>
to the /etc/rc.local file, but this doesn't help either; Ubuntu just boots up normally without mounting.
I have Cygwin installed on my Windows machine, and I can run everything smoothly, such as sshing without passwords, and mounting it manually. I've also tried to run the modified rc.local file $ /etc/rc.local
, and it works perfectly, but I just can't seem to get the folder mounted on start up.
Can someone help me?
© Super User or respective owner