Discussion:
editing an iso image
gabriel
2002-11-16 01:20:16 UTC
Permalink
every time i go looking for how to do this in linux, i get posts telling me to
use windows so i can get winImage. all i want to do is edit a single text
file inside an iso and then burn the iso to cd. how do i do this?


--
gentoo-***@gentoo.org mailing list
Michael Boman
2002-11-16 06:32:00 UTC
Permalink
Post by gabriel
every time i go looking for how to do this in linux, i get posts telling me to
use windows so i can get winImage. all i want to do is edit a single text
file inside an iso and then burn the iso to cd. how do i do this?
unpack the ISO
mount it, using loop if needed, then copy the contents to a
directory on your harddrive. I prefer 'rsync' when I want to
make sure the files are exactly the same (preserve everything).

Edit the file
using your favorite editor

Create a new ISO
using mkisofs

Burn the new ISO
using cdrecord
--
Michael Boman
Security Architect, SecureCiRT (A SBU of Z-Vance Pte Ltd)
http://www.securecirt.com
Aaron Peterson
2002-11-16 14:23:46 UTC
Permalink
Post by Michael Boman
Post by gabriel
every time i go looking for how to do this in linux, i get posts telling me to
use windows so i can get winImage. all i want to do is edit a single text
file inside an iso and then burn the iso to cd. how do i do this?
unpack the ISO
mount it, using loop if needed, then copy the contents to a
directory on your harddrive. I prefer 'rsync' when I want to
make sure the files are exactly the same (preserve everything).
Edit the file
using your favorite editor
Create a new ISO
using mkisofs
Burn the new ISO
using cdrecord
What if the cd you want to copy was bootable?
aaron


--
gentoo-***@gentoo.org mailing list
Stephen Boulet
2002-11-16 15:30:47 UTC
Permalink
If it was bootable before you changed the text file, it should still be
bootable.
Post by Aaron Peterson
What if the cd you want to copy was bootable?
aaron
--
gentoo-***@gentoo.org mailing list
Evan Powers
2002-11-16 20:30:38 UTC
Permalink
Post by Stephen Boulet
If it was bootable before you changed the text file, it should still be
bootable.
Don't you have to explicitly specify an El Torito boot disk image on the
mkisofs commandline in order to make a bootable ISO?

So you'd have to extract the original El Torito image from the ISO you want to
edit and re-specify it when making the new ISO. The mount-via-loop-and-copy
part wouldn't copy the El Torito image since it doesn't correspond to a file
on the iso9660 filesystem IIRC.

I'm not exactly sure how you do that, but I'll bet it's rather simple. ;-)

Good luck.
Evan Powers

--
gentoo-***@gentoo.org mailing list
Aaron Peterson
2002-11-17 14:52:30 UTC
Permalink
Post by Evan Powers
Post by Stephen Boulet
If it was bootable before you changed the text file, it should still be
bootable.
Don't you have to explicitly specify an El Torito boot disk image on the
mkisofs commandline in order to make a bootable ISO?
So you'd have to extract the original El Torito image from the ISO you want to
edit and re-specify it when making the new ISO. The mount-via-loop-and-copy
part wouldn't copy the El Torito image since it doesn't correspond to a file
on the iso9660 filesystem IIRC.
I'm not exactly sure how you do that, but I'll bet it's rather simple. ;-)
Good luck.
Evan Powers
These were my thoughts exactly :) I would like to know if anyone has a
simple method for extracting the boot image though.
aaron


--
gentoo-***@gentoo.org mailing list
Jens-Uwe Mager
2002-11-18 15:46:14 UTC
Permalink
Post by Aaron Peterson
Post by Evan Powers
Post by Stephen Boulet
If it was bootable before you changed the text file, it should still be
bootable.
Don't you have to explicitly specify an El Torito boot disk image on the
mkisofs commandline in order to make a bootable ISO?
So you'd have to extract the original El Torito image from the ISO you
want to edit and re-specify it when making the new ISO. The
mount-via-loop-and-copy part wouldn't copy the El Torito image since it
doesn't correspond to a file on the iso9660 filesystem IIRC.
I'm not exactly sure how you do that, but I'll bet it's rather simple. ;-)
Good luck.
Evan Powers
These were my thoughts exactly :) I would like to know if anyone has a
simple method for extracting the boot image though.
I used the script attached below to extract boot information, I did
modify a few small details in the script so it works on ppc as well as
on intel machines.
--
Jens-Uwe Mager <pgp-mailto:62CFDB25>
George Shapovalov
2002-11-16 20:36:34 UTC
Permalink
Not quite, as you will have to pass some special options to mkisofs and give
it a boot-image as well. This is covered well enough by man mkisofs or
alternatively you can use xcdroast or one of many gui frontends.
BTW, since this discussion mentioned gentoo install CD in the beginning I
think I need to mention that it uses isolinux. You may find some info
searching through gentoo-dev archives or I think there was some discussion on
forums.

George
Post by Stephen Boulet
If it was bootable before you changed the text file, it should still be
bootable.
Post by Aaron Peterson
What if the cd you want to copy was bootable?
aaron
--
gentoo-***@gentoo.org mailing list
Brad Hards
2002-11-16 06:48:07 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by gabriel
every time i go looking for how to do this in linux, i get posts telling me
to use windows so i can get winImage. all i want to do is edit a single
text file inside an iso and then burn the iso to cd. how do i do this?
You can mount it using the loopback mount device. This is covered pretty well
in the man page for mount.

Post again if this doesn't solve your problem, explaining what you tried, what
you expected, and what happened, including any errors.

Brad

- --
http://linux.conf.au. 22-25Jan2003. Perth, Aust. I'm registered. Are you?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE91eonW6pHgIdAuOMRAn0xAJ9fk9ZHSURZ30dM40UAYRazBdFNhwCfYT4k
llx0ozEAeB8LwZlFlwQGR0Y=
=Redq
-----END PGP SIGNATURE-----


--
gentoo-***@gentoo.org mailing list
Loading...