View previous topic :: View next topic |
Author |
Message |
major_tom n00b
Joined: 11 Dec 2002 Posts: 8 Location: Manchester, UK
|
Posted: Wed Dec 11, 2002 9:21 am Post subject: SCSI CD-RW |
|
|
Hi - been using Gentoo for a few months now and this is the first time I've had a problem no-one else has already answered on these forums
I have a real SCSI cd writer, and IDE hard disks and DVD. I'm using devfs and can mount both the DVD and CDr without any problems.
Devfs has created a /dev/cdrw entry for me, but there is no /dev/pg* (although there is a /dev/sg0 which symlinks to the non-existant /dev/pg0) so cdrecord won't work.
I have seen mentions of the cdrecord "Cannot open '/dev/pg*'" error in several places, however it always seemed to be an idescsi problem which I'm not using.
Any ideas?
Ta, mt |
|
Back to top |
|
|
KiTaSuMbA Guru
Joined: 28 Jun 2002 Posts: 430 Location: Naples Italy
|
Posted: Wed Dec 11, 2002 10:27 am Post subject: |
|
|
Have you enabled "general scsi" support in your kernel? Does cdrecord -scanbus report your device? _________________ Need to flame people LIVE on IRC? Join #gentoo-otw on freenode! |
|
Back to top |
|
|
major_tom n00b
Joined: 11 Dec 2002 Posts: 8 Location: Manchester, UK
|
Posted: Wed Dec 11, 2002 10:45 am Post subject: |
|
|
Hi KiTaSuMbA
I have "SCSI support", "SCSI disk support", "SCSI CD-ROM support", "SCSI generic support" and the Advansys driver all compiled into the kernel (I did try with modules too).
cdrecord -scanbus gives:
Cdrecord 1.11a33 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
Thanks, MT |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Wed Dec 11, 2002 2:29 pm Post subject: |
|
|
Have you seen this thread ? |
|
Back to top |
|
|
major_tom n00b
Joined: 11 Dec 2002 Posts: 8 Location: Manchester, UK
|
Posted: Wed Dec 11, 2002 4:31 pm Post subject: |
|
|
Yeah - that was the one I meant about idescsi - this is on a real SCSI drive and I've compiled in everything in the SCSI section that the thread mentions. |
|
Back to top |
|
|
qnx l33t
Joined: 25 Jun 2002 Posts: 638 Location: Göteborg, Sweden
|
Posted: Wed Dec 11, 2002 8:57 pm Post subject: |
|
|
Since you have SCSI writer, you don't need to compile scsi-ide.... But I think you haven't.
I had same problem, with IDE writer, of cuz
But after compiling in Other vendor extension or something like this in SCSI section me writer works.
Oh! Check in your dmesg if it finds the SCSI device! _________________ Registred Linux user #191143!
Abit NF7-S rev. 2.00 (BIOS v. 2.7)
AMD AthlonXP 2500+ (Barton)
PATA Seagate ST3120022A
SATA Seagate ST3200822AS & Silicon Image 3112 chipset
Gentoo Linux |
|
Back to top |
|
|
ronmon Veteran
Joined: 15 Apr 2002 Posts: 1043 Location: Key West, FL
|
Posted: Thu Dec 12, 2002 1:52 am Post subject: |
|
|
Hmm, /dev/pg0? I have an all SCSI machine and nary a pg* device in sight (that would be parallel generic, probably). My /dev/sg3, on the other hand, is a link to scsi/host2/bus0/target2/lun0/generic, which is the actual device. Look at the links in /dev/cdroms and see where those point.
Since you can mount the drive, it is unlikely to be a problem with the kernel. My guess is that something is wrong in /etc/devfsd.conf. There are some good examples in the original file that can be customized to suit your setup. Here are a few lines from mine that may help.
Code: |
REGISTER ^scsi/host2/bus0/target2/lun0/generic$ PERMISSIONS root.cdrw 660
REGISTER ^cdr$ PERMISSIONS root.cdrw 660
LOOKUP ^cdr$ CFUNCTION GLOBAL mksymlink cdroms/cdrom0 cdr
REGISTER ^cdroms/cdrom0$ CFUNCTION GLOBAL mksymlink $devname cdr
UNREGISTER ^cdroms/cdrom0$ CFUNCTION GLOBAL unlink cdr
|
|
|
Back to top |
|
|
major_tom n00b
Joined: 11 Dec 2002 Posts: 8 Location: Manchester, UK
|
Posted: Thu Dec 12, 2002 12:05 pm Post subject: |
|
|
Thanks everyone for their suggestions! For some reason it works with scsi generic compiled as a module, but not compiled into the kernel. I thought I had already tried that previously but I guess not.
Thanks again,
MT |
|
Back to top |
|
|
Carlo Developer
Joined: 12 Aug 2002 Posts: 3356
|
Posted: Wed Jan 08, 2003 3:42 pm Post subject: |
|
|
Just to help other, who are confronted with this problem. Disabling scsi emulation support in the kernel is another way solve the problem.
Carlo |
|
Back to top |
|
|
|