erik quanstrom
2011-10-24 12:15:09 UTC
#!/bin/rc
# burn a CD from ISO-9660 image on $home/cd.iso
# version 0.03
rfork e
t1 =`{date}
kill cdfs | rc
kill 9660srv | rc
cdfs -d /dev/sdD0
cp $home/cd.iso /mnt/cd/wd || echo CD BURNING ERROR
t2 =`{date}
echo begin: $t1
echo end: $t2
# -eof-
the key bit to understand is that cdfs is the only part of the system# burn a CD from ISO-9660 image on $home/cd.iso
# version 0.03
rfork e
t1 =`{date}
kill cdfs | rc
kill 9660srv | rc
cdfs -d /dev/sdD0
cp $home/cd.iso /mnt/cd/wd || echo CD BURNING ERROR
t2 =`{date}
echo begin: $t1
echo end: $t2
# -eof-
that knows how to send special scsi commands for talking to dvd+/+/i
or blu-ray-* or cd-* devices. it uses the raw interface to inject the
commands directly. neither the disk drivers nor the sd system
know anything about cdroms, except that they are removable.
- erik