s3c2440单板与Linux16.04 ping通以后,使用NFS通过网线挂载根文件系统。分两步进行,第一,需要服务器允许要挂载的目录可被挂载。第二,单板去挂载。
一:
1.sudo vi /etc/exports
进去以后加一行 /home/book/hcg/first_fs * (insecure,rw,sync,no_root_squash)
前者为想挂载的文件系统所在目录,后边加insecure ,保存
2.sudo /etc/init.d/nf…server restart (一定要restart)
二:往单板挂载
mount -t nfs -o nolock 192.168.3.159:/home/book/hcg/first_fs /mnt
192.168.3.159为服务器IP
/mnt 为单板上的一个目录
mnt为挂载根文件系统的文件夹