View previous topic :: View next topic |
Author |
Message |
aardvark Guru
Joined: 30 Jun 2002 Posts: 576
|
Posted: Fri Aug 02, 2002 2:36 pm Post subject: [devfsd] Config setting not applied for cd roms |
|
|
I have a wicked little problem with devfsd:
The settings in devfsd are not applied to dev:
-I have a DVD drive and a cdrw , both IDE resp. hdc and hdd
-I have scsi generic+cdrom compiled in as a module, ata cdrom directly
-In my /dev I find entries for : ./cdroms/cdrom0 and cdrom1 and also sg0 and sr.
I can read from both devices and the cdrw is seen as a scsi device
-kernel bootline is:
Code: |
kernel /boot/bzImagedef root=/dev/hda6 hdd=ide-scsi vga=0x314 mem=nopentium
|
-Hdd is defined as a scsi device as you can see
-In my modules.autoload there the module ide-scsi is loaded.
-users are member of the cdrw group
I want /dev/dvd and /dev/cdrw to show up but they don't
Furhtermore , users cannot write to sg0 for the audiocd io slave for instance or cd writing.
It has worked before and this is a more or less fresh install!!
Anyone have a clue?
my relevant devfsd part looks like this:
Code: |
****CLipped****
# Enable module autoloading. You may comment this out if you don't use
# autoloading
LOOKUP .* MODLOAD
# Uncomment this if you want permissions to be saved and restored
# NB: Do NOT change the following!
# Do not do this for pseudo-terminal devices
REGISTER ^pt[sy]/.* IGNORE
CHANGE ^pt[sy]/.* IGNORE
CREATE ^pt[sy]/.* IGNORE
DELETE ^pt[sy] IGNORE
REGISTER .* COPY /lib/dev-state/$devname $devpath
CHANGE .* COPY $devpath /lib/dev-state/$devname
CREATE .* COPY $devpath /lib/dev-state/$devname
DELETE .* CFUNCTION GLOBAL unlink /lib/dev-state/$devname
RESTORE /lib/dev-state
# You can force default like this :
# PERMISSIONS owner_and_group access_mode
# ALSA/OSS stuff
# Comment/change these if you want to change the permissions on
# the audio devices
LOOKUP snd MODLOAD ACTION snd
LOOKUP dsp MODLOAD
LOOKUP mixer MODLOAD
LOOKUP midi MODLOAD
REGISTER sound/.* PERMISSIONS root.audio 660
REGISTER snd/.* PERMISSIONS root.audio 660
# Give the cdrw group write permissions to /dev/sg0
# This is done to have non root user use the burner (scan the scsi bus)
REGISTER ^sg0$ PERMISSIONS root.cdrw 660
# General note for the following auto creation of symlinks:
#
# If you change the device that the symlink points to,
# you should also remove the symlink before restarting
# devfsd
# Create /dev/cdrom for the first cdrom drive
#LOOKUP ^cdrom$ CFUNCTION GLOBAL mksymlink cdroms/cdrom0 cdrom
#REGISTER ^cdrom/cdrom0$ CFUNCTION GLOBAL mksymlink $devname cdrom
#UNREGISTER ^cdrom/cdrom0$ CFUNCTION GLOBAL unlink cdrom
# Create /dev/dvd for the second cdrom drive
# (change 'cdroms/cdrom0' to suite your setup)
LOOKUP ^dvd$ CFUNCTION GLOBAL mksymlink cdroms/cdrom0 dvd
REGISTER ^cdrom/cdrom0$ CFUNCTION GLOBAL mksymlink $devname dvd
UNREGISTER ^cdrom/cdrom0$ CFUNCTION GLOBAL unlink dvd
# Create /dev/cdrw for the first cdrom on the scsi bus
# (change 'sr0' to suite your setup)
LOOKUP ^cdrw$ CFUNCTION GLOBAL mksymlink sr0 cdrw
REGISTER ^sr0$ CFUNCTION GLOBAL mksymlink $devname cdrw
UNREGISTER ^sr0$ CFUNCTION GLOBAL unlink cdrw
|
|
|
Back to top |
|
|
aardvark Guru
Joined: 30 Jun 2002 Posts: 576
|
Posted: Fri Aug 02, 2002 3:12 pm Post subject: |
|
|
oops! I spotted that the default devfsd.conf file has a few typos:
/cdrom/cdrom0 has to be /cdroms/cdrom0
The "s" is added, now the devices are regged.
Mind you, It was the default conf file. I missed the error because it used to be ok.
Only the sg0 is not writable for cdrw users, but I might add the ide-scsi into the kernel instead of a module. maybe that fixes it. |
|
Back to top |
|
|
BonezTheGoon Bodhisattva
Joined: 14 Jun 2002 Posts: 1408 Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo
|
Posted: Fri Aug 02, 2002 3:19 pm Post subject: |
|
|
If the CDRW is only accessible by root you may need to add your users to the cdrw group to allow access.
Regards,
BonezTheGoon |
|
Back to top |
|
|
aardvark Guru
Joined: 30 Jun 2002 Posts: 576
|
Posted: Fri Aug 02, 2002 3:24 pm Post subject: |
|
|
BonezTheGoon wrote: | If the CDRW is only accessible by root you may need to add your users to the cdrw group to allow access.
Regards,
BonezTheGoon |
That was already taken care of as stated in the first post
It may be that devfs is loaded before the ide-scsi module.
the device is not there yet and the settings are not applied then? |
|
Back to top |
|
|
|