From owner-freebsd-questions Fri Feb 4 13:13: 4 2000 Delivered-To: freebsd-questions@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by builder.freebsd.org (Postfix) with ESMTP id 9D66C4558 for ; Fri, 4 Feb 2000 13:12:56 -0800 (PST) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id OAA69117; Fri, 4 Feb 2000 14:13:07 -0700 (MST) (envelope-from ken) Date: Fri, 4 Feb 2000 14:13:07 -0700 From: "Kenneth D. Merry" To: Jim C Cc: Stephen , freebsd-questions@FreeBSD.ORG Subject: Re: CDrecord issues Message-ID: <20000204141307.B63538@panzer.kdm.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0i 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 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [ 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: > at scbus0 target 0 lun 0 (pass0,da0) > < > at scbus0 target -1 lun -1 () > scbus1 on ahc0 bus 0: > at scbus1 target 2 lun 0 (pass1,da1) > 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