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>

next in thread | raw e-mail | index | archive | help

--Apple-Mail=_3A7CEF12-6CD0-48EF-B7AE-B9193C5F13FD
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi all,

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

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


But - is this example for rootdev option still right? Because =
=E2=80=9Cufs:/dev/md0=E2=80=9D works fine on freebsd 12.1, but on =
freebsd 12.3 this does not work and generates error message:

Can=E2=80=99t determine root device


When I use this option with value =E2=80=9C/dev/md0=E2=80=9D or =
=E2=80=9Cmd0=E2=80=9D (even with this option commented out), so the =
machine boots correctly without any error.

=E2=80=94
Mira=

--Apple-Mail=_3A7CEF12-6CD0-48EF-B7AE-B9193C5F13FD
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

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

--Apple-Mail=_3A7CEF12-6CD0-48EF-B7AE-B9193C5F13FD--



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