windows nfs server for linux

摘要

在开发嵌入式系统的过程中,为了方便调试与文件共享,需要使用到nfs,即网络文件系统,这位板子的调试测试带来了很大的方便。之前在linux系统下开发,与ARM11核心板 linux系统对接共享也比较方便,近期因为个别原因,将开发转移到了windows平台,因此需要windows下的nfs server。即整体解决方案就是windows nfs server for linux.

NFS,是Network File System的简写,即网络文件系统。网络文件系统是FreeBSD支持的文件系统中的一种,也被称为NFS. NFS允许一个系统在网络上与他人共享目录和文件。通过使用NFS,用户和程序可以像访问本地文件一样访问远端系统上的文件。
为了在windows提供nfs server, 在网上查询了一下,发现微软提供的Services for UNIX(SFU)软件包里包含NFS Server,可以满足我的要求。
下面将整个nfs搭建过程进行描述:

一、安装SFU 
1、下载软件SFU 
2、编辑密码passwd、用户组group 
新建文本文件:C:\passwd 文件内容: root::000:000:root:/home/root:/bin/bash 
新建文本文件: C:\group 文件内容: root::000:root 
3、运行SFU35BETA_EN.exe释放压缩的文件 
4、运行SfuSetup.msi,选择自定义安装 
5、“Authentication tools for NFS"和"NFS"两项完全安装,其他各项不安装

二、配置Services for UNIX Administration 
1、开始->程序->Windows Services for Unix->Services for Unix Administration,启动Services for UNIX Administration 
2、出现设置窗口后,“User Name Mapping”->“Configuration”, 勾选“Use password and Group files”, 在"Password file path and name"下的空白栏中输入C:\passwd,在"Group file path and name"下的空白栏中输入C:\group 
3,“User Name Mapping”->“Map3”, 点击"show user maps”, 在"windows user name"和"unix user name"框中分别输入Administrator和root,“add"添加,点击"show group Maps”, 在"windows group name"和"unix group name"框中分别输入Administrators和root,“add"添加 
5、Apply

三、共享Windows主机目录 
1、不需重启,对NTFS格式盘中要共享的目录,右键点击出现下拉菜单,选择"属性”,出现目录属性窗口。 
2、选择"NFS Sharing"选项卡,选中share this folder;选中Allow anonymous access;点击Permissions,出现NFS Share Permissions窗口,设置共享文件夹读写属性。 
3、在Type of access下拉菜单中选择Read-Write(可读可写);要使目标板对本机文件有root权限,选中Allow root access。 
4、设置完,点击OK按钮,回到目录属性窗口。 
5、点击"安全"选项,添加everyone,使之允许读取、控制,或者完全控制,如果没有"安全"选项请在资源管理器点"工具”->“文件夹选项”,点击查看选项,将"使用简单文件共享(推荐)“前的勾去掉,目录属性窗口里就有安全选项了。 
6、开启了windows的文件共享功能"属性”-“共享”-“共享此文件夹”,更改"权限"为"完全控制”(如果没有请开启,NFS能挂载,但不能访问的问题)

四、挂载 
mount –t nfs –o nolock,proto=tcp,nfsvers=3 192.168.1.169: share_name /mnt

本人使用nfs的目的是,将windows上的一个nfs sharing文件夹 镜像到arm11 linux的一个文件夹下,windows上共享的那个文件夹其实就是本人开发的一个系统,这样通过nfs镜像及网络传输,我在linux上可以直接运行该系统。

时间: 2024-08-01 08:02:41

windows nfs server for linux的相关文章

linux下挂载windows NFS文件共享出错

windows 2012 NFS设置如下 linux设置 新建挂载点dan,权限如下 vi /etc/fstab 添加项目: 192.168.1.202:/guo    /dan     nfs    rw   0 0 查看 最后mount 挂载出错,求解??? 注:linux下新建挂载点dan权限正常,写入文件也正常,唯独挂载出错.

.Net Core Linux centos7行—centos7 pptp vpn connection to windows vpn server

介绍一下centos7 怎么新建vpn并连接到服务器. 本次实现的内容:linux pptp connection to windows vpn server. ? 首先自然是按照pptp拨号组件 yum install ppp pptp pptp-setup 向内核注册模块 modprobe ppp_mppe 新建一个vpn pptpsetup --create vpnname --server vpn服务器地址 --username uid --password pwd --encrypt

从Windows迁移SQL Server到Linux

原文:从Windows迁移SQL Server到Linux 前一篇博客关于SQL Server on Linux的安装,地址:http://www.cnblogs.com/fishparadise/p/8057650.html,现在测试把Windows平台下的一个数据库迁移到Linux平台下. 1. 环境 Windows: Microsoft SQL Server 2008 R2 (SP3) - 10.50.6000.34 (X64) Linux: CentOS 7.4,SQL Server 2

VNCViewer Windows下远程连接Linux桌面

最近项目需求,需要将写的工程部署到centos6.5服务器上,但是出现了各种错误,就想着在linux下再调试代码.但是之前都是通过ssh链接远程服务器的,在ssh中肯定不能打开eclipse等集成开发工具,因此我们要在远程服务器上安装桌面及vncserver,然后在windows中用vncViewer连接. 一:服务器端(Centos6.5) 1:安装桌面: # yum groupinstall "GNOME Desktop Environment"(CentOS 5.x安装GNOME

cacti中文安装配置与监控wWindows Server和Linux服务器

Cacti做为当今天运维人员的主流监控工具已经应该很广泛了,下面我就来把我的安装步骤罗列如下; (1).Cacti安装之前要准备Linx平台下的Web架构: (2).Linux下的Web搭建的方法如下; [[email protected] ~]# yum -y install httpd mysql-server php php-mysql gd net-snmp php-snmp net-       snmp-utils net-snmp-devel mysql-devel  openss

How to configure samba server in Linux     Print

Most Linux systems are the part of networks that also run Windows systems. Using Linux Samba servers, your Linux and Windows systems can share directories and printers. This is most use full situation where your clients are window native and you want

How to configure dns slave server in Linux

A DNS server, or name server, is used to resolve an IP address to a hostname or vice versa.You can set up four different types of DNS servers: A master DNS server for your domain(s), which stores authoritative records for your domain. A slave DNS ser

SQL Server on Linux: How? Introduction: SQL Server Blog

SQL Server Blog Official News from Microsoft's Information Platform https://blogs.technet.microsoft.com/dataplatforminsider/2016/12/16/sql-server-on-linux-how-introduction/ This post was authored by Scott Konersmann, Partner Engineering Manager, SQL

WSS存储服务器(Windows Storage Server) 2012新功能解析

虽然最近一段时间有关微软的新闻大多数集中在Windows 8以及Surface平板设备身上,但数周之前Windows Server 2012新版本中所包含的Windows Storage Server 2012同样值得我们关注.这款产品分类两个版本,工作组版与标准版.工作组版本主要针对小型用户群组,授权许可中将其业务连接数量上限设置为250个.它同时也对底层硬件做出限制,要求用户使用单CPU插槽.最高32GB内存及最多六块磁盘驱动器. 其标准版则在功能与特性方面与Windows Server 2