Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If I mount an iso image, make some changes to it, and unmount it.... Is it still a valid .iso image? can I still burn it onto a cd w/ the same functionality as before, or do I need to do mkisofs on it again?
Is there any way to change this? I would find it incredibly helpful to be able to mount an ISO image of a *ahem* certain type of *ahem* CD so that I can add a text file that contains *ahem* certain serial informations *ahem*.
As was said before most of the filesystems on CDs are designed to be read-only. Ignoring the questionable ethics, I will assume this is for software the you legitimately own and want a working copy for. Being a programmer who makes his living selling software I have strong opinions on the subject.
That said, why not just burn your copy and place the serial # on the label?
Chances are adding a file and creating a new iso will be no more harmful to the copy than cereating the iso itself. ISO images do not specify the physical topology of the end result.
If the software is designed to a specific physical topology then a copy from an iso image would not be valid, you would need to do a raw write from a manufactured CD.
If the software is not designed for such copy protections then (purposely flawed data, specific file topology, etc) adding a file and creating a new image will not hurt anything.
EDIT: To clarify for the original poster, no it can not be done for most iso file systems. I could be wrong though.
every tried making another iso of just the text file and appending it to a cd? Or do you just want the iso as one file, so "you" can download it over the "L"AN?
"I" am not trying to send anything over a "L"AN.... I have simply made a boot cd with a program on it to install some packages.... It doesn't work right, so I need to fix it. I was wondering if I could do that without having to copy it all over to a directory again.
what do you mean by making an iso of the text file and appending it to the cd... how would you do that?
adam_boz, wasn't trying to insinuate anything dude, I was simply reacting to one of the messages in the thread before I realized it was not from you.
That said I did a quick scan of the man page for mkisofs and came up with this:
-M path
or
-M device
Specifies path to existing iso9660 image to be merged.
The alternate form takes a SCSI device specifier that
uses the same syntax as the dev= parameter of cdrecord.
The output of mkisofs will be a new session which
should get written to the end of the image specified in
-M. Typically this requires multi-session capability
for the recorder and cdrom drive that you are attempt-
ing to write this image to. This option may only be
used in conjunction with the -C option.
This is intended for multisession disks but it might do what you want.
Edit: But if you need to modify an existing file then copying the dir tree and creating a new iso is likely necessary.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.