1 |
On 水, 2002-08-28 at 07:39, Yrjö Hatakka wrote: |
2 |
> -----BEGIN PGP SIGNED MESSAGE----- |
3 |
> Hash: SHA1 |
4 |
> |
5 |
> On Tuesday 27 August 2002 13:23, Stuart Bouyer wrote: |
6 |
> |
7 |
> > add this line to devfsd.conf |
8 |
> > |
9 |
> > REGISTER ^sr0$ PERMISSIONS root.cdrw 660 |
10 |
> > |
11 |
> |
12 |
> Nope no avail besides cdrecord wants sg0 |
13 |
> |
14 |
> yrjo_h@cartman yrjo_h $ cdrecord dev=/dev/sr0 -scanbus |
15 |
> Cdrecord 1.11a30 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling |
16 |
> scsidev: '/dev/sr0' |
17 |
> devname: '/dev/sr0' |
18 |
> scsibus: -2 target: -2 lun: -2 |
19 |
> cdrecord: Read-only file system. Cannot open '/dev/sr0'. Cannot open SCSI |
20 |
> driver. |
21 |
> cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are |
22 |
> root. |
23 |
> |
24 |
> |
25 |
> > I think you'll find that the cdrw is a scsi scdrom rather than a scsi |
26 |
> > generic device. |
27 |
> > |
28 |
> > stu@gentoo-bear etc $ ls -l /dev/cdrw |
29 |
> > lr-xr-xr-x 1 root root 3 2002-08-28 /dev/cdrw -> sr0 |
30 |
> > |
31 |
> |
32 |
> yrjo_h@cartman yrjo_h $ l /dev/cdrw |
33 |
> lr-xr-xr-x 1 root root 3 Aug 27 22:31 /dev/cdrw -> sg0 |
34 |
> yrjo_h@cartman yrjo_h $ l /dev/sg0 |
35 |
> lr-xr-xr-x 1 root root 36 Aug 27 22:31 /dev/sg0 -> |
36 |
> scsi/host0/bus0/target0/lun0/generic |
37 |
> yrjo_h@cartman yrjo_h $ l /dev/scsi/host0/bus0/target0/lun0/generic |
38 |
> crw-r----- 1 root root 21, 0 Jan 1 1970 |
39 |
> /dev/scsi/host0/bus0/target0/lun0/generic |
40 |
> |
41 |
> cartman root # kill -HUP `pidof devfsd` |
42 |
> cartman root # l /dev/sg0 |
43 |
> lr-xr-xr-x 1 root root 36 Aug 27 22:31 /dev/sg0 -> |
44 |
> scsi/host0/bus0/target0/lun0/generic |
45 |
> cartman root # l /dev/scsi/host0/bus0/target0/lun0/generic |
46 |
> crw-rw---- 1 root cdrw 21, 0 Jan 1 1970 |
47 |
> /dev/scsi/host0/bus0/target0/lun0/generic |
48 |
> cartman root # |
49 |
> |
50 |
> What to next ?, I'm out of ides |
51 |
> |
52 |
|
53 |
Do you have scsi-cdrom support in the kernel or as a module? Otherwise |
54 |
as normal user I can't use cdrecord as it looks for sg0. |
55 |
|
56 |
from my kernel .config |
57 |
# |
58 |
# SCSI support |
59 |
# |
60 |
CONFIG_SCSI=y |
61 |
CONFIG_BLK_DEV_SD=y |
62 |
CONFIG_SD_EXTRA_DEVS=40 |
63 |
# CONFIG_CHR_DEV_ST is not set |
64 |
# CONFIG_CHR_DEV_OSST is not set |
65 |
CONFIG_BLK_DEV_SR=y |
66 |
CONFIG_BLK_DEV_SR_VENDOR=y |
67 |
CONFIG_SR_EXTRA_DEVS=2 |
68 |
CONFIG_CHR_DEV_SG=y |
69 |
CONFIG_SCSI_DEBUG_QUEUES=y |
70 |
CONFIG_SCSI_MULTI_LUN=y |
71 |
CONFIG_SCSI_CONSTANTS=y |
72 |
# CONFIG_SCSI_LOGGING is not set |
73 |
|
74 |
Another thing to try is check in /lib/dev-state, where devfsd keeps all |
75 |
its permissions and make sure that it isn't being set there. Not sure |
76 |
why it changes after a SIGHUP, but not a boot time though |
77 |
|
78 |
Stuart Bouyer |