. -dummy cdrecord. , , .

cdrecord mkisofs, , locale- CD. cron, at anacron, CD-ROM.

4.2 " ?"

- , . , , 100/. . :-)

, . . 10 20 , CD-R.

, , , .

bash> e2fsck -n  /dev/sda5        # '-n' 
[stuff deleted - ignore any errors]
/dev/sda5: 73/12288 files (12.3% non-contiguous)

, , - 73 ( /tmp) - .

e2defrag extended-2 . , . , ( ), , ( ) . , .

4.3 " CD UMSDOS?"

. , - (NFS).

UMSDOS, Linux DOS/Win PC (486/66), CD.

4.4 " iso9660 ?"

. CD. CD.

:

/etc/fstab CD, , :

/dev/cdrom  /cdrom  ext2  defaults,ro  0 0

0 " ", () " " (fsck CD ).

4.5 " -?"

. , "cdparanoya", :

http://www.mit.edu/afs/sipb/user/xiphmont/cdparanoia/index.html

"cdda2wav" "sox", sunsite, :

ftp://sunsite.unc.edu/pub/Linux/apps/sound/cdrom/cdda2wav0.71.src.tar.gz

ftp://sunsite.unc.edu/pub/Linux/apps/sound/convert/sox-11gamma-cb3.tar.gz

cdda2wav ( ) CD a . wav-. sox wav- cdda- (Audio-CD), .. CD-R, cdrecord. "sox", cdrecord, .au .wav .

4.6 " SCSI ?"

drivers/scsi/scsi.c

/*
* : echo "scsi add-single-device 0 1 2 3" >/proc/scsi/scsi
*  " 0 1 2 3 "    "Id Lun  ".
*     BETA.
* :    hotplugging .  
* SCSI     ,    
* !
*     
*   . , , 
* ,       .
*/

:

/*
 * Usage: echo "scsi add-single-device 0 1 2 3" >/proc/scsi/scsi
 * with  "0 1 2 3" replaced by your "Host Channel Id Lun".
 * Consider this feature BETA.
 *     CAUTION: This is not for hotplugging your peripherals. As
 *     SCSI was not designed for this you could damage your
 *     hardware !
 * However perhaps it is legal to switch on an
 * already connected device. It is perhaps not
 * guaranteed this device doesn't corrupt an ongoing data transfer.
 */

, , SCSI- . SCSI ( /dev) .

4.7 " 1:1 CD?"

. , (- ) .

: CD-writer CD-ROM.

cdrecord -v dev=0,6,0 speed=2 -isosize /dev/scd0

CD-ROM, /dev/scd0 CD-R.

: CD-ROM. , CD-ROM:

dd if=/dev/scd0 of=cdimage

cdrecord, "readcd" ( misc/). mkisofs, 3. , CD! cdrdao cdda2wav CD.

4.8 " Linux Joliet CD?"

. (2.0.36 2.2) joliet . , /etc/fstab: iso9660 joliet, . http://www-plateau.cs.berkeley.edu/people/chaffee/joliet.html.

4.9 " / CD-ROM CD?"

, CD-ROM. . , scd- (SCSI CD-ROM) CD , ATAPI CD-ROM ( ATAPI- SCSI). /etc/fstab:

/dev/scd0  /cdrom  iso9660  ro,user,noauto  0  0

4.10 CD-R?

bzip2 , gzip pkzip. 30% (>100kb) . :

http://www.muraroa.demon.co.uk/

CD, wav- mp3- ISO-9660 . MPEG III 1:10. , CD ... . , ? 18 3000-4000 . :-)

MPEG III

http://www.stud.ifi.uio.no/~larsi/other/8hz-mp3-cheng.tar.gz

MPEG III

http://homepages.uni-tuebingen.de/student/michael.hipp/mpg123/

, shorten "GSM lossy speech compression":

ftp://svr-ftp.eng.cam.ac.uk/pub/comp.speech/

http://kbs.cs.tu-berlin.de/~jutta/toast.html

4.11 CD-ROM?

1.44 . :

dd if=/dev/fd0 of=boot.img bs=18k

( , ). mkisofs '-b' '-c'. README.eltorino mkisofs.

CD - DOS Windows . , ( samba -). , , .. .

4.12 CD-ROM - ?

overlay-filesystem Linux, CD-ROM . , CD-ROM . . http://home.att.net/~artnaseef/ovlfs/ovlfs.html.

: UDF- Linux (. http://trylinux.com/projects/udf/).

4.13 ?

. , . (2.2.10) SCSI-generic ( ftp://ftp.fokus.gmd.de/pub/unix/cdrecord/alpha; 2.2.5).

4.14 ?

"c't" CD 1996:

4.15 Solaris, * BDS,AIX, HP_UX, ..?

2 Linux. 3 4 Linux . README.NetBSD, README.aix, README.hpux, README.next, README.solaris, README.sunos, README.vms or README.xxxBSD cdrecord-.

4.16 ?

. cdrecord, shell-, . shell- , cdrecord . - , -. . :

# be verbose
v
# set the speed of the writer
speed=2
# the device-coordinates in the form BUS,ID,LUN
dev=0,6,0

/etc/cdrecord . : /etc/cdrecord/mywriter.cfg, "cdrecord.sh mywriter.cfg -audio track1...". mywriter.cfg cdrecord

#! /bin/bash

CFGDIR="/etc/cdrecord"

CFG="$1"
shift
ARGS_LEFT="$@"

if [ ! -f "$CFGDIR/$CFG" ]
then
    echo "Configuration file $CFGDIR/$CFG not found. Exiting."
    exit 1
fi

while read LINE
do
    case $LINE in
        \#*|"") continue;;
    esac
    old_IFS="$IFS"
    IFS="$IFS="
    set -- $LINE
    IFS="$old_IFS"
    O_NAME="$1"
    O_VALUE=""
    while shift
    do
        case $1 in
            "") continue;;
        esac
        O_VALUE="$1"
    done

    if [ -z "$O_VALUE" ]
    then
        O_CDRECORD="$O_CDRECORD -$O_NAME "
        continue
    fi
    O_CDRECORD="$O_CDRECORD $O_NAME=$O_VALUE "

done < "$CFGDIR/$CFG"

set -x    #DEBUG
exec cdrecord $O_CDRECORD $ARGS_LEFT
echo "Execution of cdrecord failed."

4.17 CD ?

- 32 CD, CD. :

#! /bin/bash

RD=/dev/cdrom
for i in 32768,7   32776,32 32808,32 32958,128 33086,128 33214,128 \
         33342,128 33470,32 33581,16 33598,16  33615,16  33632,16
do
    old_IFS="$IFS"
    IFS=","
    set -- $i
    IFS="$old_IFS"
    OFFSET=$1
    LENGTH=$2
    echo "*`dd if=$RD bs=1 skip=$OFFSET count=$LENGTH   2> /dev/null`#"
done

4.18 ?

CD-RW , blank=fast cdrecord. . . man- cdrecord .

4.19 multi-session CD?

, - CD ISO9660- RockRidge-. cdrecord -multi . .. , -multi.

. mkisofs CD-R . cdrecord -msinfo (. )

shell> NEXT_TRACK=`cdrecord -msinfo dev=0,6,0`
shell> echo $NEXT_TRACK
shell> mkisofs -R -o cd_image2 -C $NEXT_TRACK -M /dev/scd5
         private_collection/ \

, README.multi, cdrecord.


5.

, CD-ROM . :-)

5.1 : Linux

, (= ). :

" " - . loadlin Linux, . Loadlin "" , Linux.

5.2 : No read access for 'dev=0,6,0'.

Linux, - , .. . :

[root@Blue /dev]# cdrecord -eject dev=0,6,0
cdrecord: No such file or directory. No read access for 'dev=0,6,0'.

5.3 : DOS

Linux. SCSI- DOS - . Linux ? !

5.4 SCSI

SCSI () SCSI . ( ), CD-R.

NCR 53c7,8xx SCSI , :

NCR53c7,8xx SCSI support                  [N/y/m/?] y
   always negotiate synchronous transfers [N/y/?] (NEW) n
   allow FAST-SCSI [10MHz]                [N/y/?] (NEW) y
   allow DISCONNECT                       [N/y/?] (NEW) y

6.

HOWTO, .

Doug Alcorn <doug@lathi.net>

Kalle Andersson <kalle@sslug.dk>

audio-cd mp3

Kalle Andersson <kalle@sslug.dk>

Rick Cochran <rick@msc.cornell.edu>

dis-/reconnect ncr

Robert Doolittle <bob.doolittle@sun.com>

, cdwrite HOWTO

Markus Dickebohm <m.dickebohm@uni-koeln.de>

Jos van Geffen <jos@tnj.phys.tue.nl>

4.9.

Bernhard Gubanka <beg@ipp-garching.mpg.de>

,

Stephen Harris <sweh@mpn.com>

CD

Janne Himanka <shem@oyt.oulu.fi>

, Joliet CD

Stephan Noy <stnoy@mi.uni-koeln.de>

CD

"Don H. Olive" <don@andromeda.campbellsvil.edu>

URL mkhybrid

Jesper Pedersen <jews@imada.ou.dk>

Pierre Pfister <pp@uplift.fr>

1:1 .

Daniel A. Quist <dquist@cs.nmt.edu>

IDE CD-R

Martti.Rahkila@hut.fi

- writer- loadlin

Dale Scheetz <dwarf@polaris.net>

Joerg Schilling <schilling@fokus.gmd.de>

cdrecord

Martin Schulze <joey@Infodrom.North.DE>

cdwrite-

Gerald C Snyder <gcsnyd@loop.com>

ext2 CD-ROM (. 4.4)

Art Stone <stone@math.ubc.ca>

-iso9660 CD

The Sheepy One <kero@escape.com>

CD

Erwin Zoer <ezoer@wxs.nl>

: Bartosz Maruszewski <B.Maruszewski@zsmeie.torun.pl>, Ian Stirling <ian@opus131.com>, Brian H. Toby.

Linux CD-Writing mini-HOWTO ( .)