大网数据广告活动
服务器运维问答

Continue boot with offline fstab disk (linux/systemd)

· 52CE 我爱测

During boot, with pre-systemd versions of Ubuntu server (eg. 14.04), if a non-critical fstab disk was offline, the system would wait to mount the disk (30s iirc), timeout and continue booting. Since upgrading through 16.04 to Ubu…

问题原文

原帖链接 · sebt · CC BY-SA 4.0

During boot, with pre-systemd versions of Ubuntu server (eg. 14.04), if a non-critical fstab disk was offline, the system would wait to mount the disk (30s iirc), timeout and continue booting.

Since upgrading through 16.04 to Ubuntu 18.04, thanks to systemd's dependencies I presume, a missing fstab disk stops the boot process resulting in the "Emergency mode... Press Enter for Maintenance" prompt at boot time.

  1. Is there a way to change this behaviour by default? Ie. simply continue booting or an option to flag disks as non-critical?
  2. Failing that, is there a straightforward systemctl command to 'continue booting ignoring missing disk' from maintenance?

已采纳解答

原帖链接 · HBruijn · CC BY-SA 4.0

In the /etc/fstab entries for your mounts you can add systemd specific options, including the nofail option will instruct systemd that the boot can continue without waiting for the mount unit and regardless whether the mount point can be mounted successfully.

You can add the options x-systemd.device-timeout and or x-systemd.mount-timeout to customize time-outs.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-04-10)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。