Windows NFS Server for Linux

Source: Internet
Author: User
Tags root access

Summary

In the process of developing embedded system, in order to facilitate debugging and file sharing, need to use to NFS, that is, network file system, the Board debugging test brought great convenience. Prior to the development of Linux system, and ARM11 Core Board Linux system docking sharing is also more convenient, recently for a few reasons, the development has been transferred to the Windows platform, so requires the NFS server under Windows. That is, the overall solution is Windows NFS server for Linux.

NFS is a shorthand for the network file system, which is the web filesystem. The network file system is one of the file systems supported by FreeBSD, also known as NFS. NFS allows a system to share directories and files with others on the network. By using NFS, users and programs can access files on the remote system as if they were accessing local files.
In order to provide NFS server in Windows, I queried the internet and found that the services for UNIX (SFU) software package provided by Microsoft included NFS server to meet my requirements.
The entire NFS build process is described below:

First, install the SFU
1. Download software SFU
2. Edit password passwd, user groups Group
New text file: C:\passwd file contents: Root::000:000:root:/home/root:/bin/bash
New text file: C:\group file contents: Root::000:root
3. Run Sfu35beta_en.exe to release compressed files
4. Run Sfusetup.msi, select Custom Installation
5, "Authentication Tools for NFS" and "NFS" two fully installed, other items do not install

Ii. Configuring services for UNIX administration 
1, starting with program->windows Services for unix->services for Unix Administration, Start services for UNIX administration ,
2, when the Settings window appears, "User Name Mapping", "Configuration", tick "use Password and Group files, enter C:\passwd in the blank field under Password file path and name, and enter C:\group&nbs in the blank field under "Group File path and name" P
3, "User name Mapping", "Map3", click "Show User Maps" and enter administrator and root in the "Windows user name" and "UNIX User name" boxes respectively. Add, click "Show group Maps", enter administrators and root in the "Windows group name" and "UNIX Group name" boxes, "add" added  
5, Apply

Third, share the Windows host directory
1, do not need to restart, to the NTFS format disk to share the directory, right click on the drop-down menu appears, select "Properties", the Directory Properties window appears.
2. Select the "NFS Sharing" tab, select the Share this folder, select Allow Anonymous access, click Permissions, the NFS Share Permissions window appears, set the Read and write properties of the shared folder.
3. Select Read-write (Readable writable) from the type of Access drop-down menu, and select Allow root access for the target board to have root access to the native file.
4, set up, click the OK button, go back to the Directory Properties window.
5, click "Security" option, add everyone to allow read, control, or full control, if there is no "security" option in the Resource manager point "Tools", "Folder Options", click on the View option, "Use Simple File Sharing (recommended)" Before the Tick off, A security option is available in the Directory Properties window.
6. Open the file sharing feature of Windows "Properties"-"share"-"Share this folder", change "permissions" to "Full Control" (if no, NFS can mount, but cannot access the problem)

Iv. Mounting
Mount–t Nfs–o nolock,proto=tcp,nfsvers=3 192.168.1.169:share_name/mnt

I use NFS for the purpose of mirroring an NFS sharing folder on Windows to a folder in ARM11 Linux, the folder that is shared on Windows is actually a system that I developed, so that through NFS mirroring and network transmission, I can run the system directly on Linux.

Windows NFS Server for Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.