Code Sample |
ERRORS Some common problems with mount_nfs can be difficult for first time users to understand. mount_nfs: can't access /foo: Permission denied This message means that the remote host is either not exporting the file system you requested or is not exporting it to your host. If you believe the remote host is indeed exporting a file system to you, make sure the exports(5) file is exporting the proper directories. The program showmount(8) can be used to see a server's exports list. The command ``showmount -e remotehostname'' will display what file systems the remote host is exporting. |
Code Sample |
[/mnt]# /etc/init.d/portmap start Starting portmap daemon: portmap. [/mnt]# /etc/init.d/nfs-common start Starting NFS common utilities: statd. [/mnt]# /etc/init.d/nfs-kernel-server start Exporting directories for NFS kernel daemon...done. Starting NFS kernel daemon: nfsd mountd. [/mnt]# showmount -e box Export list for box: /ramdisk/home/dsl * |
Code Sample |
[/mnt]# rpcinfo -p box program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100024 1 udp 804 status 100024 1 tcp 807 status 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100021 1 udp 1024 nlockmgr 100021 3 udp 1024 nlockmgr 100021 4 udp 1024 nlockmgr 100021 1 tcp 1091 nlockmgr 100021 3 tcp 1091 nlockmgr 100021 4 tcp 1091 nlockmgr 100005 1 udp 1026 mountd 100005 1 tcp 1092 mountd 100005 2 udp 1026 mountd 100005 2 tcp 1092 mountd 100005 3 udp 1026 mountd 100005 3 tcp 1092 mountd [/mnt]# mount box:/home/dsl ttt mount: box:/home/dsl failed, reason given by server: Permission denied [/mnt]# mount box:/ramdisk/home/dsl ttt mount: box:/ramdisk/home/dsl failed, reason given by server: Permission denied |
Code Sample |
/home/dsl *(rw) box(rw) localhost(rw) 10.0.2.15(rw) 127.0.0.1(rw) |
Code Sample |
[/mnt]# exportfs -rav exportfs: duplicated export entries: exportfs: 10.0.2.15:/ramdisk/home/dsl exportfs: box:/ramdisk/home/dsl exportfs: duplicated export entries: exportfs: 127.0.0.1:/ramdisk/home/dsl exportfs: localhost:/ramdisk/home/dsl exporting localhost:/ramdisk/home/dsl exporting box:/ramdisk/home/dsl exporting *:/ramdisk/home/dsl exporting localhost:/ramdisk/home/dsl to kernel localhost:/ramdisk/home/dsl: Invalid argument exporting box:/ramdisk/home/dsl to kernel box:/ramdisk/home/dsl: Invalid argument [/mnt]# mount 10.0.2.15:/ramdisk/home/dsl ttt mount: 10.0.2.15:/ramdisk/home/dsl failed, reason given by server: Permission denied [/mnt]# |