Home > System Tutorial > LINUX > body text

How to mount a local Windows folder on a Linux system? Detailed tutorial

WBOY
Release: 2024-07-11 13:43:58
Original
881 people have browsed it

如何将本地 Windows 文件夹挂载到 Linux 系统上?详细教程

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:

目录linux_目录英文_linux mnt目录

sudo mount -t cifs -o username=Administrator,password=666666,uid=1000,gid=1000 //192.168.1.100/linux destdir/
Copy after login

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

目录linux_目录英文_linux mnt目录

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:

目录linux_目录英文_linux mnt目录

root:/root#mount-tcifs-ousername=fyc,password=feng,uid=1000,gid=1000//192.168.75.1/Src/mnt/SeNT2.2

linux mnt目录_目录英文_目录linux

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!

source:itcool.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template