Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Nov 2022 20:56:53 +0100
From:      =?utf-8?Q?Chlast=C3=A1k_Miroslav?= <mira@chlastak.cz>
To:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   loader.conf and rootdev option for memory disk
Message-ID:  <2E58D34B-F8C5-4291-B019-9E24F56DC3DF@chlastak.cz>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hi all,

In the /boot/defaults/loader.conf are these options for memory disk settings:

#mdroot_load="YES"              # The "mdroot" prefix is arbitrary.
#mdroot_type="md_image"         # Create md(4) disk at boot.
#mdroot_name="/boot/root.img"   # Path to a file containing the image.
#rootdev="ufs:/dev/md0"         # Set the root filesystem to md(4) device.


But - is this example for rootdev option still right? Because “ufs:/dev/md0” works fine on freebsd 12.1, but on freebsd 12.3 this does not work and generates error message:

Can’t determine root device


When I use this option with value “/dev/md0” or “md0” (even with this option commented out), so the machine boots correctly without any error.

—
Mira
[-- Attachment #2 --]
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi all,<div class=""><br class=""></div><div class="">In the /boot/defaults/loader.conf are these options for memory disk settings:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;" class="">#mdroot_load="YES"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # The "mdroot" prefix is arbitrary.</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;" class="">#mdroot_type="md_image" &nbsp; &nbsp; &nbsp; &nbsp; # Create md(4) disk at boot.</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;" class="">#mdroot_name="/boot/root.img" &nbsp; # Path to a file containing the image.</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;" class="">#rootdev="ufs:/dev/md0" &nbsp; &nbsp; &nbsp; &nbsp; # Set the root filesystem to md(4) device.</div></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;" class="">But - is this example for rootdev option still right? Because “ufs:/dev/md0” works fine on freebsd 12.1, but on freebsd 12.3 this does not work and generates error message:</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;" class="">Can’t determine root device</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;" class="">When I use this option with value “/dev/md0” or “md0” (even with this option commented out),&nbsp;so the machine boots correctly without any error.</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;" class="">—</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;" class="">Mira</div></body></html>
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2E58D34B-F8C5-4291-B019-9E24F56DC3DF>