Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Mountroot error при загрузке с USB флешки

    Scheduled Pinned Locked Moved Russian
    3 Posts 2 Posters 4.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      a_pio
      last edited by

      Помогите, пожалуйста, разобраться с автоматическим монтированием корневой фс.

      При загрузке pfsense с USB флешки (pfsense установлен на нее с загрузочного CD) получаю:

      –---------------------------------------------------------------------------------------------
      Trying to mount root from ufs:/dev/da0s1a
      ROOT MOUNT ERROR:
      If you have invalid mount options, reboot, and first try the following from
      the loader prompt:

      set vfs.root.mountfrom.options=rw

      and then remove invalid mount options from /etc/fstab.

      Loader variables:
      vfs.root.mountfrom=ufs:/dev/da0s1a
      vfs.root.mountfrom.options=rw

      Manual root filesystem specification:
       <fstype>: <device>Mount <device>using filesystem <fstype>eg. ufs:/dev/da0s1a
                            eg. cd9660:/dev/acd0
                            This is equivalent to: mount -t cd9660 /dev/acd0 /

      ?                  List valid disk boot devices
        <empty line="">Abort manual input

      После этого сообщения я монтирую корневую фс вручную.
      ufs:/dev/da0s1a
      И она монтируется!
      В /etc/fstab у меня прописано монтировать именно так!
      Что, не читается /etc/fstab при загрузке?
      У меня в /boot/ в конфиге (не могу сейчас подсмотреть название, там где много-много закоментированных переменных) тоже указано
      vfs.root.mountfrom="/dev/da0s1a"
      vfs.root.mountfrom.options="rw"

      Может быть сперва раздел на USB флешке определяется как какое-нибудь другое устройство, а спустя несколько секунд как da0s1a ?
      Или, может быть, информация о mountroot считывается откуда-нибудь из другого места?</empty></fstype></device></device></fstype>

      1 Reply Last reply Reply Quote 0
      • M
        mrc
        last edited by

        http://doc.pfsense.org/index.php/Boot_Troubleshooting

        в разделе
        Booting from USB

        kern.cam.boot_delay=10000

        должно помочь.

        1 Reply Last reply Reply Quote 0
        • A
          a_pio
          last edited by

          Спасибо! Я уже и сам разобрался… :-)
          Оказывается я был прав в своем предположении о времени, необходимом для определения USB флешки.

          Вот тут написано http://forum.pfsense.org/index.php?action=printpage;topic=32017.0

          The boot menu option to boot from USB does not change the boot device, it just inserts a 10-second delay into the boot process to allow USB devices to be fully detected before proceeding.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.