LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-07-2003, 08:36 AM   #1
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Rep: Reputation: 30
Talking Can someone help with module loading ? I'm lost on this.


I try to ' modprobe vfat ' and I am told " Can't locate module vfat". I do a ' modprobe -c ' to see where modprobe is looking for this module. I see this in the list : ' path[fs]=/lib/modules/fs ' .
So I create the subdirectory ' fs ' and place the file ' vfat.o ' in the directory ' /lib/modles/fs ' .
But I still get the same message.

Also, when I get this ironed out, should I auto load this module from ' rc.modules ' or should I make an entry in ' modules.conf ' to do this ? If this helps, something called " kmod " is loading modules on boot up.

Please help.

JC

Last edited by lostboy; 05-07-2003 at 08:40 AM.
 
Old 05-07-2003, 09:28 AM   #2
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 226

Rep: Reputation: 30
First, I think modules are in:
/lib/modules/2.4.17/kernel/fs <---depending on your kernel version.

so I dont know what modprobe thinks its doing there. Have you tried a simple 'insmod vfat'?

Back in my slack days I compiled everything into the kernel (back when the kernel wasnt so damn big).
 
Old 05-07-2003, 09:33 AM   #3
jpbarto
Senior Member
 
Registered: Mar 2003
Location: Pittsburgh, PA
Distribution: Gentoo / NetBSD
Posts: 1,251

Rep: Reputation: 45
all your modules should be (typically) in
/lib/modules/2.4.20/kernel/drivers

(where 2.4.20 is your kernel version number).
so there should be a /lib/modules/2.4.20/kernel/drivers/fs

and then maybe a vfat/vfat.o file in there somewhere...

if your not sure of your kernel's version number check with 'uname -r'.

rc.modules is the proper place to add the modprobe vfat line. And if after searching through /lib/modules/2.4.20/... and you still don't find the vfat.o check your kernel's config... it might be compiled into the kernel (or not at all).
 
Old 05-07-2003, 09:37 AM   #4
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
Thanks for the reply. I'm pulling my hair out on this one. It makes me want to do the easy thing, and like you said compile everything directly into the kernel. But that won't teach me anything. I will need to know how to do this so that I don't have to recompile kernels all of the time just to get one piece of hardware working.

The output of ' insmod vfat ' is this :

/lib/modules/fs/vfat.o: couldn't find the kernel version the module was compiled for

What do I need to do to fix this ?

Thanks,

JC
 
Old 05-07-2003, 09:42 AM   #5
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 226

Rep: Reputation: 30
Well, that module was compiled for a different kernel version. Have you updated your kernel recently?
 
Old 05-07-2003, 09:50 AM   #6
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
Good information. I needed to know if I was going about this the right way.

But something just occured to me. It looks like I'm the dummy on this one. After looking at my ' .config ' file for the kernel that I built, I see that I compiled vfat into the kernel.

What sent me on this quest was seeing the message on boot that said something about not being able to load vfat for my fat32 partitions ( I have three, refered to in fstab as C,D,E ).

Now I still need to get this straight so that any modules that I may need to load (sound for instance) will work properly. I see that NVIDIA makes an entry in ' module.conf '. Is that a good place to load extra modules ? Or is the best way to use ' rc.modules ' ?

I also need to know why I get the message at boot. Who is asking for the vfat module to load ? (btw: hotplug is disabled in my kernel)

For the kernel question - yes I have compiled a new kernel recently. And from the looks of things, I have screwed something up as far as modules go.

JC

Last edited by lostboy; 05-07-2003 at 09:52 AM.
 
Old 05-07-2003, 09:54 AM   #7
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
I did compile and install the modules though. There is a directory called ' /lib/modules/2.4.21-rc1 ' .

JC
 
Old 05-07-2003, 10:01 AM   #8
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
How would I change where modprobe is looking for the module ? I can't seem to find a config file that matches the output of ' modprobe -c ' .

JC
 
Old 05-07-2003, 10:16 AM   #9
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 226

Rep: Reputation: 30
According to the modules.conf man page, you can set it in modules.conf:

path[net]=/lib/modules/`uname -r`/net
path[misc]=/lib/modules/1.1.5?/local

^ this shows how you can get the output of a shell command so you dont have to update modules.conf everytime you update your kernel....

 
Old 05-07-2003, 10:23 AM   #10
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
Thanks Terry. What did you mean though with this ? :

"^ this shows how you can get the output of a shell command so you dont have to update modules.conf everytime you update your kernel"

JC
 
Old 05-07-2003, 10:35 AM   #11
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 226

Rep: Reputation: 30
put this in your modules.conf:
path=/lib/modules/`uname -r`
the `uname -r`, when run on the command line will output the running kernel version......so if you are running 2.4.20 this is what modprobe will see when it checks the modules.conf file:
path=/lib/modules/2.4.20

understand? backticks, the ` symbol, drops whatever to a shell to run it. you will see it in perl as well.
 
Old 05-07-2003, 10:47 AM   #12
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
I can't thank you enough Terry. Thanks alot for your time. I think I get it now. And I better understand what is in the man pages now.

I don't want to take too much more of your time, but you have been very helpful so I'll ask one more question.

How do you alter disk permissions with mounted FAT32 volumes ? The problem I am having is that I cannot give ' rwx ' permissions to anyone but root. It does this in KDE when I put ticks in the appropriate boxes, and also if I do a ' chmod 777 ' at a prompt. It just ignores my changes, except for of course root.
Another thing is that KDE tells me that I can only share directories that are part of ' /home ' on the network. KDE tells me this even when I try to share folders that ARE in the /home directory. That's really confusing.

JC
 
Old 05-07-2003, 10:53 AM   #13
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 226

Rep: Reputation: 30
In the future you should start a new thread to make it easier for others to find answers.

1) Are you trying to change the permissions as a user other than root? If so, it matters how you mount the volume. You need to mount it as a particular user or particular group (uid,gid) if you want them to be able to modify things. Otherwise, root is the only one who can do so.

2) What version of KDE? What is the name of the tool you are using in KDE?
 
Old 05-07-2003, 11:01 AM   #14
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
I hear you on the new post thing. I'm just being greedy I guess because I have your help at the moment.

I am root when I try to make the changes. I notice that root is the owner of the disk, and that UID and GID are not set.

If I set the UID and GID to some number, will I be able to use that in the smb.conf ? In other words, do I specify these numbers for a particular share ?

My KDE version is 3.1 (it's the one that comes with Slackware 9.0), and I am trying to change permissions by right-clicking on the folder that represents the mounted drive, lets say ' /D ' and going to properties.

JC
 
Old 05-07-2003, 11:09 AM   #15
td3201
Member
 
Registered: Jan 2002
Location: Omaha, NE US
Distribution: Red Hat/CentOS
Posts: 226

Rep: Reputation: 30
Hrm....do you want to share a vfat partition with samba?

Let's say you want your 'users' group to be able to read and write to that partition. You need to mount it correctly.

mount -t vfat -o uid=0,gid=`cat /etc/group | grep users | cut -d":" -f3`,rw /dev/hda3 /mnt/fat

(notice how I used the backticks for you?)

This will mount the partition so that the users group owns it. You really need to read the mount man page, specifically the options. Check out the 'umask' option for fat. I have not used it but it might be helpful for you. This _might_ let you set a default mask for new files or something like that, similar to samba's 'create mode'.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
module loading kurrupt Slackware 1 02-28-2005 10:48 AM
'Invalid module format' loading simple module on Suse Linux Professional 9.1 rocketdude Linux - Distributions 3 07-27-2004 11:40 PM
Finding Module Dependencies...(Still loading...still loading..still loading..HANG!!!) Aeudian Linux - General 3 08-11-2003 03:31 PM
Finding Module Dependencies.....(still loading....Still loading....still loading) Aeudian Linux - Newbie 1 07-28-2003 02:27 PM
module loading? chuchu5 Linux - Newbie 3 01-27-2002 10:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:48 PM.

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
Open Source Consulting | Domain Registration