Create shared folders in Windows and Linux (Debian and Ubuntu)

Source: Internet
Author: User
Remember to set up a shared directory in Windows under the virtual machine. Recently, we found that the shared directory E:/dirdir is set in Windows. After debian is started on, there is nothing in/mnt/hgfs/mnt, even the/mnt is empty, and there is no hgfs. Therefore, it may be that the old Ubuntu has a/mnt/hgfs directory when the shared directory is set (my original Ubuntu is 8.04, and it is very old). Now let's share it. I set it successfully today.

Remember to set up a shared directory in Windows under the virtual machine.

Recently, we found that the shared directory E:/dirdir is set in Windows. After debian is started on, there is nothing in/mnt/hgfs/mnt, even the/mnt is empty, and there is no hgfs.

Therefore, the old Ubuntu may have a/mnt/hgfs directory when the shared directory is set (my original Ubuntu is 8.04 and it is very old)

Now let's take a look at the steps for setting up a shared directory successfully today:

1. First, set the Windows shared folder under the virtual machine, and disable debian when setting

2. Open debian, enter the superuser, and create a mount directory. Here I create it as/mnt/share

3. Mount the directory in Windows to/mnt/share In debian.

My Windows information:

IP Address: 192.168.1.108

Shared directory name: sharedir

Debian User name: linux

Therefore, run the following command to mount the directory in Windows to debian:

Mount // 192.168.1.108/destination DIR/mnt/share-o username = linux

Now, you can copy objects conveniently in Windows and linux.

Of course, it is better to use the samba server, which is more convenient. Using shared directories is just a low-efficiency method.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.