In linux without a graphical interface, I have not configured the network. Now I need to copy the file to the linux system. I have used the USB flash disk mounting method to obtain the file in the USB flash disk.
The operating system in the VM. CentOs (no graphical interface)
In linux without a graphical interface, I have not configured the network. Now I need to copy the file to the linux system. I have used the USB flash disk mounting method to obtain the file in the USB flash disk.
1. Set USB properties in VMware
Edit Virtual System Information
Select all three USB Information
2. Enable the USB service of VMware
Remember to check whether the USB service is enabled or not (I did not pay attention to it, but it took a long time to find the cause ), right-click my computer-> Manage-> services and applications-> VMware USB Arbitration Service-> enable Service
3. Plug in a USB flash drive to connect to USB
Choose VMware Virtual Machine> Removable device> USB to start
Click OK
When the icon below VMware is added, the USB connection is successful.
Or use fdisk-l to view the disk status.
---------------------- The connection is successful here. The following is the USB mounting operation.
4. Mount
Enter fdisk-l/dev/sd and press the Tab key twice to display the following picture.
CompletionCommandTo obtain information about my USB flash drive.
Create a directory (usb) under the/mnt directory)
cd /mntmkdir usb
Mount the usb flash drive to the/mnt/usb directory (Note:, The disk is mounted) ----> the content in the USB flash disk cannot be obtained directly without mounting.
mount /dev/sdc1 /mnt/usb
Enter the/mnt/usb directory to obtain the usb flash disk content.
Cd/mnt/usb # enter the Mount path ls # View File Information
Copy a file
Path to the cp file name
5. unmount
Cd/###### return to the root directory unmount/mnt/usb ####### cancel mounting
At this point, files in the USB flash drive have been imported into the virtual machine system.