In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Centos7 how to mount windows shared files, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
My centos7 is installed in the vm virtual machine notebook system windows7
Now I want to access the data in windows7.
Implementation steps
one. Share data in a windows7 system
two. Set the mount point mine is under / mnt/share
Create the directory touch / mnt/share
three. Mount usage two necessary parameter directory files for mount, mount point
Mount-t cifs-o username= "Administrator", password= "* *" / / 192.168.1.117/dir directory / mnt/share
View mount information df-h
After rebooting the system, it is found that the mount point is gone.
To be continued
Problems encountered in mounting
[root@localhost /] # mount-t cifs-o username= "Administrator", password= "" / / 192.168.1.100/share / mnt/share
Mount: wrong file system type, wrong options, bad super blocks on / / 192.168.1.100/share,
Missing code page or helper, or other error
(for some file systems (such as nfs, cifs) you may need
One / sbin/mount. Assistant program)
In some cases some useful information can be found in syslog-please try
Dmesg | check out commands like tail.
I read some solutions on the Internet, but I tried to solve them.
Finally, the login password 123 was added to the system where the directory is located.
[root@localhost /] # mount-t cifs-o username= "Administrator", password= "123" / / 192.168.1.100/share / mnt/share
[root@localhost /] # cd..
[root@localhost /] # ls
Bin boot dev etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
[root@localhost /] # cd mnt/share
[root@localhost share] # ls
Jdk-7u79-linux-x64.rpm mysql-5.6.30.tar.gz MySQL-server-5.6.22-1.el6.x86_64.rpm
[root@localhost share] #
Finally, add the automatic mount on the boot.
Modify the fstab file vim / etc/fstab
Add a line to the end of the file
/ / 192.168.1.101/share / mnt/share cifs username=administrator,password=123 0 0
Make sure your computer's ip address is fixed.
Call it a day
After reading the above, have you mastered how centos7 mounts windows shared files? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.