Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 02-16-2004, 08:26 AM   #1
LQ Newbie
Registered: Feb 2004
Posts: 2

Rep: Reputation: 0
kernel CIFS module on Fedora

I'd like to compile a CIFS module for my fedora linux in order to access Win2003 DC shares, but as far as I know the kernel has to be patched and recompiled. my question is:
is it possible to compile just the module and do some insmod without recompile the whole kernel? for ntfs module I've found a precompiled module packed in rpm via apt-get and it worked well... so i presume some modules can just be added instead to be compiled with the whole kernel.
thanks a lot
Old 02-16-2004, 07:14 PM   #2
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
Welcome to LQ Nicolax.

You want to make a kernel level 'driver' to access a network share? You don't need one. When you share something in Windows, you share it using a pseudo filesystem called SMB (or CIFS as Microsoft want to call it now). It doesn't matter whether the share resides on a FAT32 or NTFS partition, so long as Windows can recognise the filesystem it will share it all the same with SMB. Therefore, your client machine doesn't need to know if the file is actually on an NTFS or FAT32 partition, only that it is a valid SMB share.

Now onto where Linux fits into this. You can, indeed, get an NTFS module for the Linux kernel. This is used when a local harddrive contains an NTFS filesystem. But we are talking about network shares, are we not? Think about this - if you are trying to access a Windows network share, do you need to know what filesystem the files resides? Surely you only need to know that it is a valid SMB share?

The long and short: You do not need a SMB/CIFS or even an NTFS module in order to access files shared over a network. You need SAMBA. Almost all distros include SAMBA by default, if not, it's not hard to get. If you're trying to mount a remote share, then it isn't hard to use - it works very much like MOUNT does. If, however, you are trying to create a share that Windows machines can access, it is a bit harder.

So, go and check out SAMBA.

Good luck.
Old 02-18-2004, 10:21 AM   #3
LQ Newbie
Registered: Feb 2004
Posts: 2

Original Poster
Rep: Reputation: 0
thanks, I know that, but as you may notice I didn't have problems with samba that works really fine, my problems are around windows 2003 server when it is also a Domain controller. in fact i usually use samba in order to map SMB shares, but windows 2003 uses SMB_SIGNING that is not compulsory in SMB protocol. so in order to mount SMB shares exported from that OS suggest to use the CIFS module in order to use mount.cifs. fedora do not use CIFS in the kernel tree, which has to be patched and recompiled...
so the question:
i do not want to recompile 100+ kernels in order to use windows 2003 server, i'd like to have a pre-compiled module to be installed by insmod... so can I just compile a module against a kernel version and not all the kernel??
thanks for your 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
[Error] Kernel Module : No kernel module build environment saman007uk Debian 7 09-09-2006 06:34 PM
installing vmware in Fedora (C1)- kernel module probs Guru3 Linux - Software 2 06-12-2005 11:38 AM
Win2k Fedora Samba\CIFS woes Lexical Unit Linux - Networking 0 09-13-2004 10:49 PM
Fedora Core 2 test 1- No sound module compiled in kernel? frontier1 Fedora 1 02-14-2004 08:51 AM
kernel module ignorant newbie looking for any one with kernel module knowledge cpoet Slackware 4 11-24-2003 09:37 PM > Forums > Linux Forums > Linux - General

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration