Re: [SLUG] nfs and Debian what am I missing

From: Scott Piper (piper@ij.net)
Date: Wed Aug 13 2003 - 10:33:23 EDT


Personally, I like to compile a kernel myself, but you can apt-get a
kernel image that has nfs installed. Actually, you probably have the
module on the install CD. You can try this first.

find the deb on the install CD for the kernel-image you have on your system

make a dummy directory on your hd and cd into it (for example mkdir
a then cd a)

now issue the command dpkg -x your-kernel-image.deb . (whatever
the deb file name is - don't forget the . at the end)
to extract all of the package files into the directory you are in

copy the nfsd module located in the lib/modules/yourkernelversion
directory to the same directory on your system ( /lib)

issue a depmod -a command

then modprobe nfsd

that should do it, or at least I think it will.

scott

Mike Manchester wrote:

>:( is there anyway of doing this without compiling the kernel? Since
>this is a server box I was hoping on making it kinda self updating using
>apt-get update and apt-get upgrade. If I compile the kernel with nfs
>support then I won't be able to upgrade the kernel with apt-get. Is that
>a correct assumption? Is there not a kernel that can be retrieve using
>apt-get that has nfs compiled in it? Maybe I should upgrade to sarge or
>sid?
>Thanks
>Mike M.
>On Tue, 2003-08-12 at 10:39, Matt Miller wrote:
>
>
>>On Tue, 2003-08-12 at 05:44, Michael Manchester wrote:
>>
>>
>>>>What does the following command return?
>>>>
>>>> $ find /lib/modules/`uname -r`/ -name "nfsd*"
>>>>
>>>>
>>>>
>>>Nothing is returned by the above command.
>>>
>>>
>>>
>>>>If the kernel module exists, you should find it
>>>>somewhere in that
>>>>directory tree.
>>>>
>>>>If not, nfsd support could be already compiled into
>>>>the kernel; look for
>>>>something similar to the following in your
>>>>/var/log/kern.log.
>>>>
>>>> "Installing knfsd (copyright (C) 1996
>>>>okir@monad.swb.de)"
>>>>
>>>>
>>>>
>>>Nothing found in the logs. for the kern.log or
>>>kern.log.0
>>>
>>>
>>>
>>OK. Everything points to a lack of kernel support for nfs. Since it
>>appears you do not have a nfsd module to load or existing nfsd support
>>compiled into the kernel, I would suggest you grab the kernel source for
>>your running kernel and compile modular support for nfsd.
>>
>>Search for the kernel source for your running kernel -
>>
>> $ apt-cache search `uname -r` | grep kernel-source-`uname -r`
>>
>>If you are able to locate the correct source, then grab the source -
>>
>> $ apt-get install kernel-source-`uname -r`
>>
>>Untar the source (as root) -
>>
>> $ cd /usr/src
>> ( you will need bzip2 to extract; $ apt-get install bzip2 )
>> $ tar xjf kernel-source-`uname -r`.tar.bz2
>> $ ln -s /usr/src/kernel-source-`uname -r` /usr/src/linux
>> $ cd /usr/src/linux
>>
>>Compile module for nfsd -
>>
>> ( you will need libncurses5-dev for `make menuconfig` )
>> $ apt-get install libncurses5-dev
>> $ make menuconfig
>> Goto Filesystems --> Network File Systems --> select "NFS server
>> support" as a module <M>; exit and save the kernel config
>> $ make dep && make modules modules_install
>>
>>Load the nfsd module -
>>
>> $ modprobe nfsd
>> $ echo nfsd >> /etc/modules
>>
>>Restart nfsd -
>>
>> $ /etc/init.d/nfs-kernel-server restart
>>
>>
>-----------------------------------------------------------------------
>This list is provided as an unmoderated internet service by Networked
>Knowledge Systems (NKS). Views and opinions expressed in messages
>posted are those of the author and do not necessarily reflect the
>official policy or position of NKS or any of its employees.
>
>
>

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:45:34 EDT