From owner-freebsd-questions Wed Feb 2 5:48:31 2000 Delivered-To: freebsd-questions@freebsd.org Received: from MailAndNews.com (MailAndNews.com [199.29.68.160]) by builder.freebsd.org (Postfix) with ESMTP id C1C084036 for ; Wed, 2 Feb 2000 05:48:18 -0800 (PST) Received: from henderson.tmtowtdi.org [209.32.53.84] (tmtowtdi@mailandnews.com); Wed, 2 Feb 2000 08:45:53 -0500 X-WM-Posted-At: MailAndNews.com; Wed, 2 Feb 00 08:45:53 -0500 Message-ID: <3898339A.2781E494@mailandnews.com> Date: Wed, 02 Feb 2000 07:39:38 -0600 From: Scott Johnson X-Mailer: Mozilla 3.04 (X11; I; FreeBSD 3.4-RELEASE i386) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: IDE CD-R Drives Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mark Szlaga wrote: > > Greetings, > I own a CR-2801 CD-R drive, and would like to use it under FreeBSD. > With Linux there was the IDE-SCSI drivers, which made the ATAPI drive > act as a SCSI device. Is there any paralell in the BSD kernel? Or > is there application software to allow me to access this drive. Under FreeBSD there is support for IDE CD-RW's, without a scsi emulation layer. In /usr/share/examples/atapi you'll find example scripts written by the maintainer of atapi-cd.c: #!/usr/local/bin/bash # :-) device=/dev/r$1 wormcontrol -f$device prepdisk double wormcontrol -f$device track data dd if=$2 of=$device bs=20k wormcontrol -f$device fixate 1 onp Called as `burndata acd0c image` it should work. The burnaudio script is just as simple: #!/usr/local/bin/bash device=/dev/r$1 wormcontrol -f$device prepdisk double shift for f in $* do echo Burning file $f wormcontrol -f $device track audio wormcontrol -f $device nextwriteable dd if=$f of=$device bs=2352 done wormcontrol -f $device fixate 1 onp The racd?? device is just a raw character interface to the device, and any tool (tar, for instance) which works with such devices can be used after you've prepared the disk with wormcontrol(8), which controls the device-specific functionality of the drive. Do not be confused: forget any references you may come upon to `/dev/worm0' or worm(4)! They are obsolete. Scott Johnson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message