23

I have this line in my fstab:

sshfs#ecarroll@o99:/opt/dealermade/ftp/inc /opt/dealermade/ftp/inc fuse defaults,idmap=user,users 0 0

For whatever reason it didn't work -- that's fine. How do I make it not stop the boot sequence. It prompted me to to hit S to skip or M to manually repair. If it isn't the boot volume, I just want my volumes to fail mounting with nothing more than an entry in logs.

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
Evan Carroll
  • 28,578
  • 45
  • 164
  • 290

2 Answers2

11

I'm not familiar with sshfs, but I know the nobootwait option works for local disk partitions. Maybe try:

sshfs#ecarroll@o99:/opt/dealermade/ftp/inc /opt/dealermade/ftp/inc fuse defaults,idmap=user,users,nobootwait 0 0

(A quick google search also shows archlinux uses nofail as per this thread. A little more googling shows that nobootwait might be a non-standard Ubuntu feature... curious to see if it resolves your issue. )

tshepang
  • 64,472
  • 86
  • 223
  • 290
Niall Byrne
  • 571
  • 2
  • 9
3

nobootwait worked very well for me in Linux Mint until version 18. I miss it.

Using nobootwait could result in writing to your OS drive rather than a mounted drive, but only if you are careless. If you always write to a folder on your mount, then if the mount fails the folder will not exist and the write fails.

  • 8
    You can also mitigate this problem by doing `chattr +i /the/mount/point` to deny every user (even root) access to the directory if nothing is mounted on it. – sam hocevar Jul 03 '18 at 12:20
  • This is a very interesting comment. But in case you come accross `lsattr: Inappropriate ioctl` it means that your filesystem does not support it. – bomben Nov 14 '20 at 21:17