From owner-freebsd-questions@FreeBSD.ORG Fri Mar 12 06:21:34 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C873D16A4CE for ; Fri, 12 Mar 2004 06:21:34 -0800 (PST) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70FA243D3F for ; Fri, 12 Mar 2004 06:21:34 -0800 (PST) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.no-ip.com ([66.30.196.44]) by comcast.net (sccrmhc13) with ESMTP id <20040312142133016001kp11e>; Fri, 12 Mar 2004 14:21:33 +0000 Received: by be-well.no-ip.com (Postfix, from userid 1147) id 7065AE; Fri, 12 Mar 2004 09:21:33 -0500 (EST) Sender: lowell@be-well.ilk.org To: Nathan Kinkade References: <20040311103035.GA95376@ns2.wananchi.com> <20040311144030.GC858@nkinkade.bmp.ub> From: Lowell Gilbert Date: 12 Mar 2004 09:21:33 -0500 In-Reply-To: <20040311144030.GC858@nkinkade.bmp.ub> Message-ID: <44llm6m9hu.fsf@be-well.ilk.org> Lines: 35 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: FreeBSD Mailing list Subject: Re: mount an ISO image on rw mode X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: FreeBSD Mailing list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2004 14:21:34 -0000 Nathan Kinkade writes: > On Thu, Mar 11, 2004 at 01:30:35PM +0300, Odhiambo Washington wrote: > > Hello users, > > > > Perhaps I am just being stupid, doing a lot of things at the same time, > > thus losing it. > > Am I just dreaming by imagining that I can mount an ISO image with write > > access? > > > > I have done > > > > [root@ns2]#vnconfig /dev/vn0c /wananchi/FreeSBIE-1.0-i386.iso > > [root@ns2]#mount_cd9660 /dev/vn0c /freesbie > > > > This mounts the image in read-only mode. However, I would like to modify > > a few files on the image before writing it to a CD. > > > > The man page for mount says that I could use -o -w to achieve a write > > mode. Does this also apply to ISO iamages? I was thinking that once > > mounted, they should behave like regular files, no? > > > > -Wash > > I don't have an answer to this, but wanted to chime in because I have > had the same issue in the past. I had once heard a friend tell me that > he used to create ISO images in this very way in Linux by mounting an > ISO image on a (Linux) loop device and then copy files to the image. It > seems like it could be a flexible and convenient way to quickly create > an ISO image at random, but I've never been able to get FreeBSD to mount > and ISO image rw using either vnconfig or mdconfig. Maybe there are > some practical considerations that we are overlooking? The only way I can think of to do that would potentially re-write the entire ISO image on every write...