linux 如何mount 网络磁盘

linux 如何mount 网络磁盘,第1张

如果是windows系统共享的磁盘,或者samba共享的磁盘:

例如:

sudo mount -t cifs -o username=guest,password=,rw,nobrl,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777 //192.168.1.2/shareddocs /home/user/shareddocs

Linux系统用mount命令可以对网络驱动器进行挂载 *** 作,方法如下:

[root@rhel5all nfsshare]# /etc/rc.d/init.d/portmap start

Starting portmap:                                          [  OK  ]

[root@rhel5all nfsshare]# /etc/rc.d/init.d/nfslock start

Starting NFS statd:                                        [  OK  ]

[root@rhel5all nfsshare]# mount -t nfs -o rw xxx.xxx.x.xxx:/mnt/123 /mnt/LDAP

#xxx.xxx.x.xxx:/mnt/123 前面是网络驱动器的IP地址,后面是驱动器目录


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/8481648.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-16
下一篇2023-04-16

发表评论

登录后才能评论

评论列表(0条)

    保存