PDA

View Full Version : What tool should I use to add/remove files or folders on a CD/DVD image?



PryGuy
July 23rd, 2007, 11:50 AM
Good day,
What tool should I use to add/remove files or folders on a CD/DVD image?
Thank you!

bernied
July 23rd, 2007, 01:04 PM
I don't know if there is a nice easy tool for this (sounds like a good idea though), but the old-fashioned way is something like [commands you need are in square brackets - you might need to adapt them]:

- create a mountpoint [sudo mkdir /mnt/tempiso]
- mount the .iso file [sudo mount -o loop /path/to/iso/file.iso /mnt/tempiso] (or just mount the cd/dvd)
- copy the lot to a read/write filesystem (hard disk probably) [sudo cp -avx /mnt/tempiso/* /some/new/location]
- make the changes [whatever you want to do]
- create a new .iso [mkisofs] - but I'm hazy on the details of this command, 'man mkisofs' should tell you what to do.

PryGuy
July 23rd, 2007, 02:24 PM
Thanks a lot! Rule, Britain! ;)