File Mount _ copy the USB flash drive file to the linux system on the Virtual Machine

Source: Internet
Author: User
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.

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.