You are not logged in.

#1 2012-08-20 13:33:14

bradomyn
Member
Registered: 2011-08-05
Posts: 15

nfs server working / nfs client ERROR: device '/dev/nfs' not found

Hi,

I'm have already working a nfs server for some embedded devices, for which I got already the root file system and the img. Now I'm trying to get this embedded systems working with archlinux. The CPU is a normal i686 (in case someone associated embedded with ARM or sth like this). Since the devices are able to boot with the images that I got, it points out that the server is working but the boot images are not.

I have created the Root Directory following this article;

https://wiki.archlinux.org/index.php/Di … t_NFS_root

I didn't have any problem, and just in case  the mkinitcpio-nfs-utils is v0.3-3.
For the kernel image I have added the nfs module, and net and udev in the hooks...

Well as I said I have the server working so I guess that this export is ok:

/etc/export

/media/scu 192.168.1.4(rw,no_root_squash,no_subtree_check)

/pxelinux.cfg/default

SERIAL 0 115200 0x000
DEFAULT linux
# display boot prompt
PROMPT 1
# 1 second timeout
TIMEOUT 10
DISPLAY help.txt

LABEL linux
MENU LABEL linux ramdisk
KERNEL scu/vmlinuz-linux-archlinux
APPEND initrd=scu/initramfs-linux-archlinux.img root=/dev/nfs nfsroot=192.168.1.1:/media/scu,tcp,v3 ip=dhcp

When I start one of the NFS clients, it gets correctly the IP from the NFS server, the images vmlinuz and initramfs load correctly, the networking is also working aparently but when the client must mount:


NFS-Mount: 192.168.1.1:/media/scu
Waiting 10 seconds for device /dev/nfs ...

ERROR: device '/dev/nfs' not found. Skipping fsck

rpc failed: 2
::running clean up hook [udev]
ERROR: Failed to mount the real root device.
Bailing out, you are on your own. Good luck!!

If I check the kernel modules, nfs is there. And if I try to mount the nfs by hand:

#mount -t nfs 192.168.1.1:/media/scu
mount: wrong fs type, bad option, bad superblock on 192.168.1.1:/media/scu, missing
            codepage or helper program...

I'm already out of ideas how to fix this, I have set up other nfs with other distros and "no problem" but in this case I think that the problem is the kernel image, not the server.

Thanks in advance,

B.

Offline

#2 2012-08-21 11:58:57

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,223
Website

Re: nfs server working / nfs client ERROR: device '/dev/nfs' not found

Never heard of /dev/nfs - did you take a look at the nfs and nfs4-pages on the wiki? Iirc it is not enough to load the nfs-module. You should also start two daemons: nfs-common and rpcbind in a specific order.

Offline

#3 2012-08-23 13:04:19

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,424

Re: nfs server working / nfs client ERROR: device '/dev/nfs' not found

Check to see if /dev/nfs is in the initramfs image, either through the error message or with lsinitcpio.
Also ip line should be ip=::::::dhcp, but I don't think that you are even getting that far.
The other problem is unless you change the configuration in tftpd to start from /media/xxxx, it is pulling it from under /var/tftpboot, if you have a media that you have mounted just make another directory under tftpboot and call your kernel, initramfs, and root filesystem there instead of under /media.
For example, instead of /media/scu, it would be mounted at /var/tftpboot/scu.  *NIX doesn't care where you actually mount the stuff. 
Be sure to export it as /var/tftpboot/scu with a * instead of a fixed address, unless it obtains that same address everytime, otherwise you wouldn't be using dhcp, you would be setting a fixed ip with the ip= parameter.

Last edited by nomorewindows (2012-08-23 13:19:40)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#4 2013-11-28 07:26:44

coliban
Member
Registered: 2013-11-26
Posts: 2

Re: nfs server working / nfs client ERROR: device '/dev/nfs' not found

The same problem here.

When i try to mount a directory over nfs on a freshly installed archlinux, then i get the same error message:

  mount: wrong fs type, bad option, bad superblock on server:/dir, missing
            codepage or helper program...

Since this topic is still open, i wonder, if that is already solved.

regards

Offline

#5 2013-11-28 08:47:56

coliban
Member
Registered: 2013-11-26
Posts: 2

Re: nfs server working / nfs client ERROR: device '/dev/nfs' not found

Hello,

ok, i´ve found out.

After trying to install several services, i knew from Linux, e.g. portmap, statd, and so on, which the pacman even could not find, i found a answer in the internet:

  install nfs-utils

It seems, that this provides all the services which are needed to do a nfs mount.
(Btw. the docu is somehow  missleading, it advises sometimes things which are not explained elsewhere. But in  general, i find the documentation of archlinux straightforwarded)

regards

Offline

#6 2013-11-28 12:48:27

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,424

Re: nfs server working / nfs client ERROR: device '/dev/nfs' not found

The missing part about ip=::::::dhcp was the OPs problem, instead of ip=dhcp.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

Board footer

Powered by FluxBB