Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Feb 2009 23:25:38 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Akenner <SlackWareWolf@comcast.net>
Cc:        questions@freebsd.org
Subject:   Re: Playing audio CDs
Message-ID:  <20090207232538.463917f5.freebsd@edvax.de>
In-Reply-To: <498DD48C.6040409@comcast.net>
References:  <498DD2DE.803@comcast.net> <498DD48C.6040409@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 07 Feb 2009 13:35:56 -0500, Akenner <SlackWareWolf@comcast.net> wrote:
> I found in the handbook that I could try this:
> 
> /sbin/mount /cdrom
> 
> I then saw this:
> 
> /dev/cd0: device not configured.

This refers to the fact that the device does not contain an ISO-9660
formatted media.



> Apparently typing /sbin first made it give me a different error message, 
> I'm just trying to find hwo to configure a drive now. would 
> /stand/sysinstall work for this?

No.

The "device is configured" via the /etc/fstab file that controls how to
mount the disc, e. g.

	# Device        Mountpoint              FStype  Options         Dump    Pass#
	# -----------   ---------------------   ------  -------------   -----   -----
	/dev/acd0       /cdrom                  cd9660  ro,noauto       0       0

This will "expand" your command

	% mount /cdrom

to something like

	% mount -t cd9660 -o ro /dev/acd0 /cdrom

Also, keep in mind the permissions: You need +r for the device, and you
have to be the owner of the mount target directory. Furthermore, users
must be allowed to mount media which is controlled by the setting

	vfs.usermount=1

that is to be put into /etc/sysctl.conf.



But as I mentioned before, you cannot mount an audio CD; imagine that
it's "technically" impossible. :-)

(Of course, this says nothing about that you cannot copy audio tracks,
convert them into OGG/Vorbis or duplicate discs 1:1, which is ALL
possible.)



A final note: I see you're using /dev/cd0 for your CD drive. What about
using acd0 instead (if it's an ATAPI drive)? You can specify /dev/cd0
as $CDROM if you've got a SCSI device, but then, due to permissions,
I think you need to set proper access rules for the xpt device, too.


-- 
Polytropon
>From 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?20090207232538.463917f5.freebsd>