Subject: Re: Custom floppy - vnconfig...
To: David Laight <david@l8s.co.uk>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-install
Date: 09/23/2003 00:57:02
On Mon, Sep 22, 2003 at 11:10:02PM +0100, David Laight wrote:
> > Hi,
> >
> > I tried to mount a boot floppy image with vnconfig.
> >
> > But:
> >
> > root@server [/sys/bootimages] # vnconfig -c vnd0 boot1.fs
> > root@server [/sys/bootimages] # mount /dev/vnd0a /mnt
> > mount_ffs: /dev/vnd0a on /mnt: incorrect super block
> > root@server [/sys/bootimages] #
> >
> > Are those disks a "raw" format? How to bring my custom install kernel (VLB
> > board...) to that disk OR create my own one?
>
> They are 'ustarfs' - ie a filesystem that is actually a tar archive.
>
> To create one you need to:
> 1) build a kernel with space for a ramdisk
> 2) build the ramdisk
> 3) copy the ramdisk into the kernel
> 4) make the floppy image
>
> I'd look at what 'make snapshot' does when run in src/etc...
Or just what happens in distrib/i386/floppies/
Eventually just change sys/arch/i386/conf/INSTALL* to suit your needs, and
run make in distrib/i386/floppies/. Should give you bootable floppy images.
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 24 ans d'experience feront toujours la difference
--