You are not logged in.

#1 2007-06-24 13:53:40

kotyz
Member
Registered: 2007-06-24
Posts: 28

how to load kernel module before another kernel module?

I have an Iomega ZIP 100 parallel port drive and need module imm to be loaded before lp module. But I don't know how to do this. Simple adding these modules in rc.conf in MODULES section in the correct order doesn't work. I also realized that udev loads lp module, but I don't know how to make udev load this module before or after other modules.

Last edited by kotyz (2007-06-24 13:58:15)

Offline

#2 2007-06-24 14:09:29

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: how to load kernel module before another kernel module?

Putting them in MODULES should work - what does dmesg tell you? You should also put them on the blacklist, to ensure udev doesn't touch them at all.

Another option is an install directive in modprobe.conf - check the man page for details.

Last edited by tomk (2007-06-24 14:09:49)

Offline

#3 2007-06-24 15:06:30

kotyz
Member
Registered: 2007-06-24
Posts: 28

Re: how to load kernel module before another kernel module?

It seems that the zip disk must be inserted when loading the imm module otherwise the device /dev/sdb4 will not be created and the medium cannot be mounted. I didn't have this problem on ubuntu ;-)

Maybe will be more easy and usefull create script that will load the modules and finally mount the medium ;-)

Offline

#4 2007-06-24 15:07:50

fancris3
Member
Registered: 2007-03-18
Posts: 67

Re: how to load kernel module before another kernel module?

or in /etc/mkinitcpio.conf :
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES="piix ide_disk reiserfs"
MODULES=""
and make a new initrd image with mkinitcpio -g /boot/newkernel26.img ,edit menu.lst and reboot

Offline

#5 2007-06-24 15:45:25

kotyz
Member
Registered: 2007-06-24
Posts: 28

Re: how to load kernel module before another kernel module?

The medium must be inserted in drive during loading of module imm otherwise the device /dev/sdb4 isn't created and medium cannot be then mounted. It's very strange because under fedora and ubuntu this isn't neccessary. So I want load these modules  and mount the medium at the same time by the bash script.

Offline

#6 2007-06-24 15:57:29

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: how to load kernel module before another kernel module?

kotyz - it's your system, so your choice, but If it was me I'd try to find out how Fedora/Ubuntu do it, and replicate it on Arch. It might be useful to other Arch users as well as yourself.

Offline

Board footer

Powered by FluxBB