LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Write ISO-image to free space on non-rewritable CD/DVD with opened multisession? (https://www.linuxquestions.org/questions/linux-general-1/write-iso-image-to-free-space-on-non-rewritable-cd-dvd-with-opened-multisession-903230/)

Midnight Vampire 09-15-2011 03:07 PM

Write ISO-image to free space on non-rewritable CD/DVD with opened multisession?
 
Hello.

Can I ask, if it is possible to write an ISO-image to free space on non-rewritable CD/DVD with opened multisession?

I mean, that, for example, I have non-rewritable DVD with 5Gb data on it (session 1) and multisession. 3 Gb on this DVD is free. And I also have 2Gb .iso image. I do not need data on DVD (session 1), I just want to use free space on it and burn there my 2Gb image... Is it possible? If yes, how/using which software. If no - why?

Thank You in advance.

diegoa 09-15-2011 08:40 PM

Yes. As long as the medium is still open and with enough space. HOWEVER, I must add that a .iso file is a disk image and it will probably try to copy itself unto specific parts of the disk (i.e. if it's bootable, it will try to write to the boot sector). This is not a problem if you have a re-writable medium, but since you don't, try the following to avoid any problems.


First you mount the .iso file to the cdrom device. Let's call the file "my2Gb.iso".
sudo mount -o loop my2Gb.iso /dev/cdrom

Optional: If you are uncomfortable or unsure about the cdrom, then make a directory and mount my2Gb.iso to it.
mkdir /home/USERNAME/myiso
sudo mount -o loop my2Gb.iso /home/USERNAME/myiso

Then insert your medium (DVD), launch whichever application you use to burn stuff (k3b, brasero).
Locate the files, add them, and let it burn.

Midnight Vampire 09-16-2011 03:46 AM

Super! Thank You. So it will allow to "unpack" .iso and write files to multisession DVD.

Can I also ask, what will happen if I need to write bootable .iso image? Will it work if I just copy files from image to session2 on the disk?

knudfl 09-16-2011 04:26 AM

Bootable .iso ..
http://www.asylumnation.com/blogs/am...post-2775.html

Something like ...
Code:

mkisofs -o /tmp/new.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -J -R -V disks .


All times are GMT -5. The time now is 01:01 AM.