mount即挂载U盘

1.arm11开发板:

mount /dev/sdx /目标目录 其中sdx在u盘插到开发板上之后会有提示

2.arm9开发板:

mount /dev/scsi/host0/bus0/target0/lun0 /目标目录

3.直接用网线连接主机和开发板,可以省去每次mount u盘的麻烦。

* # vim /etc/exports。初始情况下这个文件是空的。
* 写入/home/staufen/arm6410 *(rw, sync, no_root_squash)
* /home/staufen/arm6410是要挂载的目录
* 后面是读写权限的设置
* rw:读/写权限。只读为ro
* sync:数据同步写入内存与硬盘
* no_root_squash:共享目录用户的属性

* /etc/rc.d/init.d/nfs start。重启NFS服务
* # lokkit --disabled。永久关闭FC12的防火墙。
* 查看防火墙状态:/etc/init.d/iptables status
* 暂时关闭防火墙:/etc/init.d/iptables stop
* 重启iptables:/etc/init.d/iptables restart
* 不关闭防火墙可能造成的结果:
* mount: RPC: Unable to receive; errno = No route to host.

* 在终端中执行:
* # mount -o nolock -t nfs 192.168.2.13:/home/staufen/arm6410 /tmp/nfs
* -o nolock作用不明。不加的话出现错误:(*by xm*不加的时候,secureCRT死掉了)
*
RPC: failed to contact local rpcbind server (errno 5).








PS1:默认主机与目标机已配置在同一网段上。可以用ping试试是否连接成功。

猜你喜欢

转载自qingwu.iteye.com/blog/1462299