Setting up NFS

m
m
Line 5: Line 5:
This chapter shows an example of how to set up your N800/N810 as an NFS client.
This chapter shows an example of how to set up your N800/N810 as an NFS client.
-
Prerequisites are:
+
=== Pre-requisites ===
-
 
+
*You must be able to access the device as root.  
*You must be able to access the device as root.  
The first requirement can be fulfilled in a [[Root_access|number of ways]].
The first requirement can be fulfilled in a [[Root_access|number of ways]].
 +
 +
=== Installing ===
During this process we're going to need to install a few extra packages and load some kernel modules. Once we're done, your device will be ready to do NFS mounts.
During this process we're going to need to install a few extra packages and load some kernel modules. Once we're done, your device will be ready to do NFS mounts.
Line 41: Line 42:
These instructions are valid for IT OS2008, which was released in November 2007. It is also known as chinook or 2.2007.51-3.
These instructions are valid for IT OS2008, which was released in November 2007. It is also known as chinook or 2.2007.51-3.
-
Prerequisites are:
+
=== Pre-requisites ===
-
 
+
*You must be able to access the device as root.  
*You must be able to access the device as root.  
The first requirement can be fulfilled in a [[Root_access|number of ways]].
The first requirement can be fulfilled in a [[Root_access|number of ways]].
 +
 +
=== Installing ===
During this process we're going to need to install a few extra packages and load some kernel modules. Once we're done, your device will be ready to do NFS mounts.
During this process we're going to need to install a few extra packages and load some kernel modules. Once we're done, your device will be ready to do NFS mounts.

Revision as of 06:30, 18 October 2008

Image:Ambox_content.png
This is an article from the old midgard wiki that hasn't yet been fully updated for this wiki, please update it.
Please see the talk page for discussion.


Contents

In Diablo

This chapter shows an example of how to set up your N800/N810 as an NFS client.

Pre-requisites

  • You must be able to access the device as root.

The first requirement can be fulfilled in a number of ways.

Installing

During this process we're going to need to install a few extra packages and load some kernel modules. Once we're done, your device will be ready to do NFS mounts.

The following packages will be needed; kernel-diablo-modules-extra, nfs-common and portmap.

  • kernel-diablo-modules-extra contains the necessary kernel modules
  • nfs-common contains other tools. It contains files that are both common to NFS servers & clients.
  • portmap contains the protocol port number conversion server that is needed for NFS.
  1. Get access to a shell (either a remote shell or an X Terminal session on the tablet itself)
    1. Become root via your preferred method.
  2. Add the required repository to sources.list.
    1. echo "deb http://repository.maemo.org/ diablo/tools free" >> /etc/apt/sources.list (the >> is important!)
    2. apt-get update
  3. Run apt-get install kernel-diablo-modules-extra portmap nfs-common
  4. For the tablet to recognize a filesystem that is not compiled in the kernel, you need to load modules for tablet to recognize NFS servers. The modules must be loaded in this order. Run the next two commands exactly as they are written.
    1. cd /lib/modules/2.6.21-omap1/extra/
    2. insmod sunrpc.ko ; insmod lockd.ko ; insmod nfs.ko
  5. Now the NFS share needs to be mounted. We need to make a directory for the share to be mounted in.
    1. mkdir -p /media/<any name>
    2. mount -t nfs <ip.of.the.server>:</share/on/the/server> /media/<name of directory created>

Of course, substitute anything in the <> as needed. And don't include the < and the > when running commands with them in it.

That should do it! For the mount to work, your NFS host needs to be configured correctly and that's out of the scope of this wiki page. Just be wary of the user id mappings etc. if you want to use the mountpoint as a non-root user.

In OS2008

This chapter shows an example of how to set up your N800/N810 as an NFS client.

These instructions are valid for IT OS2008, which was released in November 2007. It is also known as chinook or 2.2007.51-3.

Pre-requisites

  • You must be able to access the device as root.

The first requirement can be fulfilled in a number of ways.

Installing

During this process we're going to need to install a few extra packages and load some kernel modules. Once we're done, your device will be ready to do NFS mounts.

The following packages will be needed; rx-34-kernel-modules-extra, nfs-common and portmap.

  • rx-34-kernel-modules-extra contains the necessary kernel modules
  • nfs-common contains other tools. It contains files that are both common to NFS servers & clients.
  • portmap contains the protocol port number conversion server that is needed for NFS.
  1. Get access to a shell (either a remote shell or an X Terminal session on the tablet itself)
    1. Become root via your preferred method.
  2. Add the required repository to the apt sources.
    1. echo "deb http://repository.maemo.org/ chinook free" > /etc/apt/sources.list.d/sdk-repo.list
    2. apt-get update
  3. Run apt-get install rx-34-kernel-modules-extra portmap nfs-common
  4. For the tablet to recognize a filesystem that is not compiled in the kernel, you need to load modules for tablet to recognize NFS servers. The modules must be loaded in this order. Run the next two commands exactly as they are written.
    1. cd /lib/modules/2.6.21-omap1/extra/
    2. insmod sunrpc.ko ; insmod lockd.ko ; insmod nfs.ko
  5. Now the NFS share needs to be mounted. We need to make a directory for the share to be mounted in.
    1. mkdir -p /media/<any name>
    2. mount -t nfs <ip.of.the.server>:</share/on/the/server> /media/<name of directory created>

Of course, substitute anything in the <> as needed. And don't include the < and the > when running commands with them in it.

That should do it! For the mount to work, your NFS host needs to be configured correctly and that's out of the scope of this wiki page. Just be wary of the user id mappings etc. if you want to use the mountpoint as a non-root user.