Date: Sun, 14 Mar 2010 11:01:04 -1000 From: Al Plant <noc@hdk5.net> To: Polytropon <freebsd@edvax.de> Cc: Aiza <aiza21@comclark.com>, FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: how to use cdrecord Message-ID: <4B9D4E90.1050204@hdk5.net> In-Reply-To: <20100314140653.47a89e29.freebsd@edvax.de> References: <4B9C3DFB.7010307@comclark.com> <alpine.BSF.2.00.1003132231470.79286@tripel.monochrome.org> <4B9C5C57.6060800@comclark.com> <20100314084957.GA97654@owl.midgard.homeip.net> <4B9CDB16.60501@comclark.com> <20100314140653.47a89e29.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Polytropon wrote: > On Sun, 14 Mar 2010 20:48:22 +0800, Aiza <aiza21@comclark.com> 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 > <SCANNER 2.02> at scbus0 target 6 lun 0 (pass0) > <HL-DT-ST DVD-RAM GSA-H58N 1.01> 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 <iso-file> > > For a music CD: > > % cdrecord dev=2,0,0 speed=16 -v -eject -dao -audio <track1> <track2> ... > > 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 <files> | 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 <files> > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B9D4E90.1050204>