Linux hangs on Windows share

Source: Internet
Author: User

There is a strange problem with mounting Windows shares under Linux:

Mount-t cifs-o username=bak,password=bak//192.168.10.3/f$/backup//backup/tip mount://192.168.10.3/f$/backup/is not a Valid block device

But

Mount-t cifs-o Username=bak,password=bak//192.168.10.3/f$/backup/

is normal.


In fact, this is because the Linux default does not recognize CIFS, need to install Cifs-utils

Yum-y Install cifs-utilsmount-t cifs-o username=bak,password=bak//192.168.10.3/f$/backup//backup/

This time it will be normal to mount.


This time modify/etc/fstab, add (the following is read-only mount)

\\192.168.10.3\f$\backup/backup CIFS Ro,username=bak,password=bak 1 2 writable Mount \\192.168.10.3\f$\backup/backup CIFS R W,username=bak,password=bak 1 2

If you need to specify a user right

\\192.168.10.3\f$\backup/backup CIFS rw,username=bak,password=bak,uid=500,gid=800 1 2

Specify user gid and UID


This article is from "Maple Night" blog, please be sure to keep this source http://fengwan.blog.51cto.com/508652/1837210

Linux hangs on Windows share

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.