Editing ISO images
Dave Gavin
dgavin at davegavin.com
Fri Aug 26 17:27:32 UTC 2005
On Fri, August 26, 2005 12:43 pm, Marcelo Magno T. Sales said:
> Hi, Dave
>
>> Mount it with the loop device, make changes as needed and umount.
>> Here's my script for mounting an iso, just pass it the name of the iso
>> file (and "mkdir /mnt/iso" before running this).
>>
>> cat isoMount
>> #!/bin/bash
>> echo "mounting $1 as /mnt/iso"
>> mkdir /mnt/iso 2>/dev/null
>> mount -t iso9660 -o loop ${1} /mnt/iso
>>
>> When you're done, cd out of it and "umount /mnt/iso"
>
> When mounting ISO file systems like this, they are mounted read-only. Is
> there a way to mount them read/write?
>
> Thanks,
>
> Marcelo
Oops, my bad. I would have sworn that I had used this to change an iso
previously, but it doesn't work. Even if you make it "-o rw,loop", it
still refuses to write to the image. It looks like you have to copy
everything off to a conventional (rw) filesystem, make your changes,
and then re-build a new iso9660 image with mkisofs. There is
information on the man page for mkisofs on how to make the iso bootable
with several differnt boot types: El Torito, sparc, generic, etc.
Sorry 'bout that chief,
Dave
More information about the users
mailing list