From owner-freebsd-stable Sat Dec 21 15:59:18 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA29637B401 for ; Sat, 21 Dec 2002 15:59:16 -0800 (PST) Received: from magic.adaptec.com (magic.adaptec.com [208.236.45.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A18943EDA for ; Sat, 21 Dec 2002 15:59:16 -0800 (PST) (envelope-from scott_long@btc.adaptec.com) Received: from redfish.adaptec.com (redfish.adaptec.com [162.62.50.11]) by magic.adaptec.com (8.11.6+Sun/8.11.6) with ESMTP id gBLNtRj13719; Sat, 21 Dec 2002 15:55:27 -0800 (PST) Received: from btc.btc.adaptec.com (btc.btc.adaptec.com [10.100.0.52]) by redfish.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id PAA01045; Sat, 21 Dec 2002 15:55:16 -0800 (PST) Received: from btc.adaptec.com (hollin [10.100.253.56]) by btc.btc.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id QAA00643; Sat, 21 Dec 2002 16:55:13 -0700 (MST) Message-ID: <3E04FEB4.2000105@btc.adaptec.com> Date: Sat, 21 Dec 2002 16:52:20 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2b) Gecko/20021216 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Edwin Groothuis Cc: dalroi@solfertje.student.utwente.nl, stable@freebsd.org Subject: Re: Writing to ISO-images mounted as vnodes? References: <20021221212903.0B80E380@solfertje.student.utwente.nl> <20021221220646.GW930@k7.mavetju> In-Reply-To: <20021221212903.0B80E380@solfertje.student.utwente.nl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Edwin Groothuis wrote: > On Sat, Dec 21, 2002 at 10:13:10PM +0100, > dalroi@solfertje.student.utwente.nl wrote: > > >While I was thinking how to make a bootable DOS-CD (the floppies for > >sale now just aren't as reliable as they used to be), I thought of the > >following strategy: > > > > - copy the ISO-image of my Win98 install-CD (AFAIK that's legal if you > > own the CD). > > - configure the image as a vnode (vnconfig). > > - mount the vnode (mount_cd9660). > > - remove the files that are not needed (the ones that install Win98) > > from the mounted vnode; just leaving a DOS boot-CD with just a little > > more useful utilities than would fit on a floppy... > > > >Unfortunately, mounting the vnode as cd9660 mounts it read-only, and > >I couldn't find a way to mount it "rw" (-o rw doesn't seem to help). > > > I was thinking about something similair a couple of weeks ago, to > make it easy for me to arrange files on a cdrom ISO image. Unfortunatly > the write-routines for the cd9660 driver are non-existent. > > Did sound nice, just create a 650Mb file, mount it, copy some files > into it, unmount it and ready to burn. > > Edwin > cd9660 isn't really meant to be a randomly-writable filesystem. I'm sure there implementations out there that let you write to existing filesystems, but my guess is that they are limited by the nature of cd9660. That said, it's relatively easy to make a DOS-boot cd. Boot up Win98, go to the Add/Remove control panel, adn click around until you get to the part where it allows you to create an 'Emergency Recovery floppy' or some such. Have it generate that floppy, edit the contents of the floppy to suit your taste, then dd the floppy to image file. Take that image file and run it through mkisofs to generate an iso9660 image (you'll want to look up the options for making an 'El Torito' bootable image), then burn the image. Not quite as graceful as what you're looking for, but it gets the job done. Scott To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message