LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Mounting an ISO Image & Editing it (https://www.linuxquestions.org/questions/fedora-35/mounting-an-iso-image-and-editing-it-463906/)

linuxnewbie82 07-14-2006 01:58 AM

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.

cdhgee 07-14-2006 03:14 AM

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.

linuxnewbie82 07-14-2006 05:34 AM

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.

cdhgee 07-14-2006 05:37 AM

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--.

linuxnewbie82 07-14-2006 05:45 AM

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

cdhgee 07-14-2006 05:47 AM

try doing

Code:

cd /media/FC5
chmod -R u+w *

This should recursively make everything read-write.

linuxnewbie82 07-14-2006 05:48 AM

also, tried a chmod ..but that dosent seem to do anything.....come up with a message saying : read only

linuxnewbie82 07-14-2006 05:51 AM

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!!! :(

linuxnewbie82 07-14-2006 05:57 AM

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...

jschiwal 07-14-2006 06:06 AM

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.

linuxnewbie82 07-14-2006 09:47 AM

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.

kissme1 07-17-2006 08:09 AM

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??

kevkim55 08-23-2006 06:49 PM

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 ?

Jongi 08-25-2006 08:44 AM

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

kevkim55 09-02-2006 10:47 AM

What if there is no bin/cue file ?


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