NFS mount하기 위해선 kernel수정과 NFS데몬 프로그램을 설치해야 합니다 .
아래 과정을 참고하여 진행해 보시길 바랍니다 .
[kernel]
“make menuconfig”에서 아래와 같이 설정 합니다 .
#make menuconfig
File systems --->
[*] Network File Systems --->
--- Network File Systems
<*> NFS client support
[*] NFS client support for NFS version 3
[*] NFS client support for the NFSv3 ACL protocol extension
위와 같이 설정한 후에 컴파일하여 새롭게 이미지를 생성합니다 .
[Debian]
아래 명령어를 실행하여 “NFS 데몬 ”을 설치 합니다 .
root@rex:/mnt# apt-get install nfs-kernel-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nfs-kernel-server
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 138 kB of archives.
After this operation, 444 kB of additional disk space will be used.
Get:1 http://ftp.us.debian.org/debian/ wheezy/main nfs-kernel-server armhf 1:1.2.6-4 [138 kB]
Fetched 138 kB in 1s (95.9 kB/s)
Selecting previously unselected package nfs-kernel-server.
(Reading database ... 23963 files and directories currently installed.)
Unpacking nfs-kernel-server (from .../nfs-kernel-server_1%3a1.2.6-4_armhf.deb) ...
Processing triggers for man-db ...
fopen: Permission denied
Setting up nfs-common (1:1.2.6-4) ...
Starting NFS common utilities: statd failed!
invoke-rc.d: initscript nfs-common, action "start" failed.
dpkg: error processing nfs-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nfs-kernel-server:
nfs-kernel-server depends on nfs-common (= 1:1.2.6-4); however:
Package nfs-common is not configured yet.
dpkg: error processing nfs-kernel-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
nfs-common
nfs-kernel-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@rex:/mnt# apt-get install nfs-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
nfs-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up nfs-common (1:1.2.6-4) ...
Starting NFS common utilities: statd failed!
invoke-rc.d: initscript nfs-common, action "start" failed.
dpkg: error processing nfs-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nfs-kernel-server:
nfs-kernel-server depends on nfs-common (= 1:1.2.6-4); however:
Package nfs-common is not configured yet.
dpkg: error processing nfs-kernel-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
nfs-common
nfs-kernel-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
위와 같이 설치가 완료되면 아래 명령어를 실행하여 mount합니다 .
root@rex:/mnt# ls nfs/
root@rex:/mnt#
root@rex:/mnt# mount -t nfs -o nolock 192.168.0.13:/nfs nfs
root@rex:/mnt# cd nfs/
root@rex:/mnt/nfs# ls
circle DFW DFW.o gpio.ko gpio_test mwifiex_sdio.ko NoDFW NoDFW.o rootbase sd8787_uapsta.bin
root@rex:/mnt/nfs# cd .. |