Chinaunix首页 | 论坛 | 博客
  • 博客访问: 623390
  • 博文数量: 329
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 693
  • 用 户 组: 普通用户
  • 注册时间: 2015-01-05 23:37
个人简介

Do not panic!

文章存档

2021年(1)

2018年(3)

2017年(7)

2016年(98)

2015年(220)

我的朋友

分类: LINUX

2015-01-11 21:38: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支持

      


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