Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4140623
  • 博文数量: 241
  • 博客积分: 15936
  • 博客等级: 上将
  • 技术积分: 25293
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-27 11:22
个人简介

Fedora-ARM

文章分类
文章存档

2016年(3)

2014年(1)

2013年(3)

2012年(50)

2011年(61)

2010年(26)

2009年(27)

2008年(21)

2007年(49)

分类: LINUX

2012-03-31 23:18:05

前段时间同事用TI SDK中的文件系统,想在板子挂载PC上的nfs目录但是出现了以下错误


  1. root@am3517-evm:/mnt# mount -t nfs 192.168.1.119:/home/tekkaman/ti-sdk-am3517-evm-05.02.00.00/targetNFS /mnt/nfs/
  2. mount: wrong fs type, bad option, bad superblock on 192.168.1.119:/home/tekkaman/ti-sdk-am3517-evm-05.02.00.00/targetNFS,
  3. missing codepage or helper program, or other error
  4. (for several filesystems (e.g. nfs, cifs) you might
  5. need a /sbin/mount. helper program)
  6. In some cases useful info is found in syslog - try
  7. dmesg | tail or so

  平时出现这个问题可能的原因有:

  1. 服务器端有问题:没有安装  nfs-common ,使用apt-get 安装:apt-get install nfs-common
  2. 板子内核不支持:重新配置编译内核
  3. 板子文件系统中mount应用程序不支持

     最后发现,其实问题出在了文件系统中mount程序上:对于TI提供的文件系统,其mount程序其实是一个软连接,指向:mount -> mount.util-linux-ng,而这个mount.util-linux-ng确不支持nfs,导致无法挂载nfs,使用busybox的mount就可以了!

     但是如果必要,你可以重新编译

(util-linux-ng已经不存在了:January 2011 has been renamed back to util-linux)


   总结:

  1. 对于嵌入式系统,必须注意mount(软连接)的指向:
  • 如果指向busybox,则需要重新配置并编译。
  1. -> Linux System Utilities
  2.        -> mount
  3.             -> Support mounting NFS file systems
  • 如果指向mount.util-linux-ng,那就要在编译util-linux的时候加上nfs支持

      


阅读(4994) | 评论(0) | 转发(6) |
给主人留下些什么吧!~~