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 10-22-2006, 02:21 PM   #1
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 737

Rep: Reputation: 37
modprobe a module before exec of fstab?


Hello!
I am running Slackware Linux 11.0 with kernel 2.6.18. I need to modprobe a module before fstab is executed in system startup, but I do not know how. I tried modprobing the module in /etc/rc.d/rc.modules, but it did not work.
I would be thankful if I receive some advice.

More specifically, I need to modprobe the fuse module, so that fstab can mount my ntfs disk partition. Currently I modprobe the module in /etc/rc.d/rc.local and then mount the partition with ntfsmount. However, I think there is some way to modprobe the module before fstab mounts the partitions.

Thank you very much in advance.
 
Old 10-22-2006, 02:33 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
That'll be a task for initrd ... you CAN'T get to the modules before you
have a path to them. Alternatively, just compile the driver into the
kernel and be done.


Cheers,
Tink
 
Old 10-22-2006, 02:35 PM   #3
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 737

Original Poster
Rep: Reputation: 37
Question

So what shall write and where to modprobe the module before fstab? Probably something should be passed as a parameter to initrd in lilo.conf?
 
Old 10-22-2006, 02:43 PM   #4
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 737

Original Poster
Rep: Reputation: 37
Question

Isn't there some way to load a kernel module before fstab, other than compiling the driver into the kernel? I have not compiled kernels so far, I do not still fell comfortable doing so.

Regards,
Martin
 
Old 10-22-2006, 02:59 PM   #5
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
non-root local filesystems are mounted by /etc/rc.d/rc.S

Looking through the rc.S script, rc.modules is run before the mounting anyway...

You say you mount the partition with ntfsmount. rc.S only uses mount. Could that be your problem?

Last edited by zhangmaike; 10-22-2006 at 03:07 PM.
 
Old 10-22-2006, 03:19 PM   #6
dunric
Member
 
Registered: Jul 2004
Distribution: Slackware, FreeBSD
Posts: 483

Rep: Reputation: 92
As already mentioned, you may need initrd - it'll load modules before partitions get mounted. See /boot/README.initrd for a straightaway guide.
 
Old 10-22-2006, 04:25 PM   #7
tramni1980
Member
 
Registered: Jul 2006
Location: Tübingen, Germany
Distribution: Slackware64-13.37
Posts: 737

Original Poster
Rep: Reputation: 37
Talking

Thank you very much indeed!
All I had to do is run:

mkinitrd -c -k 2.6.18 -m reiserfs:fuse
lilo

Thank you very much for your help!
 
  


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
Failed to exec /sbin/modprobe scrawper Slackware 3 10-25-2004 06:05 AM
fail to exec modprobe after compiling kernel MarioT Slackware 4 05-21-2004 11:31 PM
kmod : Failed to exec /sbin/modprobe urzumph Linux - General 3 03-23-2004 10:18 PM
modprobe: modprobe: Couldn't locate module nvnet.o/nvaudio.o xiojqwnko Linux - Newbie 2 12-08-2003 06:41 PM
modprobe: modprobe can't locate module ppp0 in redhat 7.1 while shutting down. cyberdude3k Linux - Networking 1 09-08-2003 01:01 PM


All times are GMT -5. The time now is 11:37 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration