找回密码
 注册

QQ登录

只需一步,快速开始

查看: 483|回复: 0

HOWTO: Mount NFS shares under Windows 7

[复制链接]
发表于 2012-10-3 15:34:48 | 显示全部楼层 |阅读模式
UNIX and Linux users have long been accustomed to networking over NFS, or Network File System. It’s been around for a quarter of a century, was made popular by SunOS, and if you can stomach it’s myriad security flaws, it’s always been the quickest, dirtiest way to share files between disparate systems. With the upcoming Windows 7, Microsoft has (finally!) deemed it neccesary to provide proper NFS client support (and requisite MMC snap-in) to consumer Windows.
First, set up NFS exports on the server- in my case a Ubuntu desktop. An [size=85%]/etc/exports file may look like this:
[size=85%]/home         192.168.1.0/24 (rw, async, insecure)
/opt          192.168.1.2 (rw, async, insecure)
/usr/share    *.op.us (ro, insecure)
That’s it- three fields. The filesystem branch to export, names of allowed hosts (as IP address, netmask, or hostname, with wildcards if that makes your life easier), and whatever options you need to provide. The “insecure” option allows requests from ports above 1024. In the *nix world, only root can bind to a secure port. The ‘async’ option tells NFS to place a higher priority on client responses than to writing out to local disks, the result being improved performance with an increased risk of data loss. There are many more options- consult the manpages or this guide to NFSon Linux.
On the Windows side, you mount an NFS export much like any other network share, by issuing a command such as
[size=85%]mount [options] //nfs-server-unc-name/share-name [drive letter]
This is assuming, of course, that you’ve installed Client Services for NFS under Windows. NFS support is one of those optional packages that is available via the Add/Remove Software wizard in the Control Panel.
Once mounted, your Linux shares will appear as any other drive in Windows:

Perhaps best of all, by right-clicking on the share’s drive icon and selecting ‘Add to library…’, your NFS shares can be rolled into a library (libraries were discussed in this previous post) for sharing across Windows 7 homegroups.
Repurposing old, low-end hardware (running Linux) as a personal file server just got a lot easier.

http://sagehacks.wordpress.com/2 ... es-under-windows-7/


您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|BC Morning Website ( Best Deal Inc. 001 )

GMT-8, 2026-5-28 02:59 , Processed in 0.015792 second(s), 16 queries .

Supported by Weloment Group X3.5

© 2008-2026 Best Deal Online

快速回复 返回顶部 返回列表