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. |
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 |
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?
|
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 |
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? |
As already mentioned, you may need initrd - it'll load modules before partitions get mounted. See /boot/README.initrd for a straightaway guide.
|
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. |