[NTLUG:Discuss] CD burning question
Rob Apodaca
rapodaca at raacc.com
Sat Jun 26 10:29:22 CDT 2004
> I had thought in the past that using a
> whole CD to burn just 50 Megs worth of docs was overkill, but now I know
> it has to be that way. That is, of course, unless I take those images
> and combine them to form 1 iso and then burn the CD. That's for another
> day.
It's acutally not that difficult to add stuff to an iso image. It
involves mounting the image, copying it, writing the new files, and then
creating the new iso image.
First, create suitable mount points (/iso and /iso2 for example):
$ mkdir /iso
$ mkdir /iso2
Mount the iso image to /iso (where cd_image.iso is the name of the
downloaded iso file):
$ mount -t iso9660 -o ro,loop=/dev/loop0 cd_image.iso /iso
The mounted iso image is read-only - make a copy of it so that it can be
written to;
Copy the contents of /iso to /iso2:
$ cp -r /iso/* /iso2/
Unmount the original iso image:
$ umount /iso
At this point, if you are combining two iso's you may need to mount the
second downloaded iso image and copy it's contents to /iso2 using above
method.
Create the new iso image:
$ mkisofs -r -o new_cd_image.iso /iso2/
Test the iso image before burning:
Make sure it's not too big for your blank cd:
$ ls -hl new_cd_image.iso
Mount it:
$ mount -t iso9660 -o ro,loop=/dev/loop0 new_cd_image.iso /iso
Look for your added files:
$ ls /iso
Unmount it
$ umount /iso
Burn the new cd (command line method below, or you can use x-cdroast or
whatever):
To find the device:
$ cdrecord -scanbus
Burn it (where x,x,x is obtained from scanbus):
$ cdrecord -v dev=x,x,x -data new_cd_image.iso
Enjoy!
More info about burning cd's is at:
http://tldp.org/HOWTO/CD-Writing-HOWTO.html
Cheers,
-Rob
More information about the Discuss
mailing list