*BSD News Article 97236


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!sol.net!spool.mu.edu!newsspool.sol.net!howland.erols.net!news.mathworks.com!mvb.saic.com!pacifier!news.pacifier.com!deraadt
From: deraadt@theos.com (Theo de Raadt)
Newsgroups: comp.unix.bsd.netbsd.misc,comp.unix.bsd.openbsd.misc
Subject: Re: Source to have ffs/ufs-CD burned ?
Date: 06 Jun 1997 11:55:25 GMT
Organization: OpenBSD
Lines: 50
Message-ID: <DERAADT.97Jun6055525@zeus.pacifier.com>
References: <glen_stewart-0406971151310001@stewart-3.pnet.msen.com>
	<5n6933$6fg@innocence.interface-business.de>
NNTP-Posting-Host: zeus.theos.com
In-reply-to: j@ida.interface-business.de's message of 5 Jun 1997 11:48:51 GMT
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.netbsd.misc:6080 comp.unix.bsd.openbsd.misc:132

In article <5n6933$6fg@innocence.interface-business.de> j@ida.interface-business.de (J Wunsch) writes:

   glen_stewart@associate.com (Glen Stewart) wrote:

   > Is anyone out there equipped to burn CD-R media using the BSD UFS/FFS
   > format instead of ISO9660?

   What's magic with it?  Filesystem generation (mkisofs), and actual
   CD-R burning are divided anyway.  So what prevents you from creating a
   FFS image, and burn this one onto a CD-R?

Glen, it's easy; I do things like this every day.  In OpenBSD 2.1, you
would do it _something_ like this:

	# Say a 160MB filesystem?
	dd if=/dev/zero of=image bs=1024k count=160

	vnconfig -v -c svnd0 image
	mount /dev/svnd0a /mnt

	# fill /mnt with whatever you want, ie. hahaha
	setenv DESTDIR /mnt; cd /usr/src/etc; make release

	# want to make it bootable?
	cp /usr/mdec/boot /mnt/boot
	/usr/mdec/installboot -v /mnt/boot /usr/mdec/bootxx /dev/rsvnd0c

	# You might want a disklabel on it; if you do not OpenBSD 2.1
	# will see that it is a CD9660 filesystem and make a nice fake
	# disklabel for you. It spoofs.
	disklabel -w svnd0 make-a-nice-disktab-entry-for-it

	umount /mnt
	vnconfig -u svnd0

That would make a bootable UFS filesystem containing your system.
Oops, no kernel! :-) Anyways, kind of bizzare I guess because you
could never mount it read-write!

I've been having much more fun though by making a single CD that boots
directly into the install program on the i386 AND sparc AND arc
machines (and another single CD that boots directly into the install
program on the alpha).  This is a fair bit more difficult than what
you want to do.

It's really cool to see.
--
This space not left unintentionally unblank.		deraadt@openbsd.org
www.OpenBSD.org -- We're fixing security problems so you can sleep at night.
(If it wasn't so fascinating I might get some sleep myself...)