Re: Using the ATAPI/CAM Driver

From: Jeff Elkins <bsd_at_elkins.org>
Date: Sun, 8 Feb 2004 22:38:50 -0500
On Sunday 08 February 2004 7:30 pm, Kevin Oberman wrote:
> > From: Jeff Elkins <bsd_at_elkins.org>
> > Date: Sun, 8 Feb 2004 16:56:17 -0500
> > Sender: owner-freebsd-current_at_freebsd.org
> >
> > I've enabled the ATAPI/CAM driver in my kernel under freebsd 5.2 - this
> > has given me two devices: /dev/cd0 and /dev/cd1. Thus far, I'm able to
> > burn CDs/DVDs but I am having trouble mounting them (as root).
> >
> > If I issue the command: mount /cdrom or mount -t cd9660 /dev/cd0 /cdrom I
> > get the message:  cd9660: /dev/cd0: Device not configured
> >
> >
> > However, if I comment out the /dev/cd devices in fstab and enable the acd
> > devices:
> >
> > /dev/acd0               /cdrom cd9660   ro,noauto       0       0
> > /dev/acd1               /cdrom1 cd9660 ro,noauto        0       0
> > #/dev/cd0               /cdrom cd9660   ro,noauto       0       0
> > #/dev/cd1               /cdrom1 cd9660 ro,noauto        0       0
> >
> > I'm able to mount w/o problems.
>
> I suspect it's a timing issue. The ATAPICAM driver does not create the
> cd devices until quite a while (about 10 seconds) after the disc is
> inserted. And there is no CD device when the drive is empty/open. This
> leads to a variety of annoyances, especially if you are using a tool
> that assumes too much, such as the permanent presence of the device so
> that its status can be checked.
>
> I really wish that the /dev/cdN devices were always present if the
> physical drive was present!

In this case, even when I boot with a CD/DVD in place, the error still occurs. 

Jeff
Received on Sun Feb 08 2004 - 18:38:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:42 UTC