From owner-freebsd-current Thu Jun 20 02:40:56 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA01089 for current-outgoing; Thu, 20 Jun 1996 02:40:56 -0700 (PDT) Received: from time.cdrom.com (time.cdrom.com [204.216.27.226]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id CAA01075; Thu, 20 Jun 1996 02:40:53 -0700 (PDT) Received: from time.cdrom.com (localhost [127.0.0.1]) by time.cdrom.com (8.7.5/8.6.9) with ESMTP id CAA15917; Thu, 20 Jun 1996 02:40:34 -0700 (PDT) To: Seppo Kallio cc: users@FreeBSD.org, current@FreeBSD.org Subject: Re: Writing CD ROM - tools for FreeBSD? In-reply-to: Your message of "Thu, 20 Jun 1996 10:31:29 +0300." Date: Thu, 20 Jun 1996 02:40:33 -0700 Message-ID: <15915.835263633@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > 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 }