From owner-freebsd-questions Thu Oct 31 11: 1: 3 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E65FA37B401 for ; Thu, 31 Oct 2002 11:01:00 -0800 (PST) Received: from mailgw.servicefactory.se (mailgw.servicefactory.se [192.71.33.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6B0943E75 for ; Thu, 31 Oct 2002 11:00:58 -0800 (PST) (envelope-from daniell@servicefactory.se) Received: from ark.servicefactory.se (ark.servicefactory.se [192.71.33.5]) by mailgw.servicefactory.se (8.11.6/8.11.6) with ESMTP id g9VJ0uL07820 for ; Thu, 31 Oct 2002 20:00:56 +0100 (CET) Received: from localhost (ark.servicefactory.se [192.71.33.5]) by ark.servicefactory.se (8.11.6/8.11.6) with ESMTP id g9VJ0tf10143 for ; Thu, 31 Oct 2002 20:00:55 +0100 (CET) Subject: Booting with a MFS filesystem From: Daniel Larsson To: freebsd-questions@FreeBSD.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-izZUjVKXihnrWw+NPgv/" X-Mailer: Ximian Evolution 1.0.8 Date: 31 Oct 2002 20:03:01 +0100 Message-Id: <1036090981.31996.50.camel@daniell.servicefactory.se> Mime-Version: 1.0 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-izZUjVKXihnrWw+NPgv/ Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I'm trying to boot from a flash with the file system loaded into an MFS filesystem. This is what the /boot/loader.rc looks like: --- load /kernel load -t mfs-root /mfsroot autoboot 0 --- The flash boot partition contains these files / kernel.gz mfsroot.gz boot/ loader loader.rc I managed to get this to work the other day, by constructing the file systems for the flash "by hand", but now I'm suddenly stumped when trying to rebuild. Loading and starting the kernel works ok, but after initial boot, this happens: ... sio0: type 16550A, console sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ad0: 245MB [980/16/32] at ata0-master BIOSPIO Manual root filesystem specification: : Mount using filesystem eg. ufs:/dev/da0s1a ? List valid disk boot devices Abort manual input mountroot> Obviously it doesn't like to mount the MFS as root, but so far I haven't been able to figure out exactly why. The MFS was constructed basically like this: dd if=3D/dev/null of=3Dmfsroot ... vnconfig -e -s labels vn2 mfsroot disklabel -w -B -b boot1 -s boot2 vn2 auto newfs -o space -m 1 /dev/vn2c # mount and populate This is more or less what /usr/src/release/scripts/doFS.sh does, I've mimicked the way the boot floppy works. Selected parts from the kernel config file: options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this= !] options SOFTUPDATES #Enable FFS soft updates support options MFS #Memory Filesystem options MD_ROOT #MD is a potential root device pseudo-device md # Memory "disks" Anyone have any obvious things I must have missed? --=20 Daniel Larsson Service Factory AB =C5rsta=E4ngsv=E4gen 17 Phone: +46 70 559 41 61 --=-izZUjVKXihnrWw+NPgv/ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA9wX5l8CJVUq/zOt8RAh0kAJ9i+wrI+/l0rc4wtApwfLshWpS0AACfXTSX CSEkoPadjl0tsDNWXwa2flU= =AryY -----END PGP SIGNATURE----- --=-izZUjVKXihnrWw+NPgv/-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message