LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-28-2004, 06:25 PM   #1
aesahaettr
Member
 
Registered: Jun 2003
Location: New Zealand
Posts: 74

Rep: Reputation: 15
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
 
Old 01-10-2005, 01:43 PM   #2
XaViaR
Member
 
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Rep: Reputation: 31
I was wondering the same thing...can someone please help.

Thanks,

xaviar
 
1 members found this post helpful.
Old 01-12-2005, 05:42 PM   #3
bdrake
Member
 
Registered: Aug 2004
Location: Montrose, CA
Distribution: Slackware, SuSE, OpenZaurus
Posts: 45

Rep: Reputation: 16
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. :-)

Last edited by bdrake; 01-12-2005 at 06:08 PM.
 
1 members found this post helpful.
Old 01-12-2005, 07:36 PM   #4
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
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.
 
1 members found this post helpful.
Old 08-30-2006, 08:19 PM   #5
Mig21
Member
 
Registered: Jan 2005
Posts: 226

Rep: Reputation: 35
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
 
1 members found this post helpful.
Old 11-16-2006, 07:51 PM   #6
Mithrilhall
Member
 
Registered: Feb 2002
Location: Massachusetts
Distribution: Debian (Lenny)
Posts: 286

Rep: Reputation: 30
Lightbulb

ISO Master...is a great app.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Write BIN/CUE ISO IMAGES? ProtoformX Linux - Software 4 01-17-2011 11:48 PM
Mounting ISO Images in Linux TomalakBORG Linux - Software 6 05-15-2005 06:03 PM
mounting bin/cue images without convert to iso? Moebius Linux - Software 1 12-05-2004 05:22 AM
problems mounting and unmounting iso images. Snerkel Linux - Software 5 08-21-2004 06:57 PM
Hi, Can I write files to mounted iso images? zhaoyoubing Linux - General 2 08-14-2003 12:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration