Burning CDs on FreeBSD 7.2

Polytropon freebsd at edvax.de
Tue Jun 15 18:16:21 UTC 2010

On Tue, 15 Jun 2010 10:58:22 -0700 (PDT), Mark Terribile <materribile at yahoo.com> wrote:
> Does anyone have advice, pointers, etc.?  If you point me to
> pseudo-SCSI, please give me pointers to all parts of the solution,
> since the various man pages don't have proper links to each other. 

First of all, load the kernel module for ATAPICAM:

	# kldload atapicam

You can also make this permanent by adding


to /boot/loader.conf. Of course, you can also recompile your kernel
with "device atapicam" added.

If the module is loaded successfully, see what SCSI equipment
will show up:

	# camcontrol devlist
	<HL-DT-ST DVD-RAM GSA-H58N 1.01> at scbus2 target 0 lun 0 (cd0,pass0)

This is an example of how a ATAPI recorder shows up as a SCSI
device: it's the device 2:0:0, corresponding to /dev/cd0 and

Unless you're burning CDs with root permissions, you need to make
sure your user will have proper writing access to the following
files, e. g. by using the group "operator" for your user:

	own     cd0     root:operator
	perm    cd0     0664
	own     xpt0    root:operator
	perm    xpt0    0660
	own     pass0   root:operator
	perm    pass0   0660

This is an example from /etc/devfs.conf. Make sure devfs is
restarted to reflect those changes. In the following example,
I just assume commands will be issued by root.

If you want to burn data CDs, I recommend using cdrecord.

In step 1, you prepare the ISO to be burned:

	# cd /path/to/your/files/
	# mkisofs -r -J -o /tmp/cd1.iso vol1/

Then you burn it:

	# cdrecord dev=2,0,0 speed=16 -v -eject -tao -data /tmp/cd1.iso

You can of course combine both steps:

	# cd /path/to/your/files/
	# mkisofs -r -J vol1/ | cdrecord dev=2,0,0 speed=16 -v -eject -tao -data -

An addition: I have setup an alias for burning data CDs in ~/.cshrc
for less typing:

	alias burndata 'cdrecord dev=2,0,0 speed=16 -v -eject -tao -data'

This makes it more easy to deal with existing ISO files, which often
is the way I go (instead of the combined method).

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list