Mount ISO Image

Lea Gris lea.gris at noiraude.net
Wed Feb 27 15:37:17 UTC 2008


Le Cacciari a écrit :
> Il giorno mer, 27/02/2008 alle 09.20 -0500, Bart Silverstrim ha scritto:
>> Does anyone know one way or the other if you can acually use loop to 
>> mount an ISO image and write to it?  I thought that only worked if you 
>> were mastering an image to burn, not one that's turned into an ISO image 
>> yet..?
>>
> AFAIK, there is no way to do this :) the iso filesystem is inherently
> read-only (better, is marked as read-only once is finalized after
> writing to disk). Someone suggested to do it, I remarked that this
> wouldn't work and suggested use of iso-master. Someone else said that
> you could use the archive application to extract/edit/put back files,
> but I never tried. Another suggestion was to extract the files, edit
> them and then put them back creating a (new) iso immage. IIRC the latter
> is the method suggested by ubuntu for customizing install CDs.

Alternatively you could use UDF filesystem to make a ReadWrite Iso 
further burned on CD-R or use it directly on CDRW or DVDRW medias.

Prepare an iso file of 700MB:
dd if=/dev/zero bs=10240 count=70000 of=udfimage.iso

Create an UDF FileSystem on the iso:
mkudffs --lvid=my_udf_disk --media-type=cdrw --utf8 udfimage.iso

Mount the filesystem as a loop device:
sudo mount /pathto/udfimage.iso /pathto/mountpoint  -t udf -o loop,rw

Put/remove/edit files in there

unmount it when finished

dup it on a RO ReadOnly media as if it was a regular ISO.

If you have RW ReadWrite medias, then you should check pktcdvd setup and 
make changes directly on the media.

-- 
Léa Gris





More information about the ubuntu-users mailing list