Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jun 2010 20:16:13 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Mark Terribile <materribile@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Burning CDs on FreeBSD 7.2
Message-ID:  <20100615201613.9ec991da.freebsd@edvax.de>
In-Reply-To: <462606.46010.qm@web110313.mail.gq1.yahoo.com>
References:  <462606.46010.qm@web110313.mail.gq1.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 15 Jun 2010 10:58:22 -0700 (PDT), Mark Terribile <materribile@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

	atapicam_load="YES"

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
/dev/pass0.

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).




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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100615201613.9ec991da.freebsd>