From owner-freebsd-questions Wed Jan 10 11:13:20 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA24265 for questions-outgoing; Wed, 10 Jan 1996 11:13:20 -0800 (PST) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA24258 for ; Wed, 10 Jan 1996 11:13:15 -0800 (PST) Received: from gemini.sdsp.mc.xerox.com ([13.231.132.20]) by alpha.xerox.com with SMTP id <14704(10)>; Wed, 10 Jan 1996 11:12:25 PST Received: from gnu.mc.xerox.com (gnu.sdsp.mc.xerox.com) by gemini.sdsp.mc.xerox.com (4.1/SMI-4.1) id AA12482; Wed, 10 Jan 96 14:11:32 EST Received: by gnu.mc.xerox.com (4.1/SMI-4.1) id AA09659; Wed, 10 Jan 96 14:11:30 EST Message-Id: <9601101911.AA09659@gnu.mc.xerox.com> X-Mailer: exmh version 1.6.4 10/10/95 To: "Rodney C. Forbes" Cc: questions@freebsd.org Subject: Re: a couple questions regarding a CDROM changer. In-Reply-To: Your message of "Sat, 06 Jan 1996 09:29:05 PST." <199601061729.MAA24971@fang.cs.sunyit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 10 Jan 1996 11:11:29 PST From: "Marty Leisner" Sender: owner-questions@freebsd.org Precedence: bulk > I installed a Nakamichi 7 disk CD-ROM changer last night to my > FreeBSD-2.1.0-RELEASE system. I had to add the following two blocks to > scsiconf.c. Maybe some kind soul would commit them so that any future > owners of this device won't have to figure it out.. > > /* Nakamichi 7 disk CD-ROM changer */ > { > T_READONLY, T_REMOV, "NRC", "MBR-7" ,"*", > "cd", SC_MORE_LUS > }, > > /* Nakamichi 7 disk CD-ROM changer */ > { > T_READONLY, T_REMOV, "NRC", "MBR-7" > ,"any", "cd", SC_MORE_LUS > }, > Can someone explain this to me a little more? I just bought a NEC 7 disk changer (is it the same as the nakamichi? -- the Linux autoprobes say something like NRC/MBR-7.. > > 3. How can I read the CD-ROM's label? When mounted under DOS, all drives > (including CD-ROM's) have labels. For instance, the FreeBSD-2.1.0 > beta CD when mounted under dos says something like "FREEBSD-2.1.0". > How can I get this info? > > -- I wrote a little program which does an open on the device, an lseek and a read...the label is a some fixed offset...I did this by inspection... You just need permission to read the raw device (or the program has to be setuid...) Are there any programs to manipulate/figure out the CDs in changers? -- marty leisner@sdsp.mc.xerox.com Member of the League for Programming Freedom