Re: sshfs mounting on Centos 6.9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]





El 16/1/18 a las 23:04, Miguel González escribió:
Hi all,

  I am trying to mount on boot a sshfs filesystem.

  I have tried this in /etc/fstab

  backup@xxxxxxxxxxxx:/home/backup/myserver /backup   fuse.sshfs
nonempty,allow_other  0    2

  but only works when network works.

  I have also tried this in my crontab:

  @reboot sshfs -o idmap=backup myserver.com:/home/backup/myserver /backup

  but doesn´t seem to work either.

  What else can I try?

  Thanks,

  Miguel

---

Try adding the options:

_netdev: The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system).

delay_connect: delay connection to server

So, change your fstab entry:

backup@xxxxxxxxxxxx:/home/backup/myserver /backup   fuse.sshfs _netdev,delay_connect,nonempty,allow_other  0    2

Tell if works,

Best,
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux