Burning a data CD

Dave Andruczyk djandruczyk at yahoo.com
Wed Sep 10 22:58:42 EDT 2003


mkisofs -J -o cdimage.iso ~/Documents

 The above makes an ISO image of the ~/ (home dir) Documents folder.  the
contents of the Documents folder will show up on the root directory of the
cdrom..  The "-J" argument makes the cd image in joliet format which preserves
long filenames for windoze...

Before you burn it should mount the image you created and make sure it looks
the way you want.  To do so, run "mount cdimage.iso /mnt/loop -oloop" (you
should be root to do this..)  Make sure /mnt/loop exists (you could mount it
anywhere,  but having /mnt/loop around is handy just for this purpose.)
Everything under /mnt/loop will look exactly how the CD will after you burn it
to a physical disc below.    After you're done checking the mounted image, cd
out of the folder (/mnt/loop) to someplace else (home dir is a smart choice),
make sure you unmount /mnt/loop (umount/mnt/loop) and then follow up with the
burn command below...

example:
cdrecord -v -speed=(your CD burn speed), -data -dev=x,y,z (see below),
cdimage.iso

chaneg the speed line to use the speed at which you wantto write at,  I have a
12x burner, so I use 12 here...  You can use lower numbers if you want. (like
if you have media that isn't rated for the speed of your drive (4x rated media
might wobble if you try to spin it at 12x and cause a coaster...)

x,y,z are the SCSI port, ID, and LUN (logical unit number, usually 0 in 99% of
most peoples systems)

To find out what your burner is at, run "cdrecord -scanbus" the output will
look similar to below:


dave at shrapnel dave $ cdrecord -scanbus
Cdrecord 2.01a14 (i686-pc-linux-gnu) Copyright (C) 1995-2003 Jörg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
scsibus0:
        0,0,0     0) 'FUJITSU ' 'MAG3182L SUN18G ' '1111' Disk
        0,1,0     1) *
        0,2,0     2) 'FUJITSU ' 'MAG3182L SUN18G ' '1111' Disk
        0,3,0     3) *
        0,4,0     4) 'FUJITSU ' 'MAG3182L SUN18G ' '1111' Disk
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
scsibus1:
        1,0,0   100) *
        1,1,0   101) *
        1,2,0   102) *
        1,3,0   103) *
        1,4,0   104) 'GENERIC ' 'CRD-BP3         ' '1.03' Removable CD-ROM
        1,5,0   105) 'CREATIVE' 'DVD-RAM RAM1216S' '1311' Removable CD-ROM
        1,6,0   106) *
        1,7,0   107) *


My burner's "dev=" line would use 1 for "x", 4 for "y" and 0 for "z",  so for
my system my command to burn the cd would be 

cdrecord -v -speed=12 -data -dev=1,4,0 cdimage.iso

If you have a drive that supports "BurnProof" or "BurnFree",  add
"-driveropts=burnproof" after the "-data" part, if not don't add that..


Your ID of your drive is probably different, adjust the above command to taste.

It sounds like a lot as once,  but once you've done it a couple times, it boils
down to two commands and is pretty easy from the command line. (I prefer this
way over a gui, unless I'm burning an audio CD....)



--- Asheville Joe <josephj at main.nc.us> wrote:
> I want to make a CDROM of everything in $HOME/Documents in a format that 
> Windoze can read.   Individual files will all read in OOo or M$ Office.  
> I've never done it before.  I need it to be recursive (handle 
> subdirectories).  What's the easiest way to do this under Mandrake 9.1?
> 
> I tried X-CD-Roast, and got as far as selecting the Documents directory, 
> but couldn't figure out how to tell it to get all the files and 
> subdirectories.
> 
> Thanks.
> 
> -------------------------------------
> "Everything you've learned in school as 'obvious' becomes less and less
> obvious as you begin to study the universe. For example, there are no solids
> in the universe. There's not even a suggestion of a solid. There are no
> absolute continuums. There are no surfaces. There are no straight lines."
> --R. Buckminster Fuller (1895 - 1983)
> 
> 


=====
Dave J. Andruczyk

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



More information about the nflug mailing list