Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Feb 2000 14:13:07 -0700
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        Jim C <jconner@enterit.com>
Cc:        Stephen <sdk@yuck.net>, freebsd-questions@FreeBSD.ORG
Subject:   Re: CDrecord issues
Message-ID:  <20000204141307.B63538@panzer.kdm.org>
In-Reply-To: <4.2.0.58.20000202154804.00a40e40@mail.enterit.com>; from jconner@enterit.com on Wed, Feb 02, 2000 at 03:59:00PM -0500
References:  <20000202092022.A17219@visi.com> <4.2.0.58.20000202100505.00a30b70@mail.enterit.com> <4.2.0.58.20000202100505.00a30b70@mail.enterit.com> <4.2.0.58.20000202105928.00a30b88@mail.enterit.com> <4.2.0.58.20000202154804.00a40e40@mail.enterit.com>

next in thread | previous in thread | raw e-mail | index | archive | help
[ It is generally better to send SCSI questions to the freebsd-scsi list ]

On Wed, Feb 02, 2000 at 15:59:00 -0500, Jim C wrote:
> Well, I recompiled to the latest version 1.8a40 but to no avail.  In fact, 
> now I can't even perform a -scanbus with cdrecord.  My CDRW passthrough is 
> /dev/pass2 (??) but scanbus is trying to use /dev/pass0 only.  The man page 
> doesn't state (at least from what I have read) how to make cdrecord 
> -scanbus check a different device instead of /dev/pass0.  I have already 
> tried cdrecord -scanbus /dev/pass2 but I get the following error:
[ ... ]

> (hist 502)# ./cdrecord -scanbus
> Cdrecord 1.8 (i386-unknown-freebsd3.2) Copyright (C) 1995-2000 Jśrg Schilling
> ./cdrecord: Operation not permitted. Error opening /dev/pass0 Cam error 
> 'cam_rea
> l_open_device: couldn't open passthr. Cannot open SCSI driver.
> ./cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are 
> root
> .
> 
> 
> (hist 503)# ls -al /dev/pas*
> crw-------   1 root     operator  31,   0 Dec 23 11:43 /dev/pass0
> crw-------   1 root     operator  31,   1 Dec 23 11:43 /dev/pass1
> crw-------   1 root     operator  31,   2 Dec 23 11:43 /dev/pass2
> crw-------   1 root     operator  31,   3 Dec 23 11:43 /dev/pass3

Are you running as root or not?  If you're not running as root, you won't
be able to access the pass devices.  Also, what are the permissions on
/dev/xpt0?  You need permissions on that device to be able to use cdrecord
-scanbus.

> (some optional info)
> 
> (hist 505)# camcontrol devlist -v
> scbus-1 on xpt0 bus 0:
> <  >                               at scbus-1 target -1 lun -1 (xpt0)
> scbus0 on ncr0 bus 0:
> <Quantum XP32150W 81HB>            at scbus0 target 0 lun 0 (pass0,da0)
> <  >                               at scbus0 target -1 lun -1 ()
> scbus1 on ahc0 bus 0:
> <SEAGATE ST15230W SUN4.2G 0738>    at scbus1 target 2 lun 0 (pass1,da1)
> <SONY CD-R   CDU920S 2.0c>         at scbus1 target 6 lun 0 (pass2,cd0)
> <  >                               at scbus1 target -1 lun -1 ()
> 
> Hmm...now I was tinkering with camcrontrol and I got this:
> 
> (hist 507)# camcontrol periphlist -v
> camcontrol: cam_real_open_device: couldn't open passthrough device /dev/pass0
> cam_real_open_device: Operation not permitted
> 
> Why on earth would I get this?  I recompiled the kernel with the following 
> options before I started to perform any camcontrol commands:

It looks like you might not be running as root, but your pass devices are
accessible only for root.  Maybe your transport layer device (/dev/xpt0),
which is needed 

Ken
-- 
Kenneth Merry
ken@kdm.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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