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.