sshfs mount不会从/etc/rc.local启动

我在/etc/rc.local中有以下命令

chmod 666 /dev/fuse chmod +x /usr/bin/fusermount /bin/su someuser -c "/usr/bin/sshfs someuser@someserver:/usr/local/storage /usr/local/storage_remote -o nonempty -o reconnect" 

如果我从命令行运行它们,以root身份运行。
如果我重新启动服务器,它们将不会从/etc/rc.local运行。
我试图找出我做错了什么,但我没有控制台访问,我找不到有关sshfs / var / log中的任何错误。

我想清楚它错过了什么

  1. sudo addgroup根引脚
  2. sudo addgroup某用户保险丝

另外在/etc/rc.local中有一个错误,它阻止了执行sshfs的行。

您应该考虑使用fstab来装载包括Fuse的文件系统。 这会停止你的盒子试图挂载networking文件夹,例如,如果你的networking出现故障。

请参阅: http : //www.debuntu.org/2006/04/27/39-mounting-a-fuse-filesystem-form-etcfstab

这应该适用于所有Linux发行版(不包括软件包命令)