当前位置:首页 » 文件管理 » mount共享文件夹

mount共享文件夹

发布时间: 2022-10-23 10:48:36

‘壹’ 如何使用mount挂载一个windows的共享文件夹

linux下使用mount命令挂载Windows 上的共享文件夹。本经验使用Redhat Linux6.5和windows2012作为实践平台。


  1. mount -t cifc "windows共享文件夹" "Linux /mnt路径"

    i.e. mount -t cifs //16.187.190.60/test /mnt/

    Linux 会要求输入访问Windows 共享文件夹上的密码。

    注意:

    Linux中提示:

    Unable to find suitable address.

    说明远程共享文件夹路径不存在。请仔细检查,并更正目录路径。

  2. mount -t cifc "windows共享文件夹" "Linux /mnt路径"

    i.e. mount -t cifs //16.187.190.50/test /mnt/

    注意:

    Linux中提示:

    mount error(13): Permission denied

    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

    解决方案:将访问Windows共享目录的用户名和密码直接加入到命令中。

  3. mount -t cifs -o username=WindowsLogin,password="passwordinWindows"

    //16.187.190.50/test /mnt/


    注意:该命令中,username为windows上的用户;password为window用户对应的密码

  4. 步骤3的命令也可以使用以下方式实现:

    mount.cifs -o username="Administrator",password="PasswordForWindows" //16.187.190.50/test /mnt/

  5. 通过步骤3和步骤4可以成功将windows共享文件夹挂载在/mnt目录下。不过由于mount命令只能由root权限用户使用。其挂载文件夹的默认owner和group都为root,并且不能通过chmod命令更改权限。

  6. 使用mount命令,给挂载共享文件夹指定owner和group.

    mount.cifs -o username="Administrator",password="PasswordForWindows",uid=Mysa,gid=Mysa //16.187.190.50/test /mnt/

  7. 检查/mnt/中文件夹的owner和group。

  8. 更改文件夹权限。给mount共享文件夹所在组的写权限。

    mount.cifs -o username="Administrator",password="PasswordForWindows",Mysa,gid=Mysa,dir_mode=0777 //16.187.190.50/test /mnt/

‘贰’ 如何使用mount挂载一个windows的共享文件夹

Mount挂载命令使用方法语法: mount -t 类型 -o 挂接方式 源路径 目标路径
-t 详细选项:
光盘或光盘镜像:iso9660

DOS
fat16文件系统:msdos

Windows
9x fat32文件系统:vfat

Windows
NT ntfs文件系统:ntfs

Mount
Windows文件网络共享:smbfs(需内核支持)推荐cifs

UNIX(LINUX) 文件网络共享:nfs

-o 详细选项:
loop :用来把一个文件当成硬盘分区挂接上系统

ro :采用只读方式挂接设备

rw :采用读写方式挂接设备

iocharset :指定访问文件系统所用字符集,例如iocharset=utf8

remount :重新挂载

使用实例:

挂载windows文件共享:

mount
-t smbfs -o username=admin,password=888888 //192.168.1.2/c$
/mnt/samba

mount
-t cifs -o username=xxx,password=xxx //IP/sharename
/mnt/dirname

‘叁’ 如何使用mount挂载一个windows的共享文件夹

方法/步骤
1
mount -t cifc "windows共享文件夹" "Linux /mnt路径"
i.e. mount -t cifs //16.187.190.60/test /mnt/
Linux 会要求输入访问Windows 共享文件夹上的密码。

注意:
Linux中提示:
Unable to find suitable address.
说明远程共享文件夹路径不存在。请仔细检查,并更正目录路径。

2
mount -t cifc "windows共享文件夹" "Linux /mnt路径"
i.e. mount -t cifs //16.187.190.50/test /mnt/

注意:
Linux中提示:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
解决方案:将访问Windows共享目录的用户名和密码直接加入到命令中。

3
mount -t cifs -o username=WindowsLogin,password="passwordinWindows"
//16.187.190.50/test /mnt/

注意:该命令中,username为windows上的用户;password为window用户对应的密码

4
步骤3的命令也可以使用以下方式实现:
mount.cifs -o username="Administrator",password="PasswordForWindows" //16.187.190.50/test /mnt/

5
通过步骤3和步骤4可以成功将windows共享文件夹挂载在/mnt目录下。不过由于mount命令只能由root权限用户使用。其挂载文件夹的默认owner和group都为root,并且不能通过chmod命令更改权限。

6
使用mount命令,给挂载共享文件夹指定owner和group.
mount.cifs -o username="Administrator",password="PasswordForWindows",uid=Mysa,gid=Mysa //16.187.190.50/test /mnt/

7
检查/mnt/中文件夹的owner和group。

8
更改文件夹权限。给mount共享文件夹所在组的写权限。
mount.cifs -o username="Administrator",password="PasswordForWindows",Mysa,gid=Mysa,dir_mode=0777 //16.187.190.50/test /mnt/

‘肆’ 如何使用mount挂载一个windows的共享文件夹

1,共享windows的文件夹

2,linux挂载windows共享
[root@test2 ~]# mkdir /mnt/cifs
[root@test2 ~]# mount -t cifs -o username=administrator,password=123 //192.168.137.107/LINUX /mnt/cifs
3,注意
使用cifs(CommonInternetFileSystemcifs),也就是说在这以后的系统直接使用mount加参数cifs就可直接挂载Windows的共享了
挂在的时候一定要设置windows的用户名和密码
要不然的话就会出现如下错误
mounterror5=Input/outputerror
Refertothemount.cifs(8)manualpage(e.g.manmount.cifs)
当然,我们还可以共享我们的windows的分区,但是一定要是英文
[root@test2~]#umount/mnt/cifs/
[root@test2~]#mount-tcifs-ousername=administrator,password=123//192.168.137.107/e/mnt/cifs
[root@test2~]#cd/mnt/cifs/
360Rec/ORACLE/
LINUX/$RECYCLE.BIN/
MySQL系列培训视频/SystemVolumeInformation/

‘伍’ 如何使用mount挂载一个windows的共享文件夹

方法/步骤
mount -t cifc "windows共享文件夹" "Linux /mnt路径"
i.e. mount -t cifs //16.187.190.60/test /mnt/
Linux 会要求输入访问Windows 共享文件夹上的密码。
注意:
Linux中提示:
Unable to find suitable address.
说明远程共享文件夹路径不存在。请仔细检查,并更正目录路径。
mount -t cifc "windows共享文件夹" "Linux /mnt路径"
i.e. mount -t cifs //16.187.190.50/test /mnt/
注意:
Linux中提示:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
解决方案:将访问Windows共享目录的用户名和密码直接加入到命令中。
mount -t cifs -o username=WindowsLogin,password="passwordinWindows"
//16.187.190.50/test /mnt/
注意:该命令中,username为windows上的用户;password为window用户对应的密码
步骤3的命令也可以使用以下方式实现:
mount.cifs -o username="Administrator",password="PasswordForWindows" //16.187.190.50/test /mnt/
通过步骤3和步骤4可以成功将windows共享文件夹挂载在/mnt目录下。不过由于mount命令只能由root权限用户使用。其挂载文件夹的默认owner和group都为root,并且不能通过chmod命令更改权限。
使用mount命令,给挂载共享文件夹指定owner和group.
mount.cifs -o username="Administrator",password="PasswordForWindows",uid=Mysa,gid=Mysa //16.187.190.50/test /mnt/
检查/mnt/中文件夹的owner和group。
更改文件夹权限。给mount共享文件夹所在组的写权限。
mount.cifs -o username="Administrator",password="PasswordForWindows",Mysa,gid=Mysa,dir_mode=0777 //16.187.190.50/test /mnt/

‘陆’ 如何使用mount挂载一个windows的共享文件夹

1、mount -t cifc"windows共享文件夹" "Linux /mnt路径"
i.e. mount -t cifs //16.187.190.60/test/mnt/
Linux 会要求输入访问Windows 共享文件夹上的密码。
注意:
Linux中提示:
Unable to find suitable address.
说明远程共享文件夹路径不存在。请仔细检查,并更正目录路径。
2、mount -t cifc"windows共享文件夹" "Linux /mnt路径"
i.e. mount -t cifs //16.187.190.50/test/mnt/
注意:
Linux中提示:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page(e.g. man mount.cifs)
解决方案:将访问Windows共享目录的用户名和密码直接加入到命令中。
3、mount -t cifs -ousername=WindowsLogin,password="passwordinWindows"
//16.187.190.50/test /mnt/
注意:该命令中,username为windows上的用户;password为window用户对应的密码
4、步骤3的命令也可以使用以下方式实现:
mount.cifs -ousername="Administrator",password="PasswordForWindows"//16.187.190.50/test /mnt/
5、通过步骤3和步骤4可以成功将windows共享文件夹挂载在/mnt目录下。不过由于mount命令只能由root权限用户使用。其挂载文件夹的默认owner和group都为root,并且不能通过chmod命令更改权限。
6、使用mount命令,给挂载共享文件夹指定owner和group.
mount.cifs -ousername="Administrator",password="PasswordForWindows",uid=Mysa,gid=Mysa//16.187.190.50/test /mnt/
6、检查/mnt/中文件夹的owner和group。
7、更改文件夹权限。给mount共享文件夹所在组的写权限。
mount.cifs -ousername="Administrator",password="PasswordForWindows",Mysa,gid=Mysa,dir_mode=0777//16.187.190.50/test /mnt/

‘柒’ 如何使用mount挂载一个windows的共享文件夹

1,共享windows的文件夹

2,linux挂载windows共享
[root@test2 ~]# mkdir /mnt/cifs
[root@test2 ~]# mount -t cifs -o username=administrator,password=123 //192.168.137.107/LINUX /mnt/cifs
3,注意
使用cifs(CommonInternetFileSystemcifs),也就是说在这以后的系统直接使用mount加参数cifs就可直接挂载Windows的共享了
挂在的时候一定要设置windows的用户名和密码
要不然的话就会出现如下错误
mounterror5=Input/outputerror
Refertothemount.cifs(8)manualpage(e.g.manmount.cifs)
当然,我们还可以共享我们的windows的分区,但是一定要是英文

热点内容
方舟电脑版怎么进入官方服务器 发布:2024-10-07 11:09:32 浏览:804
百度云快速上传 发布:2024-10-07 10:52:25 浏览:478
java岛屿 发布:2024-10-07 10:29:25 浏览:971
qq会员的密码是多少 发布:2024-10-07 10:26:03 浏览:761
访问源服务器ip 发布:2024-10-07 10:24:31 浏览:55
脚本整理 发布:2024-10-07 10:20:48 浏览:234
图片上传功能java 发布:2024-10-07 10:14:18 浏览:129
rc4c语言实现 发布:2024-10-07 10:08:34 浏览:409
为什么steam每天登录都要输密码 发布:2024-10-07 10:08:33 浏览:437
电脑软件连接不到服务器怎么解决 发布:2024-10-07 10:04:07 浏览:924