티스토리 뷰
여기에서 가져옴..
Mounting an NFS (Network File System) share using a Unix-like operating system is pretty straight forward. But how do you mount an NFS share of a UNIX system from a Windows 10 machine? Keep reading to find out how.
NFS Only Works in Windows 10 Enterprise
Update 2012-04-20 – These instructions should now work on Windows 10 Pro (Version 10.0.14393 and above) as mentioned by EyeDocGeek in the comments.
This tutorial only applies to the enterprise version of Windows 10 because it is the only version which includes the Services for NFS feature. If you dont have the enterprise version of Windows, then you might be better off exposing your share using Samba which should work on all versions of Windows.
With that said let’s install the Services for NFS feature and mount an NFS share.
Install the NFS Client (Services for NFS)
The first thing we need to do is install the NFS Client which can be done by following the steps below:
Step 1: Open Programs and Features.
Step 2: Click Turn Windows features on or off.
Step 3: Scroll down and check the option Services for NFS, then click OK.
Step 4: Once installed, click Close and exit back to the desktop.
Enable Write Permissions for the Anonymous User
With the default options you will only have read permissions when mounting a UNIX share using the anonymous user. We can give the anonymous user write permissions by changing the UID and GID that it uses to mount the share.
The image below shows the a share mounted using the default settings.
To change the UID and GID we need to make a simple change to the Windows registry by performing the following steps:
- Open regedit by typing it in the search box end pressing Enter.
- Browse to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default.
- Create a new New DWORD (32-bit) Value inside the Default folder named AnonymousUid and assign the UID found on the UNIX directory as shared by the NFS system.
- Create a new New DWORD (32-bit) Value inside the Default folder named AnonymousGid and assign the GID found on the UNIX directory as shared by the NFS system.
- Restart the NFS client or reboot the machine to apply the changes.
The output of the mount command should now look like this:
Local Remote Properties ------------------------------------------------------------------------------- Z: \\10.1.1.211\mnt\vms UID=0, GID=0 rsize=1048576, wsize=1048576 mount=soft, timeout=1.6 retry=1, locking=yes fileaccess=755, lang=ANSI casesensitive=no sec=sys
Notice the 0 value applied to the UID and GID. This means the share is mounted using the root user.
How to Mount an NFS Share
Assuming your NAS (Network Attached Storage) device is on the same network as your Windows machine and the IP address of the device is 10.1.1.211, the following command will mount a share on the NFS system at /mnt/vms.
C:\Users\windows>mount -o anon \\10.1.1.211\mnt\vms Z: Z: is now successfully connected to \\10.1.1.211\mnt\vms The command completed successfully.
The share is now mounted and we can access the data by navigating to the Z: drive.
That’s it, we can now write to the NAS device. Although, I did notice that trying to open the share for the first time takes a long time.
windows 10 enterprise 에 한하여 nfs client 를 사용 할 수 있다.
mount 명령 사용 시 -u, -p로 user, password를 지정 할 수 있도록 되있는 듯 한데.. 안됨..(사용자 이름 매핑 서버에 연결하거나, Active Directory Service를 사용하여야함)
대신 anonymous로 연결 하는 척하면서 실제로는 uid, gid를 가지고 접속하여 user 권한을 사용함
1. regedit 에서 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default] 로 이동
2. DWORD(32-bit)로 "AnonymousUid", "AnonymousGid" 키를 생성 및 uid와 gid를 맞게 설정(10진수로 설정하여야 함)
3. 서비스 재시작 및 시스템 재부팅
4. [mount -o anon nfs_host:/share *]로 nfs 연결
5. [mount] 명령으로 uid, gid 및 연결 설정 확인
'OS > Windows 10' 카테고리의 다른 글
RDP Port 변경 (0) | 2018.02.13 |
---|---|
인터넷 연결 공유(ICS) 시 잘못 된 IP 오류 (0) | 2017.10.17 |
인터넷 연결 공유(ICS) 시 Default IP 변경 (0) | 2017.10.16 |
최근 문서의 표시 개수 설정 (0) | 2017.04.10 |
windows 10 시작프로그램 등록 (0) | 2016.08.16 |
- Total
- Today
- Yesterday
- CLion
- Repository
- CMAKE_OSX_SYSROOT
- fielddata
- linux
- aix compile
- virtualbox
- _status
- install
- 물리디스크
- pfctl
- centos7
- lvremove
- ld 옵션
- lvm 늘리기
- _stats
- update
- 센트6
- firewall-cmd service
- physicaldisk
- CentOS
- pf.anchors
- vgcreate
- mirrorlist
- 파티션 추가
- noipath
- Ignoring CMAKE_OSX_SYSROOT value
- aix ld
- postgresql11
- yum
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |