Editing Setting up NFS
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
+ | {{Midgard article}} | ||
+ | |||
+ | |||
== In Diablo== | == In Diablo== | ||
- | This chapter shows an example of how to set up your | + | This chapter shows an example of how to set up your N800/N810 as an NFS client. |
- | + | Prerequisites are: | |
- | + | ||
- | + | *You must be able to access the device as root. | |
+ | |||
+ | The first requirement can be fulfilled in a [[Root_access|number of ways]]. | ||
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 15: | Line 19: | ||
*portmap contains the protocol port number conversion server that is needed for NFS. | *portmap contains the protocol port number conversion server that is needed for NFS. | ||
- | + | # Get access to a shell (either a remote shell or an X Terminal session on the tablet itself) | |
- | + | ## Become root via your preferred method. | |
- | Get access to a shell (either a remote shell or an X Terminal session on the tablet itself) | + | # Add the required repository to sources.list. |
- | + | ## <code>echo "deb http://repository.maemo.org/ diablo/tools free" >> /etc/apt/sources.list</code> (the '''>>''' is ''important''!) | |
- | + | ## <code>apt-get update</code> | |
- | Become root via your preferred method. | + | # Run <code>apt-get install kernel-diablo-modules-extra portmap nfs-common</code> |
- | + | # 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. | |
- | + | ## <code>cd /lib/modules/2.6.21-omap1/extra/</code> | |
- | Add the required repository to | + | ## <code>insmod sunrpc.ko ; insmod lockd.ko ; insmod nfs.ko</code> |
- | + | # Now the NFS share needs to be mounted. We need to make a directory for the share to be mounted in. | |
- | echo "deb http://repository.maemo.org/ diablo/tools free" >> /etc/apt/sources.list | + | ## <code>mkdir -p /media/<any name></code> |
- | + | ## <code>mount -t nfs <ip.of.the.server>:</share/on/the/server> /media/<name of directory created></code> | |
- | </ | + | |
- | (the | + | |
- | < | + | |
- | < | + | |
- | Run | + | |
- | < | + | |
- | apt-get install kernel-diablo-modules-extra portmap nfs-common | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | 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 | + | |
- | < | + | |
- | cd /lib/modules/2.6.21-omap1/extra/ | + | |
- | insmod sunrpc.ko ; insmod lockd.ko ; insmod nfs.ko | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | Now the NFS share needs to be mounted. We need to make a directory for the share to be mounted in. | + | |
- | < | + | |
- | mkdir -p /media/<any name> | + | |
- | mount -t nfs <ip.of.the.server>:</share/on/the/server> /media/<name of directory created> | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | Of course, substitute anything in the <> as needed | + | Of course, substitute anything in the <> as needed. |
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. | 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. | ||
Line 59: | Line 39: | ||
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. | ||
- | These instructions are valid for | + | 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: | ||
- | + | *You must be able to access the device as root. | |
- | You must be able to | + | |
- | + | The first requirement can be fulfilled in a [[Root_access|number of ways]]. | |
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 74: | Line 55: | ||
*portmap contains the protocol port number conversion server that is needed for NFS. | *portmap contains the protocol port number conversion server that is needed for NFS. | ||
- | + | # Get access to a shell (either a remote shell or an X Terminal session on the tablet itself) | |
- | + | ## Become root via your preferred method. | |
- | Get access to a shell (either a remote shell or an X Terminal session on the tablet itself) | + | # Add the required repository to the apt sources. |
- | + | ## <code>echo "deb http://repository.maemo.org/ chinook free" > /etc/apt/sources.list.d/sdk-repo.list</code> | |
- | + | ## <code>apt-get update</code> | |
- | Become root via your preferred method. | + | # Run <code>apt-get install rx-34-kernel-modules-extra portmap nfs-common</code> |
- | + | # 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. | |
- | + | ## <code>cd /lib/modules/2.6.21-omap1/extra/</code> | |
- | Add the required repository to the apt | + | ## <code>insmod sunrpc.ko ; insmod lockd.ko ; insmod nfs.ko</code> |
- | + | # Now the NFS share needs to be mounted. We need to make a directory for the share to be mounted in. | |
- | echo "deb http://repository.maemo.org/ chinook free" > /etc/apt/sources.list.d/sdk-repo.list | + | ## <code>mkdir -p /media/<any name></code> |
- | apt-get update | + | ## <code>mount -t nfs <ip.of.the.server>:</share/on/the/server> /media/<name of directory created></code> |
- | </ | + | |
- | + | ||
- | + | ||
- | Run | + | |
- | < | + | |
- | apt-get install rx-34-kernel-modules-extra portmap nfs-common | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | 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. | + | |
- | < | + | |
- | cd /lib/modules/2.6.21-omap1/extra/ | + | |
- | insmod sunrpc.ko ; insmod lockd.ko ; insmod nfs.ko | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | Now the NFS share needs to be mounted. We need to make a directory for the share to be mounted in. | + | |
- | < | + | |
- | mkdir -p /media/<any name> | + | |
- | mount -t nfs <ip.of.the.server>:</share/on/the/server> /media/<name of directory created> | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | Of course, substitute anything in the <> as needed | + | Of course, substitute anything in the <> as needed. |
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. | 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. | ||
- | [[Category: | + | [[Category:Users]] |
- | [[Category: | + | [[Category:Midgard wiki]] |
- | + | ||
- | + | ||
- | + |
Learn more about Contributing to the wiki.