LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 07-14-2006, 01:58 AM   #1
linuxnewbie82
Member
 
Registered: Jul 2006
Posts: 36

Rep: Reputation: 15
Mounting an ISO Image & Editing it


HI

Can any one plz show me how to:

1. Mount my Fedora image ( FC_5i386 ), which is on my CD ROM onto a point on My FedorCore5
2. Enable Writing / Editing to it
3. Burning it back as an image???

thanks heaps

linuxnewbie.
 
Old 07-14-2006, 03:14 AM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
You'll need to be root to do most of this. Firstly, create a directory to mount it into:

Code:
mkdir /media/FC5
Then mount it:

Code:
mount -o loop FC5.iso /media/FC5
You now have a normal directory structure representing the ISO under /media/FC5. It behaves as any other directory. Read/write to/from it at will, the ISO is kept up-to-date as changes are made. In this respect, you can think of the ISO being just like another hard disk, but instead of being a physical disk it's stored in a single file instead.

When you're done, unmount it:

Code:
umount /media/FC5
And then to burn it (assuming this is a CD, not a DVD)

Code:
growisofs -V "Fedora Core 5" /dev/cdrom=FC5.iso
If it is a DVD, you'll want to do this instead:

Code:
growisofs --dvd-compat -V "Fedora Core 5" /dev/dvd=FC5.iso
Disclaimer: this is all from memory so I'm not certain about the syntax for growisofs but the rest should be good.

Last edited by cdhgee; 07-14-2006 at 03:15 AM.
 
Old 07-14-2006, 05:34 AM   #3
linuxnewbie82
Member
 
Registered: Jul 2006
Posts: 36

Original Poster
Rep: Reputation: 15
HI


thanks for that mate....that looks pretty simple....but for the fact that i wont allow me to delete any files from the mounted FC5 folder!!

wat next???

Krish.
 
Old 07-14-2006, 05:37 AM   #4
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Do

Code:
ls -l
in the mounted folder - do the files show up as read-only or read-write? Read-write will show up as -rw- or drwx, read-only as -r-- or dr--.
 
Old 07-14-2006, 05:45 AM   #5
linuxnewbie82
Member
 
Registered: Jul 2006
Posts: 36

Original Poster
Rep: Reputation: 15
hi

All the folders appear as read-write, but the files appear as read only!!

when i try to delete some RPM's from the RPM foler, it comes up saying : " Read only file system "

waiting for ur solution.

regards
 
Old 07-14-2006, 05:47 AM   #6
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
try doing

Code:
cd /media/FC5
chmod -R u+w *
This should recursively make everything read-write.
 
Old 07-14-2006, 05:48 AM   #7
linuxnewbie82
Member
 
Registered: Jul 2006
Posts: 36

Original Poster
Rep: Reputation: 15
also, tried a chmod ..but that dosent seem to do anything.....come up with a message saying : read only
 
Old 07-14-2006, 05:51 AM   #8
linuxnewbie82
Member
 
Registered: Jul 2006
Posts: 36

Original Poster
Rep: Reputation: 15
Just Copying one of all the error lines that i got...

chmod: changing permissions of `repodata/primary.xml.gz': Read-only file system

Still no luck!!!
 
Old 07-14-2006, 05:57 AM   #9
linuxnewbie82
Member
 
Registered: Jul 2006
Posts: 36

Original Poster
Rep: Reputation: 15
OR DO u think doing the following is a better Option???

cp -a /media/FC5 /tmp/
Make all changes in /tmp/FC5. ( this i'm able to modify successfully ), probably bcoz its no longer a image & is just a directory....

now i have trouble figuring out how to use the mkisofs command!!

please advice...
 
Old 07-14-2006, 06:06 AM   #10
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
The iso9660 filesystem is read-only. You will need to copy the files to another directory tree, make your changes and then burn a new image. You might want to read through the cdrom burning howto at http://www.tldp.org web site.
 
Old 07-14-2006, 09:47 AM   #11
linuxnewbie82
Member
 
Registered: Jul 2006
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks heaps for that mate

Have fixed it now....... have my own CD1 up & running....

u have been really helpful...

much appreciated..

have a gud weekend ahead

regards

newbie.
 
Old 07-17-2006, 08:09 AM   #12
kissme1
LQ Newbie
 
Registered: Dec 2005
Posts: 29

Rep: Reputation: 15
i didnt want to start a new thread so i am asking the question i have here....

is there anyway to mount a .bin or .cue image file onto fedora core 5??
 
Old 08-23-2006, 06:49 PM   #13
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
Has anyone found a an ISO editor that works under linux ?

As far as mkisofs is concerned, is it possible to include the boot code as well ? I am trying to edit one of the bootable linux CDs. If I mount the iso image on a directory and copy the contents to another directory then, use mkisofs, would it produce a bootable CD as the original ?
 
Old 08-25-2006, 08:44 AM   #14
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Rep: Reputation: 45
kissme1: I think you have to convert the bin/cue file to an iso. I've done it once before and it worked. I probably searched using: convert bin to iso
 
Old 09-02-2006, 10:47 AM   #15
kevkim55
Member
 
Registered: Dec 2005
Location: Edmonton
Distribution: BLFS, Gentoo
Posts: 353

Rep: Reputation: 32
What if there is no bin/cue file ?
 
  


Reply

Tags
burn, dvd, iso, loop, mount


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
editing iso images (mounting read-write?) aesahaettr Linux - Software 5 11-16-2006 07:51 PM
Editing ISO image Guignol Linux - Software 2 02-28-2006 03:27 PM
Mounting iso image batev Slackware 11 10-20-2005 09:24 AM
Mounting iso image chadturner Linux - Newbie 11 09-08-2005 10:28 AM
mounting ISO from an image true_atlantis Linux - Newbie 2 01-20-2004 10:29 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration