From owner-freebsd-questions@FreeBSD.ORG Sun Mar 14 13:06:56 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 CF521106566B for ; Sun, 14 Mar 2010 13:06:56 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 8E1988FC12 for ; Sun, 14 Mar 2010 13:06:56 +0000 (UTC) Received: from r55.edvax.de (port-92-195-17-177.dynamic.qsc.de [92.195.17.177]) by mx01.qsc.de (Postfix) with ESMTP id 704A93D35D; Sun, 14 Mar 2010 14:06:54 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o2ED6rsU001589; Sun, 14 Mar 2010 14:06:54 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 14 Mar 2010 14:06:53 +0100 From: Polytropon To: Aiza Message-Id: <20100314140653.47a89e29.freebsd@edvax.de> In-Reply-To: <4B9CDB16.60501@comclark.com> References: <4B9C3DFB.7010307@comclark.com> <4B9C5C57.6060800@comclark.com> <20100314084957.GA97654@owl.midgard.homeip.net> <4B9CDB16.60501@comclark.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: how to use cdrecord X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Mar 2010 13:06:56 -0000 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. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...