# # Original File # ------------- # http://www.Linux-1U.net/CDROM/cdrw.uhow2.txt # # # CDRW Writing uHOWTO # -------------------- # # # 15-Nov-02 amo Date-of-Birth # # # # # HOWTOs # ------- http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/CD-Writing-HOWTO.html http://www.cdrfaq.org/ http://www.saragossa.net/LinuxG3/ls-Cdr.shtml # # # CDRW Kernel Options # ------------------- # CONFIG_BLK_DEV_LOOP=m Block: turn on LoopBack device, RAM disk support # CONFIG_BLK_DEV_RAM=m # CONFIG_BLK_DEV_RAM_SIZE=16384 # CONFIG_BLK_DEV_IDESCSI=m ATA/IDE: turn on SCSI Emulation # CONFIG_SCSI=y SCSI: turn on SCSI Generic Support ( /dev/sg* ) # CONFIG_MINIX_FS=m FileSys: turn on Minix # # # Data Formatters ( creates *.iso ) # --------------- ftp://tsx-11.mit.edu/pub/linux/packages/mkisofs http://fy.chalmers.se/~appro/mkisofs_plus.html http://www.stearns.org/mkisofs/ http://www.andante.org/mkisofs.html - no longer maintained # ftp://ftp.ge.ucl.ac.uk/pub/mkhfs mkhybrid http://www.munich-vision.de/vcd mkvcdfs # # # Hardware Drivers # ----------------- ftp://ftp.fokus.gmd.de/pub/unix/cdrecord http://www.ping.de/sites/daneb/cdrdao.html ftp://sunsite.unc.edu/pub/Linux/utils/disk-management/cdwrite-2.0.tar.gz cdwrite-2.1 http://www.munich-vision.de/vcd mkvcdfs # # # GUI # ---- http://www.fh-muenchen.de/home/ze/rz/services/projects/xcdroast/e_overview.html http://sunsite.auc.dk/BurnIT http://www.datadictator.co.za/cdtux # # # # www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/cdb.html # # # List of CD-write devices # ------------------------ cdrecord -scanbus # -- # -- your IDE CD-RW drive MUST be recognized/listed # -- # # -- you should see it using the SCSI driver # -- Linux sg driver version: 3.1.24 # -- # # -- list of modules # -- --------------- # -- # lsmod # -- sg 32556 0 (autoclean) # -- ide-scsi 10576 0 # # # Devices # -------- test `whoami` = 'root' || echo "You must be root to execute the commands." cd /dev/ umask -S u=rwx,g=rwx,o-rwx [ -f loop0 ] \ || ./MAKEDEV loop \ || for i in 0 1 2 3 4 5 6 7; do mknod loop$i b 7 $i; done [ -f sg0 -o -f sga ] \ || ./MAKEDEV sg \ || for i in 0 1 2 3 4 5 6 7; do mknod sg$i c 21 $i; done # # # make sure yu have the drivers installed # --------------------------------------- # test `whoami` = 'root' || echo "You must be root to execute the commands." cdrecord -scanbus > /dev/null if ! (pidof kerneld || test -f "/proc/sys/kernel/modprobe"); then echo "Neither kerneld nor kmod are running to automatically load modules". fi report_no_autoload() { echo "Ensure the module $1 is loaded automatically next time." } if test ! -f "/proc/scsi/scsi"; then report_no_autoload scsi_mod && insmod scsi_mod fi if ! grep "^........ sg_" /proc/ksyms > /dev/null; then report_no_autoload sg && insmod sg fi if ! grep "^........ sr_" /proc/ksyms > /dev/null; then report_no_autoload sr_mod && insmod sr_mod fi if ! grep "^........ loop_" /proc/ksyms > /dev/null; then report_no_autoload loop && insmod loop fi if ! grep iso9660 /proc/filesystems > /dev/null; then report_no_autoload iso9660 && insmod iso9660 fi echo "The following is only needed for IDE/ATAPI CD-writers." if ! grep ide-scsi /proc/ide/drivers > /dev/null; then report_no_autoload ide-scsi && insmod ide-scsi fi cdrecord -scanbus # # # The device file name representing your CD-Writer has to be passed # to the driver in the Linux kernel # # vi lilo.conf # .. # image=/boot/zImage-2.2.14 # label=Linux # read-only # append="hdb=ide-scsi" # # or as modules in modules.conf # # # Bootable CDROM # -------------- # http://members.bellatlantic.net/~smithrod/rhjol-technical.html # http://www.heise.de/ # # # Get a bootable floppy # dd if=/dev/fd0 of=/opt/cd_image/boot/boot.img bs=18k # # cd /opt/cd_image # mkisofs -b boot/boot.img -c -o cd_image.iso $DIR .... # # # Prepare the ISO Image # --------------------- # cd /opt/cd_image # mkisofs -r -o cd_image.iso /bin /sbin /dev /etc ... # # # Test the Image # -------------- # mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /mnt/cdrom # # ls -la /mnt/cdrom --> should be same as the desired original # # # Now Write the Image # ------------------- # shell> SCSI_BUS=0 # taken from listing 1 "scsibus0:" # shell> SCSI_ID=6 # taken from listing 1 "TOSHIBA XM-3401" # shell> SCSI_LUN=0 # shell> cdrecord -v speed=2 dev=$SCSI_BUS,$SCSI_ID,$SCSI_LUN -data cd_image # # # same as above, but shorter: # shell> cdrecord -v speed=2 dev=0,6,0 -data cd_image # # # Ejecting the CDROM # ------------------- # cdrecord -eject dev=0,6,0 # # # Create an empty iso image # ------------------------- # dd if=/dev/zero of="empty_file" bs=1024k count=650 # # /sbin/mke2fs -b 2048 empty_file # # mount -t ext2 -o loop=/dev/loop1 empty_file /mnt # # cp stuff /mnt # # umount /mnt # # # now record it # cdrecord /mnt # # # CDROM overlay ( making the cdrom look like a disk ) # -------------- # data is written to hard disk or /dev/ram # # http://home.att.net/~artnaseef/ovlfs/ovlfs.html # http://trylinux.com/projects/udf/> # # # # Copy a CDROM # ------------ # dd if=/dev/scd0 of=cdimage # cdrecord -v dev=0,6,0 speed=2 -isosize /dev/scd0 # # # Audio CDs # --------- # sox killing-my-software.wav killing-my-software.cdr # # # shell> cdrecord -v speed=2 dev=0,6,0 -audio track1.cdr track2.cdr... # shell> cdrecord -v speed=2 dev=0,6,0 -audio track1.wav track2.wav... # shell> cdrecord -v speed=2 dev=0,6,0 -audio track1.au track2.au... # # for I in *.mp3 # do # mpg123 --cdr - "$I" | cdrecord -audio -pad -nofix - # done # cdrecord -fix # # # MP3 Encoder # ------------ # http://www.sulaco.org/mp3/ # # # MP3 Player # ------------ # http://www.mpg123.org # # # http://www.mainconcept.de # http://www.johanni.de/munich-vision/vcd # # # end of file