0% found this document useful (0 votes)
19 views

Filesystem - How To Configure Systemd To Ignore Fstab Drive Mount Failures? - Ask Ubuntu

The document discusses configuring systemd to ignore mount failures of drives listed in fstab during boot. It recommends adding the "nofail" option to the drives' entries in fstab, as well as a low timeout value like "x-systemd.device-timeout=2" to avoid long waits. It notes changes to fstab while in emergency mode won't take effect until reboot.

Uploaded by

AS
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Filesystem - How To Configure Systemd To Ignore Fstab Drive Mount Failures? - Ask Ubuntu

The document discusses configuring systemd to ignore mount failures of drives listed in fstab during boot. It recommends adding the "nofail" option to the drives' entries in fstab, as well as a low timeout value like "x-systemd.device-timeout=2" to avoid long waits. It notes changes to fstab while in emergency mode won't take effect until reboot.

Uploaded by

AS
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

filesystem - How to configure systemd to ignore fstab drive mount failure... https://askubuntu.com/questions/638985/how-to-configure-systemd-to-ig...

Anybody can ask a question


Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It only takes a
minute to sign up. Anybody can answer

Sign up to join this community


The best answers are voted up
and rise to the top

How to configure systemd to ignore fstab drive mount


failures?
Asked 6 years, 4 months ago Active 3 years, 10 months ago Viewed 9k times

When I have first set up Ubuntu 15.04 (which is first to switch to systemd AFAIK) I was
puzzled by why does it only boot some times and then become unbootable (failing to the
10 systemd shell instead of proceeding to start X). I have chosen upstart boot from the grub
menu and then came to the conclusion it fails to mount my Windows C: drive (which I have
assigned a static mount point) and this is the reason. But the question is not why does it
fail to mount it but why does it fail to boot then (given there are no files needed during the
6 boot process on that drive) and how to overcome this.

I have also configured it to mount my USB hard drive to a static mount point as I want it to
be found in a particular place and I hate it to appear on the Unity panel, needless to say
this makes my system unbootable (unless I use upstart again) when I take my laptop
somewhere without taking the USB drive with me.

How can this be fixed?

filesystem fstab systemd

Share Improve this question edited Jan 18 '18 at 12Z56 asked Jun 21 '15 at 0Z05
Follow Anwar Ivan
!"
#$% 28 183 299 $&'% 63
# 149 208

1 de 2 15/11/21 13:09
filesystem - How to configure systemd to ignore fstab drive mount failure... https://askubuntu.com/questions/638985/how-to-configure-systemd-to-ig...

3 Try adding the nofail mount option to that drive. – muru Jun 21 '15 at 0Z15

1 Strangely, this results in fuse: unknown option 'nofail' errors if you do mount -a , but it
still works anyway – endolith May 19 '16 at 4Z49

1 Answer Active Oldest Votes

As muru mentioned, add . But also add a low timeout with something like
nofail
x-systemd.device-timeout=2 , because the default timeout seems to be 90 seconds.
18
Example from my fstab:

LABEL="test" /mnt/test ext4 defaults,nofail,x-systemd.device-timeout=4 0 2

Share Improve this answer Follow answered Jul 16 '15 at 14Z14


mivk
()
*"$ 38 46

4 It's worth nothing that if you make changes to /etc/fstab while in emergency mode, they won't be
picked up until you actually reboot. Just exiting emergency mode by closing the shell (as it
suggests: "systemctl default" or "^D" to try again to boot into default mode) will not re-read the
fstab, so the fsck task that was failing before will continue failing. – Derek Lewis May 24 '17 at 2Z29

2 de 2 15/11/21 13:09

You might also like