LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-30-2007, 03:19 PM   #1
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Rep: Reputation: 32
UDEV - SCSI Module Not Loading


I have upgraded to 'Current' and now find a problem when I attach my USB Digital camera.

Previous to the upgrade, I had no problem and I used to manually 'mount' the device.

This does not work now and I tracked this down to the 'sd_mod' module not being automatically loaded when Slackware boots. I do not see any 'sda' in '/dev' directory. The only SCSI module which loads is the 'generic' one 'sg' which is no use to me here.

I can get things to work by issuing: '/sbin/modprobe sd_mod' but I would like a neater solution.

I could obviously make an entry in 'rc.modules', but I am certain the way forward is to put a suitable command somewhere in the '/etc/udev/rules.d' directory, but I am not skilled enough to be able to do this myself.

Can anyone help with this please?.

Thanks,

Bill.
 
Old 10-30-2007, 04:00 PM   #2
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Are you sure you're not using a custom kernel?
If memory serves correctly, sd_mod is compiled statically into the official Slackware kernels.
 
Old 10-30-2007, 04:15 PM   #3
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Original Poster
Rep: Reputation: 32
You are quite right - my kernel is 'custom'. The 'sd_mod' is built as a module. I was using essentially the same '.config' that I was using previously (Slackware 12).

I am not sufficiently skilled to understand the changes made to udev scripts which could have led to the module not now being loaded at 'boot'.

So I would still like 'good' solution to loading this module at boot rather than just putting a command in rc.modules.

[bb]Bill.[[/b]
 
Old 10-30-2007, 04:31 PM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by Toods View Post
You are quite right - my kernel is 'custom'. The 'sd_mod' is built as a module. I was using essentially the same '.config' that I was using previously (Slackware 12).

I am not sufficiently skilled to understand the changes made to udev scripts which could have led to the module not now being loaded at 'boot'.
Off the top of my head, I don't have any ideas, but to be honest (and quite frank), that's just not something I'm willing to spend time debugging. That's not to imply that it isn't worth solving or that I don't like you, so please don't take it that way, but support time is better spent (IMHO) on issues that affect Slackware as a whole instead of custom kernels.

Quote:
So I would still like 'good' solution to loading this module at boot rather than just putting a command in rc.modules.
That's the purpose of rc.modules, for what it's worth, but I do understand why you want a different solution.
 
Old 10-30-2007, 04:43 PM   #5
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
The udev rules are written so many different ways over the different distros so figure out the issue will be like finding a needle in a haystack. I don't use Slackware so can't help much there.

Loading the module in rc.modules is the easiest in my opinion. I load about 8 different non standard modules for mine and other machines.

Brian
 
Old 10-30-2007, 04:50 PM   #6
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by Brian1 View Post
The udev rules are written so many different ways over the different distros so figure out the issue will be like finding a needle in a haystack. I don't use Slackware so can't help much there.
In -current, that's largely a non-issue. There's been quite a bit of effort among several different distributions (including Slackware) and the udev maintainers to ship a sane default set of rules with udev. Slackware (and other distros) then add a few distro-specific rules files (for example, 40-slackware.rules) to the udev rules directory. This will be a tremendous help from both a development and user standpoint -- less time and effort from the Slackware end in customizing the setup, and less time and effort on the user end in applying the various documentation out there on the web.

Quote:
Loading the module in rc.modules is the easiest in my opinion. I load about 8 different non standard modules for mine and other machines.
Indeed. Slackware supports an rc.modules.local which, if it's present, overrides the other rc.modules* files. Make sure the top portion of a stock rc.modules file is present in there (the part that (re)generates module dependency information, add your custom modules, and now you don't have to be concerned with redoing the changes after every kernel upgrade.
 
Old 10-30-2007, 05:13 PM   #7
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Original Poster
Rep: Reputation: 32
Many thanks for your comments and advice.

I have made a temporary solution by un-commenting the approriate line in 'rc.modules'.

I didn't know about the possibility of using a 'rc.module.local' file to make upgrades easier. I will do that next.

Bill.
 
  


Reply



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
hotplug, udev, and module loading shievelet Linux - General 1 06-06-2006 05:19 AM
Loading ide-scsi module megadeth Linux - Hardware 14 05-10-2005 11:16 PM
'Invalid module format' loading simple module on Suse Linux Professional 9.1 rocketdude Linux - Distributions 3 07-27-2004 11:40 PM
Finding Module Dependencies...(Still loading...still loading..still loading..HANG!!!) Aeudian Linux - General 3 08-11-2003 03:31 PM
Finding Module Dependencies.....(still loading....Still loading....still loading) Aeudian Linux - Newbie 1 07-28-2003 02:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration