centos6.4 *64 Linux Mounts shared folders under Windows

Source: Internet
Author: User


centos6.4 *64 Linux Mounts shared folders under Windows


Mount //192.168.1.21 /mnt/pub

The result can not be mounted properly, prompting the following error, starting to think that the shared folder under Windows is NTFS format problem, under a ntfs-3g, still invalid, and later found that the component package is missing cifs-utils


[email protected] ~]# Mount//192.168.1.25/pub/mnt/pub
Mount:wrong fs type, bad option, bad superblock on//192.168.1.25/pub,
Missing codepage or helper program, or other error
(for several filesystems (e.g. NFS, CIFS) might
Need a/sbin/mount.<type> Helper Program)
In some cases useful info are found in Syslog-try
DMESG | Tail or so


Finished installing after Cifs-utils The following error is displayed when you mount the root directory directly

[email protected] mnt]# mount-t cifs//192.168.1.25/mnt/pub
Password:
Retrying with upper case share name
Mount Error (6): No Such device or address
Refer to the Mount.cifs (8) manual page (e.g. Mans mount.cifs)

#经多次尝试后发现不能挂载根目录, you can mount only the shared file name,


After many searches and attempts to find a few problems

1. A component package is missing cifs-utils

2.linux cannot mount the root directory directly, such as: //192.168.1.21, only files can be mounted //192.168.1.21/pub



Solution Solutions

1. A lack of a cifs-utils package, installation can be yum-y install cifs-utils

2.Linux cannot mount the root directory directly, such as://192.168.1.21, can only mount shared folders //192.168.1.21/pub

3. If the shared file does not have a password password: enter directly; Mount//192.168.1.25/pub/mnt/pub

4. If the shared file is set with a password Mount-o username= username , passwd=passwd//192.168.1.21/pub/mnt/pub

#按照以上命令挂载即可, note that there must be "," between username and passwd, and there should be no spaces.

5. I'm trying to add no parameters to mount behind - T CIFS can be mounted



Finally release the Mount problem:

[Email protected] pub]# umount/mnt/pub
Umount:/mnt/pub:device is busy.
(In some cases useful info about processes
The device is found by lsof (8) or fuser (1)).

#卸载挂载文件时用户不能操作已挂在的文件, otherwise the above error will occur, if you enter the/mnt/pub directory, and then exit the/mnt/pub directory, you can unload the mount file normally


[Email protected] pub]# CD.
[Email protected] mnt]# umount/mnt/pub




This article is from the "Statby blog" blog, make sure to keep this source http://statby.blog.51cto.com/7588140/1431156

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.