NFS mount
- This topic has 5 replies, 2 voices, and was last updated 13 years ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Home › Forums › MultiConnect OCG › NFS mount
Hello,
It’s possible to configure /etc/fstab to mount type NFS?
We’ve compiled a corecdp-full-image + nfs-utils but still don’t know how to create a NFS mount.
Do we need something else?
Regards,
Mariano Lasala
You need the package ‘nfs-utils-client’. Then you should be able to run:
mount -t nfs -o nfsvers=2 NFS_SERVER:NFS_PATH MNT_PATH
You can add the mount to /etc/fstab if you want it to mount on boot. The default kernel is only built with NFS v2 support, if you want to add v3 you can edit the kernel config and build a new kernel.
Hello Jesse,
This is what I’ve run:
mount -t nfs -o nfsvers=2 server_ip:public /home/root/NFS
And this is the output:
mount: wrong fs type, bad option, bad superblock on server_ip:public,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog – try
dmesg | tail or so
Did you install the ‘nfs-utils-client’ package? Installing ‘nfs-utils’ doesn’t include it. Look for /sbin/mount.nfs
Hello Jesse,
In ${OETREE}/openembedded/recipes the only folder I see that contains the words nfs is nfs-utils-1.1.2 and nfs-utils-1.0.6. I can’t see any package called ‘nfs-utils-client’.
How can I install it?
Regards,
Mariano Lasala
It’s a little confusing, but a bitbake recipe can provide multiple packages. The nfs-utils recipe provides both the nfs-utils and the nfs-utils-client package. When you bitbake nfs-utils, it should give you an nfs-utils-client package in your deploy dir. Or, if you build a custom image, just add “nfs-utils-client” to IMAGE_INSTALL.