I would first check how much room the directory uses:
# How much used drive space in a directory
du -sh /path/to/directory
Make the iso and check the resulting size. cdrecord should warn you it is too big to fit to the cd and refuse to do it if too large.
Here are some notes I have collected about CD and iso stuff.
How about CD copying, ripping and burning? I can't figure it out.
# CD burning copying ripping info
Is it configured and what is the device? Command this to find out:
cdrecord -scanbus
# Recomended GUI front ends for CD burner
XCDRoast
K3b - CD/DVD Kreator for KDE
Adding an IDE CD-Writer to Linux
Linux DVD HOWTO
CD Writing HOWTO
Burning CDs on Linux
# Burn an ISO to disk
cdrecord -v speed=<burning speed> dev=<your device> /path/to/foo.iso ; eject
cdrecord -v speed=8 dev=0,0,0 /home/fancy/iso/Windows/Win2KUpgrade.iso;eject
cdrecord -v speed=8 dev=0,0,0 /home/fancy/iso/Windows/gnuwinII_August_12_2004.iso;eject
cdrecord -v speed=8 dev=0,0,0 /home/fancy/iso/Windows/gnuwinII_bonus_August_12_2004.iso;eject
# New command for kernel 2-6?
cdrecord -v speed=8 dev=ATAPI:1,1,0 /home/fancy/gnuwinII_August_12_2004.iso ; eject
# Burn from disk to disk
cdrecord -v dev=<your device> speed=<burning speed> -isosize /dev/cdrom ; eject
# ISO information
isoinfo -i -d /dev/cdrom
# Generate an ISO from a directory.
mkisofs -vrTJUV "Label" -o foo.iso /path/to/directory
mkisofs -vrTJUV "Games" -o Games.iso /pub/downloads/WindowsStuff/Games
mkisofs -vrTJUV "Downloads" -o downloads.iso /pub/dlcd
# Generate an ISO from a CD
dd if=/dev/cdrom of=foo.iso
# cdparanoia - search for a drive with reporting of autosense:
cdparanoia -vsQ
# Rip a complete audio CD with cdparanoia
cdparanoia -B "1-";eject
# Convert wav files to oggvorbis
oggenc somefile.wav
Linux MP3 CD Burning mini-HOWTO
# Convert mp3 to wav with lame
for i in *.mp3; do lame --decode $i `basename $i .mp3`.wav; done
# Burn a CD from wav files
cdrecord -v -audio -pad speed=<burning speed> dev=<your device> /path/to/*.wav;eject
cdrecord -v -audio -pad speed=8 dev=0,0,0 /home/fancy/recordings/*.wav;eject
# Copy CD using cdrdao
cdrdao read-cd --device <your device> --read-raw --datafile mydata.bin -v 99 mydata.cue
cdrdao write --device <your device> --overburn -v 99 --speed <burning speed> mydata.cue
# Erase a CDRW
cdrecord -v dev=<your device> speed=<burning speed> blank=fast
# Mount CD iso images as a filesystem
mount /path/to/foo.iso /mnt/<directory> -t iso9660 -o ro,loop=/dev/loop0
Example:
mount /home/fancy/iso/distros/Mandrake92-cd1-inst.i586.iso /mnt/cdrom -t iso9660 -o ro,loop=/dev/loop0
See
man <command> or
info <command> for full list of available flags and examples.