. -dummy cdrecord. , , .
cdrecord mkisofs, ,
locale- CD.
cron
, at
anacron
,
CD-ROM.
- , . , , 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 . , . , ( ), , ( ) . , .
. , - (NFS).
UMSDOS, Linux DOS/Win PC (486/66), CD.
. CD. CD.
:
dd if=/dev/zero of="empty_file" bs=1024k count=650
bash> /sbin/mke2fs empty_file
empty_file is not a block special device.
Proceed anyway? (y,n) y
mount -t ext2 -o loop=/dev/loop1 empty_file /mnt
cdwrite
cdrecord
empty_file ( )
iso9660. /etc/fstab
CD, , :
/dev/cdrom /cdrom ext2 defaults,ro 0 0
0 " ", () " " (fsck CD ).
. , "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.gzftp://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 .
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) .
. , (- ) .
: 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.
. (2.0.36 2.2) joliet . , /etc/fstab: iso9660 joliet, . http://www-plateau.cs.berkeley.edu/people/chaffee/joliet.html.
, CD-ROM. . , scd- (SCSI CD-ROM) CD , ATAPI CD-ROM ( ATAPI- SCSI). /etc/fstab:
/dev/scd0 /cdrom iso9660 ro,user,noauto 0 0
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
1.44 . :
dd if=/dev/fd0 of=boot.img bs=18k
( , ). mkisofs '-b' '-c'. README.eltorino mkisofs.
CD - DOS Windows . , ( samba -). , , .. .
overlay-filesystem Linux, CD-ROM . , CD-ROM . . http://home.att.net/~artnaseef/ovlfs/ovlfs.html.
: UDF- Linux (. http://trylinux.com/projects/udf/).
. , . (2.2.10) SCSI-generic ( ftp://ftp.fokus.gmd.de/pub/unix/cdrecord/alpha; 2.2.5).
"c't" CD 1996:
2 Linux. 3 4 Linux . README.NetBSD, README.aix, README.hpux, README.next, README.solaris, README.sunos, README.vms or README.xxxBSD cdrecord-.
. 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."
- 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
CD-RW , blank=fast cdrecord. . . man- cdrecord .
, - 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.
, CD-ROM . :-)
, (= ). :
" " - . loadlin Linux, . Loadlin "" , Linux.
Linux, - , .. . :
[root@Blue /dev]# cdrecord -eject dev=0,6,0
cdrecord: No such file or directory. No read access for 'dev=0,6,0'.
Linux. SCSI- DOS - . Linux ? !
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
HOWTO, .
audio-cd mp3
dis-/reconnect ncr
, cdwrite HOWTO
4.9.
,
CD
, Joliet CD
CD
URL mkhybrid
1:1 .
IDE CD-R
- writer- loadlin
cdrecord
cdwrite-
ext2 CD-ROM (. 4.4)
-iso9660 CD
CD
: Bartosz Maruszewski <B.Maruszewski@zsmeie.torun.pl>, Ian Stirling <ian@opus131.com>, Brian H. Toby.
Linux CD-Writing mini-HOWTO ( .)