AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 786928
Accepted
codechimp
codechimp
Asked: 2016-06-15 07:08:13 +0800 CST2016-06-15 07:08:13 +0800 CST 2016-06-15 07:08:13 +0800 CST

ubuntu 16.04 fstab 因 nobootwait 而失败

  • 772

我只是全新安装 Ubuntu 16.04(替换 14.04),目的是移植大量工作 fstab 文件,以便挂载其他 JFS 磁盘/分区。但我似乎遇到了麻烦nobootwait。

例如,在 14.04 中工作的一个 fstab 条目是:

UUID=<uuid>  /storage jfs defaults,nodiratime,noatime,nofail,nobootwait  0 2

但在 16.04 中,它既不会在启动时挂载驱动器,也不会按照以下命令挂载:

sudo mount /storage

我确实安装了 jfsutils,并且我能够手动安装分区,即

sudo mount -t jfs /dev/sdX /storage

我发现这个dmesg

[   6.720171] jfs: Unrecognized mount option "nobootwait" or missing value

因此,以此为提示,当我nobootwait从 fstab 中删除该选项时,命令

sudo mount /storage 

工作正常。(我不知道启动时的情况,因为我目前正在通过 ssh 执行此操作,并且不想冒计算机无法启动的风险)。

显然,一种解决方案是放弃该nobootwait选项。但我不想那样做。也许 nobootwait 在 14.04 和 14.04 中从来没有工作过(我从来没有遇到过磁盘启动失败),只是忽略了这个错误,但我想要nobootwait.

Ubuntu 16.04 或 linux 内核是否发生了变化nobootwait?

boot
  • 4 4 个回答
  • 18579 Views

4 个回答

  • Voted
  1. Konstantin Pereiaslov
    2018-05-01T10:22:24+08:002018-05-01T10:22:24+08:00

    看起来需要设置 2 个相关选项来模仿 nobootwait 行为,取自systemd mount 手册页:

       nofail
           With nofail, this mount will be only wanted, not required, by
           local-fs.target or remote-fs.target. This means that the boot will
           continue even if this mount point is not mounted successfully.
       x-systemd.device-timeout=
           Configure how long systemd should wait for a device to show up
           before giving up on an entry from /etc/fstab. Specify a time in
           seconds or explicitly append a unit such as "s", "min", "h", "ms".
    

    因此将选项设置为nofail,x-systemd.device-timeout=1应该使系统在继续引导之前等待 1 秒以安装设备。

    • 16
  2. Best Answer
    Organic Marble
    2016-06-15T07:21:23+08:002016-06-15T07:21:23+08:00

    此选项似乎已被删除。如果您在顶部选择14.04 LTS ,则Ubuntu手册页包含fstab此文本:

    The  mountall(8)  program  that  mounts  filesystem  during  boot  also
     recognises additional options that the ordinary mount(8) tool does not.
    These  are:  ``bootwait''  which  can  be applied to remote filesystems
    mounted outside of /usr or /var, without which  mountall(8)  would  not
    hold up the boot for these; ``nobootwait'' which can be applied to non-
    remote filesystems to explicitly instruct mountall(8) not  to  hold  up
    the boot for them; ``optional'' which causes the entry to be ignored if
    the filesystem type is not known  at  boot  time;  and  ``showthrough''
    which  permits  a mountpoint to be mounted before its parent mountpoint
    (this latter should be used carefully, as it can cause boot hangs).
    

    如果您在顶部选择16.04 ,则您获得的页面版本中不存在此段落。

    • 13
  3. cheshirekow
    2017-06-23T08:37:00+08:002017-06-23T08:37:00+08:00

    如果您只是在寻找如何nobootwait在 16.04 中复制行为,那么您正在寻找的选项似乎是nofail. 来自http://manpages.ubuntu.com/manpages/zesty/man5/systemd.mount.5.html

       nofail
           With nofail, this mount will be only wanted, not required, by
           local-fs.target or remote-fs.target. This means that the boot will
           continue even if this mount point is not mounted successfully.
    
    • 10
  4. Zigmund Ozea
    2017-04-11T17:52:42+08:002017-04-11T17:52:42+08:00

    从 Ubuntu 16.04 开始,默认的 init 系统是 systemd,它取代了 mountall。 http://manpages.ubuntu.com/manpages/zesty/man5/systemd.mount.5.html提供了可能消除 nobootwait 需要的新选项。

    • 0

相关问题

  • grub 菜单中的“恢复”选项是什么?

  • 用户如何避免在启动时输入密码?[关闭]

  • 更改 Wubi 的启动顺序

  • 如何在 Ubuntu 启动时显示或隐藏启动消息?

  • 如何避免启动时出现“S to Skip”消息?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve