From owner-freebsd-questions@FreeBSD.ORG Fri Jul 13 11:17:25 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AEB0E16A401 for ; Fri, 13 Jul 2007 11:17:25 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from pizzabox.cyberleo.net (alpha.cyberleo.net [198.145.45.10]) by mx1.freebsd.org (Postfix) with ESMTP id 74E8313C478 for ; Fri, 13 Jul 2007 11:17:25 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: (qmail 52557 invoked from network); 13 Jul 2007 10:49:18 -0000 Received: from adsl-75-3-112-33.dsl.chcgil.sbcglobal.net (HELO ?172.16.44.14?) (cyberleo@cyberleo.net@75.3.112.33) by alpha.cyberleo.net with ESMTPA; 13 Jul 2007 10:49:18 -0000 Message-ID: <46975929.8070005@cyberleo.net> Date: Fri, 13 Jul 2007 05:50:58 -0500 From: CyberLeo Kitsana User-Agent: Thunderbird 2.0.0.4 (X11/20070604) MIME-Version: 1.0 To: FreeBSD Questions References: <20070712205321.GA42450@slackbox.xs4all.nl> In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: Making a mounted ISO image of a CD-ROM writable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2007 11:17:25 -0000 Paul Hoffman wrote: > At 10:53 PM +0200 7/12/07, Roland Smith wrote: >> On Thu, Jul 12, 2007 at 12:38:10PM -0700, Paul Hoffman wrote: >>> Greetings again. I want to make an ISO image of the FreeBSD >>> distribution >>> with a boot.config file that contains "/boot/loader -h". I have the ISO >>> image as a file on my hard drive, and have mounted it on /mnt: >>> >>> mdconfig -a -t vnode -f /path/to/my/bootable.iso -u 0 >>> mount -w -t cd9660 /dev/md0 /mnt >>> >>> However, when I try to create files on /mnt, I get: >>> >>> -su: boot.config: Read-only file system >>> >>> How do I make it so that I can write into /mnt so that I can then later >>> save those back to the ISO image? >> >> Try the sysutils/isomaster port. > > Er, thanks, but I am running on a text-only system. Looks nice, however. > > Other thoughts? I would hope this would be as easy as "run this program > to change the image to read-write". Due to the way iso9660 (cd) filesystems are arranged, they cannot be written to after they are created. The easiest option would be to copy all the files to a directory on your hard disk, make the required changes, and use mkisofs to regenerate a new iso9660 filesystem. This will likely require more than a cursory perusal of mkisofs(8), given that you wish to create a bootable CD. -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Furry Peace! - http://wwww.fur.com/peace/