LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   modprobe a module before exec of fstab? (https://www.linuxquestions.org/questions/slackware-14/modprobe-a-module-before-exec-of-fstab-494648/)

tramni1980 10-22-2006 01:21 PM

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.

Tinkster 10-22-2006 01:33 PM

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

tramni1980 10-22-2006 01:35 PM

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?

tramni1980 10-22-2006 01:43 PM

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

zhangmaike 10-22-2006 01:59 PM

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?

dunric 10-22-2006 02:19 PM

As already mentioned, you may need initrd - it'll load modules before partitions get mounted. See /boot/README.initrd for a straightaway guide.

tramni1980 10-22-2006 03:25 PM

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!


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