LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   editing iso images (mounting read-write?) (https://www.linuxquestions.org/questions/linux-software-2/editing-iso-images-mounting-read-write-271314/)

aesahaettr 12-28-2004 06:25 PM

editing iso images (mounting read-write?)
 
Hi there,
I need to change a few files on an iso image, while retaining the boot sector and all that other stuff that i don't understand. So basically, I need someone to tell me why "mount -o loop,rw image.iso folder/" doesn't work (mount reckons it's mounted rw, but "rm file" says ro filesystem).

Or I need someone to tell me how to create an iso from a set of folders, while retaining the important boot information from my original iso.

Cheers

XaViaR 01-10-2005 01:43 PM

I was wondering the same thing...can someone please help.

Thanks,

xaviar

bdrake 01-12-2005 05:42 PM

You can do it under Windows with WinISO (www.winiso.com). I'm still looking for a way to do it under Linux; I'll post back if I find one.

--Barry

Edit: Here's what I found. The bad news is that there doesn't seem to be an easy extractor and rewriter like WinISO, but the good news is that it is pretty easy to do this with commands.
Type "mount -o loop /path/to/iso /mnt/iso" (/mnt/iso must be created if it doesn't exist).
cp -a /mnt/iso /tmp/iso
Make all your changes in /tmp/iso.
Use mkisofs to create the modified ISO from the /tmp/iso directory:
mkisofs -R -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o <new iso filename> /tmp/iso

NB: I just copied that mkisofs line from another post I found, and I haven't checked yet what all the options do. "man mkisofs" is left as an exercise for the reader. :-)

95se 01-12-2005 07:36 PM

Try changing the "mode", i.e. int he options try perhaps
mode=0777
This is specified in "man mount". Perhaps mount will only mount iso9660 fs as ro.

Mig21 08-30-2006 08:19 PM

it doesn't work because the iso filesystem driver that comes with the kernel is readonly. it is readonly because making changes to an iso on the fly would be ridiculously time and resource-consuming.

try out http://littlesvr.ca/isomaster/index.php

Mithrilhall 11-16-2006 07:51 PM

ISO Master...is a great app.


All times are GMT -5. The time now is 07:07 PM.