HEADSUP: change in root mount semantics for md* devices.

Poul-Henning Kamp phk at phk.freebsd.dk
Fri Nov 12 02:59:21 PST 2004


In message <1100108882.760.42.camel at kaiser.sig11.org>, Matteo Riondato writes:
>
>--=-XN0dFYtJCXGo+0VuS7Zi
>Content-Type: text/plain
>Content-Transfer-Encoding: quoted-printable
>
>Poul-Henning Kamp wrote:
>> We have had a hack which would mount the root filesystem R/W if
>> the device were named 'md*'.  As part of the vnode work I'm doing
>> I have had to remove this hack.
>>=20
>> People building systems which use preloaded MD root filesystems
>> may need to insert a "/sbin/mount -u -o rw /dev/md0 /" in their
>> /etc/rc scripts.
>
>Surely I'm missing something but I cannot get FreeSBIE running on Qemu anym=
>ore,
>and I think it's related to this change (cvsup'ed early afternoon CEST).
>I changed /etc/rc in the following way:
> --- /etc/rc.orig     Sun Oct 17 09:02:41 2004
>+++ /etc/rc    Wed Nov 10 18:27:19 2004
>@@ -52,6 +52,7 @@
>=20
> . /etc/rc.subr
>=20
>+mount -u -o rw /dev/md0 /=20


Actually the correct way is probably to put a proper line in /etc/fstab
and let the normal rc scripts deal with it like it was a normal disk.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-small mailing list