From owner-freebsd-questions@FreeBSD.ORG Sun Mar 14 21:01:07 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C1E1106564A for ; Sun, 14 Mar 2010 21:01:07 +0000 (UTC) (envelope-from noc@hdk5.net) Received: from guam10.hdk5.net (guam10.hdk5.net [66.180.132.235]) by mx1.freebsd.org (Postfix) with ESMTP id DAD438FC12 for ; Sun, 14 Mar 2010 21:01:06 +0000 (UTC) Received: from mohawk7.intra.net (unknown [66.180.149.18]) by guam10.hdk5.net (Postfix) with ESMTP id 805C71CCBC; Sun, 14 Mar 2010 11:01:05 -1000 (HST) Message-ID: <4B9D4E90.1050204@hdk5.net> Date: Sun, 14 Mar 2010 11:01:04 -1000 From: Al Plant User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071128 FreeBSD/i386 SeaMonkey/1.1.7 MIME-Version: 1.0 To: Polytropon References: <4B9C3DFB.7010307@comclark.com> <4B9C5C57.6060800@comclark.com> <20100314084957.GA97654@owl.midgard.homeip.net> <4B9CDB16.60501@comclark.com> <20100314140653.47a89e29.freebsd@edvax.de> In-Reply-To: <20100314140653.47a89e29.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Aiza , FreeBSD Questions Subject: Re: how to use cdrecord X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2010 21:01:07 -0000 Polytropon wrote: > On Sun, 14 Mar 2010 20:48:22 +0800, Aiza wrote: >> No I do not. how do i do this? > > If you don't want to compile it into your kernel, load it > manually: > > # kldload atapicam > > You can automate it using the appropriate line in /boot/loader.conf, > I think it's atapicam_load="YES" > > Then you get something like this: > > % camcontrol devlist > at scbus0 target 6 lun 0 (pass0) > at scbus2 target 0 lun 0 (cd0,pass1) > > The scanner is a real SCSI scanner, the DVD recorder is > an ATAPI drive. You see it's device number is 2,0,0, > and the device node is /dev/cd0. You need access to > /dev/pass1, too. (If the scanner wouldn't be present, > it would be /dev/pass0.) > > If you want to burn a data CD, use something like this: > > % cdrecord dev=2,0,0 speed=16 -v -eject -tao -data > > For a music CD: > > % cdrecord dev=2,0,0 speed=16 -v -eject -dao -audio ... > > If you want to combine the mkisofs step with the burning > step (instead of first creating the ISO, then burnin it), > you can do something like this: > > % mkisofs -r | cdrecord dev=2,0,0 speed=16 -v -eject -tao -data - > > It works similar with DVDs, just you use growisofs from > the port dvd+rw-tools here: > > % growisofs -dvd-compat -Z /dev/dvd=$1 > > The /dev/dvd is a symling that points to /dev/cd0 - again, the > ATAPICAM cd driver is used instead of ATAPI's acd. To make this > symlink, I have > > link acd0 cdrom > link cd0 dvd > > in /etc/devfs.conf. This makes refering to the example in > "man growisofs" more easy. :-) > > If you don't have this symlink, you must use /dev/cd0 (or > the correct device name for the "SCSI" drive) in the > command. You can check this with "camcontrol devlist" > where both numerical and device node are displayed. > > Additionally, you can do the same with growisofs as I have > shown you with cdrecord - combine the building of the ISO > with the burning: > > % growisofs -dvd-compat -Z /dev/dvd -r > > This should give you a good summary of how to use these tools. > You already have gotten useful advices on how to set the > correct device permissions - this is important. > > Additionally, see "man cdrecord" on how to construct a > simple config file so you don't have to put speed= and > dev= whenever you want to use the program - it makes > things more comfortable. :-) > > Aloha... Poly is right. I use in #/boot/bootloader the line: atapicam_load="YES" # For DVD/CD Burner to work. ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 7.2 - 8.0 - 9* + < email: noc@hdk5.net > "All that's really worth doing is what we do for others."- Lewis Carrol