CentOS system mount Windows shared folder

Source: Internet
Author: User
Tags dmesg

Format:

Mount-t CIFS//ip/share-folder/mnt-point-o Username=your-username,passwd=your-password

Share the F partition (or a folder) under Windows (192.168.230.1) to the user (password is password), make sure that you enter \\192.168.230.1 in CMD to see the shared folder

[[email protected] mnt]# mount-t cifs//192.168.230.1/f/mnt/share/-o username=user,passwd=password[[email protected] m nt]# df-hfilesystem            Size  used Avail use% mounted on/dev/sda2              18G  2.5G   15G  15%/tmpfs                 137M     0  137M   0%/dev/shm/dev/sda1             291M   32M  244M  12%/boot.host:/                40G   28G   13G  70%/mnt/hgfs//192.168.230.1/f     3.9G   48M  3.8G   2%/mnt/share


Common errors:

1. The command line does not contain a user name and password

[Email protected] mnt]# mount-t cifs//192.168.230.1/f/mnt/share/
Mount:wrong fs type, bad option, bad superblock on//192.168.230.1/f,
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

[Email protected] mnt]#DMESG | tail

CIFS Vfs:cifs_mount failed W/return code = 22


2. The command line does not contain a password

[Email protected] mnt]# mount-t cifs//192.168.230.1/f/mnt/share/-o username=***
Mount:block device//192.168.230.1/f is write-protected, mounting read-only
Mount:cannot mount block device//192.168.230.1/f read-only

[Email protected] mnt]# DMESG | tail

Status code returned 0XC000006D nt_status_logon_failure
CIFS vfs:send Error in Sesssetup = 13
CIFS Vfs:cifs_mount failed W/return code = 13



Related Article

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.