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