Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 12-17-2004, 12:13 PM   #1
Registered: Dec 2004
Distribution: Ubuntu Yakkety
Posts: 193

Rep: Reputation: 15
paraport_pc module loaded with wrong options, st not loaded

I'm using SimplyMepis 2004.04 with the 2.6.7 kernel. I have been confused about module loading. I thought that the system would look in /etc/modules.conf and load things that appeared there.

I discovered that my parallel port printer didn't work. I managed to fix it by executing the following:

# rmmod lp
# rmmod parport
# modprobe parport_pc io=0x378 irq=none
# modprobe lp
But I can't seem to convince the system to do this automatically. I tried specifying these options in /etc/modules.conf. But that had no effect. I also noticed that this file had no entry for "lp" in it, which made me wonder how lp was being loaded at all. I hunted around some more and found /etc/modprobe.d/ which seems like a duplicate in function of /etc/modules.conf. Which one is used??? These files had references to paraport and lp. I added my options in /etc/modprobe.d/arch-aliases as shown below, but this still had no effect.

alias char-major-6 lp
alias parport_lowlevel parport_pc
options parport_pc io=0x378 irq=none,none
A possibly related problem is that my scsi tape module (st) doesn't load automatically, even though the "alias char-major-9 st " line appears in these config files. I guess I can put it in /etc/modules (assuming this file is actually used). Is that really the solution?
Old 12-18-2004, 12:31 PM   #2
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388

Rep: Reputation: 30
In Debian I have given parameters to my modules like this:

1) Create a new file in /etc/modutils/newfilename
2) Add entries there, for example here's my cdwriter file:

above hid usbcore
options ide-cd ignore=hdc
alias scd0 sr_mod
pre-install sg modprobe ide-scsi # load ide-scsi before sg
pre-install sr_mod modprobe ide-scsi # load ide-scsi before sr_mod
pre-install ide-scsi modprobe ide-cd # load ide-cd before ide-scsi

3) Run command "update-modules"

This is how it is cleanly done in Debian at least... maybe also in Ubuntu.

If it seems that nothing else works, try adding the script you wrote to a startup file. For example, create a new text file in /etc/init.d:

#! /bin/bash

case "$1" in
#actions here
#actions here, if needed
#actions here, if needed
#actions here, if needed
echo "Usage: /etc/init.d/yourservice {start|stop|restart|force-reload|reload}"
exit 1

and then change permissions:

chmod 755 yourservice

and then add links to it into init dirs:

update-rc.d yourservice defaults

or check "man update-rc.d" if you want to fiddle with update-rc.d's settings.

Hope some of this helps.
Old 12-18-2004, 10:37 PM   #3
Registered: Dec 2004
Distribution: Ubuntu Yakkety
Posts: 193

Original Poster
Rep: Reputation: 15
When I looked at modules.conf it says

### This file is automatically generated by update-modules"
# Please do not edit this file directly. If you want to change or add
# anything please take a look at the files in /etc/modutils and read
# the manpage for update-modules.
So then I followed the directions and I found:

update-modules - obsolete command
Hmmm. This is what made me suspicious that the /etc/modules.conf is ignored. That and the fact that a whole separate /etc/modprobe.d directory full of files that serve (apparently) the same function exists.


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
mysql module not loaded Die Woud Linux - Networking 1 11-12-2005 03:30 AM
dvb devices not created, and wrong module loaded? greenmuzz Linux - Hardware 4 07-09-2005 08:43 AM
why my module can not be loaded by Apache? iclinux Linux - Newbie 1 06-10-2005 06:35 PM
Wrong driver loaded for USB device redwaterblues Linux - Hardware 0 04-29-2005 08:18 PM
No USB module loaded dev8080 Linux - Hardware 16 10-05-2003 08:07 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:02 AM.

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