Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1308769
  • 博文数量: 273
  • 博客积分: 5865
  • 博客等级: 准将
  • 技术积分: 3280
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-11 10:01
文章分类

全部博文(273)

文章存档

2015年(33)

2014年(11)

2013年(11)

2012年(136)

2011年(32)

2010年(50)

分类: LINUX

2012-07-23 21:26:17


Refference:

 

I've netapp NFS server with /data3 as shared directory. I type the following command at Ubuntu Linux to mount the NFS server:

mount fs2:/data3 /nfs/
OR
mount 192.168.1.100:/data3 /nfs/

But I'm getting an error which read as follows:

mount: wrong fs type, bad option, bad superblock on fs2:/data3,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount. helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so

How do I fix this problem?

NFS client needs portmap service, simply install nfs-comman package as follows to fix this problem:

Java代码  收藏代码
  1. $ sudo apt-get install nfs-common  
 

Make sure portmap service is running:
sudo service portmap status

Sample outputs:
portmap start/running, process 4193

If not just start it:
$ sudo service portmap start

One installed you can see all shared NFS directories as follows:
showmount -e fs2

Sample outputs:
Export list for fs2:
/Sales
/Web
/Accounting
/Recordings
/Public
/Network Recycle Bin 1
/Music
/Download
/Games
/Family

Simply run mount command again:
$ sudo mkdir /nfs
$ sudo mount fs2:/data3 /nfs/
$ ls /nfs
阅读(2064) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~