欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 运维知识 > linux >内容正文

linux

Windows2008下搭建NFS实现windows空间提供linux使用

发布时间:2025/4/16 linux 45 豆豆
生活随笔 收集整理的这篇文章主要介绍了 Windows2008下搭建NFS实现windows空间提供linux使用 小编觉得挺不错的,现在分享给大家,帮大家做个参考.
我们既然是要把Windows 的硬盘给Linux使用  就需要在Windows上安装NFS网络文件系统 操作如下1.添加角色-----文件服务---勾选网络文件服务




2.安装完成后 我们需要把这30G空间给Linux用

创建一个文件夹  然后点击管理NFS共享  共享使用默认
添加IP

为客户端IP
然后登录Linux挂载
首先创建一个挂载点
挂载

设置开机挂载vi /etc/fatab

[root@htuidc /]# vi /etc/rc.local 

设置完之后重启就可以了

Linux mount挂载常见问题mount: wrong fs type, bad option, bad superblock on 125.64.41.244:/data/img,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
 
解决办法:Linux没有安装nfs-utils  [root@htuidc /]# yum -y install nfs-untils

2.遇到这个问题是没开启rpcbind服务# mount 42.51.153.157:/nfs /mnt
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified

解决办法:client:
# /etc/init.d/rpcbind start

 




来自为知笔记(Wiz)

转载于:https://www.cnblogs.com/yangxiaofei/p/4996731.html

总结

以上是生活随笔为你收集整理的Windows2008下搭建NFS实现windows空间提供linux使用的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。