[maemo-users] NFS client on OS 2007

From: Juha Kallioinen juha.kallioinen at nokia.com
Date: Fri Aug 31 19:09:54 EEST 2007
ext Jeffrey Barish wrote:
> I just installed OS 2007 (version 4.2007.26-8) on my N800.  I thought that I
> would make another attempt to get an NFS client running on the N800 so that
> I can mount my workstation.  However, I am confused as to whether NFS is
> already present in the OS.  maemo downloads has a replacement kernel
> available, which suggests that I would need to replace the kernel.  The
> usual repositories have nothing related to nfs.  However, I have also read
> in the archives for this mail list that it is not necessary to install a
> kernel or anything else.  I tried a mount command
> # mount -t nfs <workstation>:/home/jeffbarish /mnt/mountpoint
> but I get a mounting failed message.  Has anyone gotten a NFS client to run
> on the N800?
> I would settle for smbfs if nfs is not possible.  Any success with that?


I went through the motions to get NFS mounts working on a freshly installed
N800 with the same IT OS version as you have. I thought I'd share the steps
on the device side of how I got it working.

I'll leave the PC side (NFS server) out of this description.

There's one package (nfs-common) which seems to be a bit broken dependency-wise
that caused most of the problems for me, so I ended up installing that by hand
and not through apt-get.

To get started, I had just flashed my N800 and made sure it's in RD mode
(--enable-rd-mode with the commandline flasher).

First thing I did was to add the repository.maemo.org bora free non-free
to the application manager. From there I can get osso-xterm and so I did.
I started an xterm session and installed ssh with apt-get just to be able
to login to the device from my pc and to be able to run script to record
what I did:

$ ssh <device_ip> -l root
root@<device_ip>'s password: 

BusyBox v1.4.1 (2007-03-12 19:00:25 EET) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N800-26:~# apt-get install rx34-nfs-kernel
Nokia-N800-26:~# apt-get install portmap

# I installed wget just to get the nfs-common binary package to bypass
# the dependency problems with it
Nokia-N800-26:~# apt-get install wget

Nokia-N800-26:~# wget http://repository.maemo.org/pool/bora/free/binary/nfs-common_1.0.6-3.1sdk1_armel.deb
Nokia-N800-26:~# ls -l
-rw-r--r--    1 root     root        60744 Jul  4 12:30 nfs-common_1.0.6-3.1sdk1_armel.deb
Nokia-N800-26:~# dpkg -x nfs-common_1.0.6-3.1sdk1_armel.deb nfstmp

Nokia-N800-26:~# cd nfstmp
Nokia-N800-26:~/nfstmp# ls -l
drwxr-xr-x    4 root     root            0 Aug 31 13:39 etc
drwxr-xr-x    2 root     root            0 Aug 31 13:39 sbin
drwxr-xr-x    4 root     root            0 Aug 31 13:39 usr
drwxr-xr-x    3 root     root            0 Aug 31 13:39 var

# I'm removing documentation to save some space on the device
Nokia-N800-26:~/nfstmp# rm -rf usr/share/man/ usr/share/doc/
Nokia-N800-26:~/nfstmp# cp -r etc sbin usr var /
Nokia-N800-26:~/nfstmp# cd /lib/modules/current/
Nokia-N800-26:~/nfstmp# ls -l
-rw-r--r--    1 root     root         5922 Dec  5  2006 exportfs.ko
-rw-r--r--    1 root     root        72921 Dec  5  2006 lockd.ko
-rw-r--r--    1 root     root       263290 Dec  5  2006 nfs.ko
-rw-r--r--    1 root     root       109606 Dec  5  2006 nfsd.ko
-rw-r--r--    1 root     root       153963 Dec  5  2006 sunrpc.ko

# the kernel modules need to be loaded in this order
Nokia-N800-26:/lib/modules/current# insmod expportfs.ko
Nokia-N800-26:/lib/modules/current# insmod sunrpc.ko
Nokia-N800-26:/lib/modules/current# insmod lockd.ko
Nokia-N800-26:/lib/modules/current# insmod nfs.ko
Nokia-N800-26:~# mkdir /mnt/mountpoint
Nokia-N800-26:~# mount -t nfs <nfs_server_ip>:/scratchbox/users/kaltsi/home /mnt/mountpoint

That works for me..

The nfs-common package will be fixed once I get to it. Currently it
tries to remove some other packages because of some dependency issues.

Hope this helps,

Juha Kallioinen

More information about the maemo-users mailing list