mount drives at boot failed

Tags:

Answer: 1

4 hours ago

For mounting sshfs I have a shell script:

#!/bin/bash 
sshfs -o allow_other user@ip-address:/remote/path /local path

If I run the script after I boot up the server, it will mount, but it won't mount drives if I add the script to run at boot with /etc/rc.local or crontab using @reboot command.

I also tried to add sshfs lines to /etc/fstab, but that fails too.

I tried to add this to /etc/fstab

sshfs#user@remote:/path /local/path

then server won't boot up

Popular Search

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9