CD recording from the command line

To search for your recorder device number, login as root and type:
cdrecord -scanbus

[root@H3ll drdoom]# cdrecord -scanbus
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.75-RH '@(#)scsi-linux-sg.c       1.75 02/10/21 Copyright 1997 J. Schilling').
scsibus0:
        0,0,0     0) 'HL-DT-ST' 'CD-RW GCE-8520B ' '1.02' Removable CD-ROM
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *
[root@H3ll drdoom]#

Now I know that my recorder is dev=0,0,0


To make an ISO image to prepare for CD burning:
mkisofs -r /home/sorgonet/ > /tmp/sorgonethome.iso

To make and ISO from any CD (must not be mounted):
dd if=/dev/cdrom of=image.iso

Mount an ISO without have to burn it:
mkidir /mnt/iso
mount -o loop,ro -t iso9660 ./image.iso /mnt/iso
may be you need to load the loopback driver: modprobe loop

To burn an ISO to CDR from the command line:
cdrecord -v speed=36 dev=0,0,0 -data image.iso

Burnig a CD without creating an ISO file

A directory and all its subdirectories:
mkisofs -r /home/sorgonet/ | cdrecord -v speed=36 dev=0,0,0 fs=8m -data -

Burning a CD withe downloading it:
curl http://www.sorgonet.com/thisimage.iso | cdrecord -v speed=0 dev=0,0,0 fs=8m -data -


 


 
by: DrDoom at Sorgonet.com 
www.sorgonet.com