Subject: Re: mounting installation/floppy/boot-big.fs
To: Jeremy C. Reed <reed@reedmedia.net>
From: Luke Mewburn <lukem@NetBSD.org>
List: netbsd-help
Date: 01/03/2004 12:21:28
--6RSemckJUp/nCuHD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Jan 02, 2004 at 04:16:20PM -0800, Jeremy C. Reed wrote:
  | What can I use to mount the i386/installation/floppy/boot-big.fs
  | installation image?
  |=20
  | I tried:
  |=20
  |  $ sudo vnconfig -t floppy288 -v -c /dev/vnd0d i386/installation/floppy=
/boot-big.fs
  |  /dev/vnd0d: 2949120 bytes on i386/installation/floppy/boot-big.fs usin=
g geometry 512/36/2/80
  |  $ sudo mount /dev/vnd0a /mnt
  |  mount_ffs: /dev/vnd0a on /mnt: incorrect super block
  |=20
  | It seems like I have done this before.

It's not an FFS image, it's a bootable file system image, comprising of:
	* 8KB of boot blocks (ustarfs)
	* ustarfs (tar file) containing
		boot
		USTAR.volsize.NNNN	(metadata for boot to use)
		netbsd			(gzipped kernel)
The netbsd kernel contains an embedded file system which is mounted as `/'.

To extract the kernel, you need to:
    *	Extract the tarfile that's 8KB into boot-big.fs
		dd if=3Dboot-big.fs of=3Dboot-big.tar bs=3D8k skip=3D1
	Multi-volume images need a bit more work.
	See src/distrib/common/buildfloppies.sh for more info.

    *	Extract the kernel from the tarfile
		pax -r -f boot-big.tar netbsd
		mv netbsd netbsd.gz
		gunzip netbsd.gz

To extract the file system you'd need to use
	mdsetimage -x netbsd image.ffs
unfortunately that requires "netbsd" to be unstripped, which it is not :(


Hope that was useful,
Luke.

--6RSemckJUp/nCuHD
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD4DBQE/9hkYpBhtmn8zJHIRAnvIAJ47ei78qjh0dadeYkkx3FHa98v3IwCUCqrF
GOth++prXAXDNw4lnv5ZJg==
=XSoh
-----END PGP SIGNATURE-----

--6RSemckJUp/nCuHD--