Specifications

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.16 How can the CD−info be retrieved?
Somewhere behind the first 32 k on the CD, a block with information about the CD is located. You can
extract the information with the following shell script:
#! /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.17 What about re−writing
When overwriting CD−RW media, specify the parameter blank=fast to cdrecord. That's all. See the man page
of cdrecord for details about this parameter.
4.18 How to create a multi−session CD?
First of all, the image for a multi−session CD must be formatted using the ISO−9660 filesystem using
RockRidge−extensions. And you must use the option −multi for cdrecord as long as you want to add further
sessions. So at least for the first session, you must specify the option −multi.
Some CD−writers have no support for CD−ROM XA mode 2 or for session−at−once (SAO), so you need to
CD−Writing HOWTO
4.16 How can the CD−info be retrieved? 28