Home > Article > System Tutorial > How to mount a local Windows folder on a Linux system? Detailed tutorial
Generally during the development process, because in most cases the windows system is used for development linux mnt directory, and some program projects need to be compiled and run on Linux.
Because the systems are different, it is relatively troublesome to switch systems back and forth. Hongqi Linux official website, here is a trick to mount the local windows folder to the Linux system, which makes debugging and development very convenient.
There is no need to install any nfs_server tools, just one command to mount the next shared directory under Windows.
Implementation method:
sudo mount -t cifs -o username=Administrator,password=666666,uid=1000,gid=1000 //192.168.1.100/linux destdir/
Explain the parameters:
username: Windows login account
password: The login password corresponding to the Windows login account
uid and gid: the group to which the permission belongs,
//192.168.1.100/linux: shared folder on windows
destdir: The directory that needs to be mounted on the Linux system
I mounted a locally shared win directory to the VM virtual machine with the following command:
root:/root#mount-tcifs-ousername=fyc,password=feng,uid=1000,gid=1000//192.168.75.1/Src/mnt/SeNT2.2
Add, delete or modify bb.txtlinux mnt directory on windows or linux, and you will see the changes immediately on the other end.
Note:
If it cannot be mounted normally, please review the Windows system firewall, Linux system, network, user permissions and other related issues and check the feedback information of the Linux system mount command failure!
The above is the detailed content of How to mount a local Windows folder on a Linux system? Detailed tutorial. For more information, please follow other related articles on the PHP Chinese website!