LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-23-2007, 04:53 AM   #1
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Rep: Reputation: 32
Udev Rule Help Please


I am trying to write a rule to get udev to load the 'sd_mod' module as I do not have it built into the kernel.

I am using udev-116 in 'current'.

In the udev-111 version, this module was loaded in '50-udev.rules' file by the following rule:
Quote:
# load modules to scsi disks, if they aren't in kernel
SUBSYSTEM=="scsi_device", ACTION=="add", ATTRS{type}=="0|7|14", RUN+="/sbin/modprobe sd_mod"
I have tried inserting this riule in the '80-drivers.rules' file and also in my '90-local.rules' file but it will not load the module.

Would someone be able to help me with this rule please as I am not experienced at all with udev rules?.

I want to have the module loaded ready for when I plug in my USB camera as this all worked well with udev-111.

Thank you.

Bill.
 
Old 11-23-2007, 08:55 AM   #2
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,441

Rep: Reputation: 70
I'm not exactly sure of the solution for this problem as I don't know the differences in the newest version of udev. However, you said you are not too familiar with writing rules...this may be helpful.

http://reactivated.net/writing_udev_rules.html

another link with much less info, but may be helpful still
http://devpit.org/wiki/Usbkey_udev_and_autofs_rules

It would probably be better to put your local rules in 10-local.rules since you probably want your rules to be parsed before the default rules.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with udev rule hussam Linux - Software 2 12-05-2006 03:30 AM
udev rule for usbstick Steve50 Slackware 5 10-13-2006 05:53 AM
udev-Rule for Mobile tuxangler Linux - Hardware 1 03-28-2006 05:41 AM
Making a udev rule for sonypi blimbo Linux - Software 4 03-01-2006 07:48 PM
Issues with adding a udev rule... Ateo Linux - General 1 03-04-2005 08:02 PM


All times are GMT -5. The time now is 01:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration