Skip site navigation (1)Skip section navigation (2)
Date:      12 Mar 2004 09:21:33 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Nathan Kinkade <nkinkade@ub.edu.bz>
Cc:        FreeBSD Mailing list <freebsd-questions@freebsd.org>
Subject:   Re: mount an ISO image on rw mode
Message-ID:  <44llm6m9hu.fsf@be-well.ilk.org>
In-Reply-To: <20040311144030.GC858@nkinkade.bmp.ub>
References:  <20040311103035.GA95376@ns2.wananchi.com> <20040311144030.GC858@nkinkade.bmp.ub>

next in thread | previous in thread | raw e-mail | index | archive | help
Nathan Kinkade <nkinkade@ub.edu.bz> 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...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44llm6m9hu.fsf>