Date: Thu, 20 Jun 1996 02:40:33 -0700 From: "Jordan K. Hubbard" <jkh@time.cdrom.com> To: Seppo Kallio <kallio@cc.jyu.fi> Cc: users@FreeBSD.org, current@FreeBSD.org Subject: Re: Writing CD ROM - tools for FreeBSD? Message-ID: <15915.835263633@time.cdrom.com> In-Reply-To: Your message of "Thu, 20 Jun 1996 10:31:29 %2B0300." <Pine.SOL.3.92.960620102659.10535B-100000@kanto.cc.jyu.fi>
next in thread | previous in thread | raw e-mail | index | archive | help
> Is there tools to write CD ROM using FreeBSD + some model of CD Writer
> hardware?
Yep! If you're running -current you can use Joerg's worm device,
just add an entry like so in your kernel config:
device worm0 at scbus? # SCSI worm
Then `cd /dev && sh MAKEDEV worm0'
Then use wormcontrol(8) to talk to the drive. I use the following
handy little bourne-shell functions to do my CD work:
# usage: makecdfs cd-title input-tree output-file
function makecdfs {
if [ $# -lt 3 ]; then
echo "usage: makecdfs cd-title input-tree output-file"
elif [ ! -d $2 ]; then
echo "makecdfs: $2 is not a directory."
else
mkisofs -a -d -N -D -R -T -V "$1" -P "Walnut Creek CDROM 1-510-674-0783 FAX 1-510-674-0821" -o $3 $2
fi
}
# usage: burncd input-file
function burncd {
if [ $# -lt 1 ]; then
echo "usage: burncd input-file"
elif [ ! -f $1 ]; then
echo "burncd: $1 is not a valid file."
elif [ "`id -u`" != "0" ]; then
echo "Sorry, this must be done as root."
else
echo -n "Please CD in the writer now and press return: "
read junk
wormcontrol select HP 4020i
wormcontrol prepdisk double
wormcontrol track data
rtprio 5 team -v 1m 5 < $1 | dd of=/dev/rworm0 obs=20k
wormcontrol fixate 1
fi
}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15915.835263633>
