LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Is it possible to add files to an ISO? (https://www.linuxquestions.org/questions/linux-general-1/is-it-possible-to-add-files-to-an-iso-439689/)

kornerr 04-28-2006 09:12 AM

Is it possible to add files to an ISO?
 
The problem is that I have msdos6.2.iso for floppy, win98_install_cd.iso for cdrom and IMG.img for hda. I use it in qemu. But when I boot from within floppy or cdrom qemu can't see my hda. So I want to add files of win98 to the end of msdos iso, then make it my IMG.img, and eventually boot from it and install win98 :)
Is there any way to do that?

Thanks.

oneandoneis2 04-28-2006 10:01 AM

IIRC, you can mount it using the loopback interface (mount -o bind - see the man page) and edit the iso to your heart's content.

But you should be able to get Qemu to recognise the hda - how are you starting it up?

kornerr 04-28-2006 10:06 AM

Code:

kornerr@kornerr:~$ qemu -hda win98.img -fda msdos6.2_floppy.iso -cdrom _win98_install_cd.iso -boot d
The problem is that install cd has no command.com :/ so nothing works without it. That's why I need to find a workaround.

Also, I'll try to edit ISO.

Thanks.

kornerr 04-28-2006 10:22 AM

Well, I can remove files as root user. But msdos.iso is only of 1.4M! How to increase its size?

Thanks.

haertig 04-28-2006 10:44 AM

Mount the iso as you're doing now. Then copy all the files/directories from the iso mountpoint to a new directory. Add the extra files you need to this new directory. Then create a NEW iso from the new directory.


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