In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "the method of mutual access between Windows and Linux file system". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Samba software realizes sharing Linux file system to Windows users.
Samba software is regarded as the fifth most valuable open source software. The way to get it is very easy, and the configuration is also very easy to use. Take the fedora system as an example to see whether samba has been installed locally. If the / etc/init.d/smb file exists, the samba software has been installed, otherwise, use the following command to install it:
Yum install samba
After the installation is complete, modify the configuration file, open: / etc/samba/smb.conf, and add the following configuration at the end of the file:
[root] comment = root path = / create mask = 64 writeable = yes browseable = yes valid users = root
What this configuration means is to create a share called root and share the root file directory "/" with the user. The user name that allows login is root.
Then add the root user to the samba system, using the following command:
Smbpasswd-a root
Follow the prompts to set the password for the root user.
Restart the samba service.
Service smb restart
Check to see if the smb process is running:
Root 1787 0.0 0.4 33068 4784? Ss 21:51 0:00 smbd root 1788 0.0 0.2 33068 2580? S 21:51 0:00 _ smbd
On the Windows client that needs to access the Linux system, open the Windows Explorer and enter:\ 192.168.1.110 in the address bar
You will find that you are prompted for a shared root. When you double-click access, you will be prompted for a user name and password, and you will be able to access it by entering the previously configured root user and password. Here is the Samba software to implement the server side of CIFS, Windows resource management as a client to access the remote shared file system. To make it easier to use the file system, you can also map the share to a local drive letter and let the various tools on Windows use the directory as if it were a local disk. All operations done on the share on Windows are synchronized to the Linux system in real time.
2. Linux accesses the sharing of Windows
The above method with the help of Samba is commonly used. Another kind, the Windows system is naturally a CIFS server and client. Since the Windows system can share directories with the Windows system, can the Linux system access these shares? The answer is yes, because of the strong VFS support, Linux supports mounting and accessing various file systems. The mount tool supports file systems hanging from CIFS or even NTFS. If it is a Linux virtual machine on the Windows machine, then you can directly share the local disk partition to the Linux system through the virtual machine management software, such as Vmware, and the Linux system can be mounted according to the file system type of the Windows disk partition. The scheme will not be detailed here.
To get to the point of this paragraph, first we need to share a directory of Windows:
Take Windows XP as an example, Windows 7 is not validated and should be similar. Before sharing, you first need to make sure that the server service of the Windows system is started, as shown below:
Select the directory to be shared, right-click, properties, and select the "share" page, as shown below:
Choose to share this folder on the network and specify a share name. Choose whether to allow remote users to modify the folder as needed. In this way, the folder is shared for remote access.
Mount the share under the Linux system:
[root@f2 ~] # mount-t cifs-o username= "Test" / / 192.168.1.100/sourcecode / root/sourcecode Password for Test@//192.168.1.100/sourcecode:
Enter the password of the specified user as required.
At this point, the shared sourcecode directory of Windows is mounted on the Linux system, and the Linux system can access it as if it were a local directory.
This is the end of the content of "how to access each other between Windows and Linux file systems". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.