Can I set an /etc/fstab with options=auto to be skipped if mounting fails?
The manual says, it will break the boot process if an entry with options=auto fails.
Without auto, it does not automatically mount the device on boot.
So how to make the auto entry to be ignored on failures?
I created a partition called
/dev/sdb1
in my Ubuntu VM. But I didn’t create a filesystem for this partition and so of course it will not get mounted.Then put following entry in
fstab
.And rebooted VM. Server got rebooted with following error msg in
syslog
What is
nobootwait
:nobootwait
can be applied to non-remote filesystems to explicitly instructmountall(8)
not to hold up the boot for them.Maybe it will be better to write a script to mount something after boot? For example, put string with
noauto
tofstab
and mount it viarc.local
For some flavors
nobootwait
and for for examplexfs
file systems no workBelow work with UUID
I am not sure about your distro, but usually booting just waits with a timeout and then will boot without mounting. You can mount it automatically on run time using an
udev
rule, e.g. on pluggin in.To bind directories in fstab use: