当前位置:首页 » 文件管理 » 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的分区,但是一定要是英文

热点内容
为什么租凭服务器不能玩了 发布:2025-07-04 09:03:01 浏览:983
安卓手机减肥软件哪个好 发布:2025-07-04 08:51:17 浏览:994
Oracle查看数据库归档 发布:2025-07-04 08:44:53 浏览:606
950买什么配置好 发布:2025-07-04 08:39:39 浏览:608
怎样给应用加密 发布:2025-07-04 08:38:41 浏览:456
python的注释符号 发布:2025-07-04 08:29:19 浏览:128
守望领域门禁密码是多少 发布:2025-07-04 08:16:22 浏览:333
存储芯片价格 发布:2025-07-04 08:16:20 浏览:356
大地球源码 发布:2025-07-04 08:10:29 浏览:167
棋牌手游源码 发布:2025-07-04 08:10:18 浏览:818