How to copy a USB drive file into a VMware Linux CentOS6.5 virtual machine

Source: Internet
Author: User

Prior to installing Oracle under Linux CentOS This essay I mentioned to unzip the downloaded installation file

So, here's the problem!

How do I copy a downloaded file into a virtual machine?

That's what I did:

1. Copy the downloaded file into the USB drive

2, as root user, use the fdisk-l command to query all current partitions:

[Email protected] ~]# fdisk-l

disk/dev/sda:42.9 GB, 42949672960 bytes255 heads, sectors/track, 5221 cylinders
Units = Cylinders of 16065 * 8225280 bytes

Device Boot Start End Blocks Id System

/DEV/SDA1 * 1 305203+ Linux
/dev/sda2 4964 39568095 Linux
/dev/sda3 4965 5221 2064352+, Linux Swap/solaris
[Email protected] ~]#

3, insert the USB flash drive, and then use the FDISK-L command:

[Email protected] ~]# fdisk-l

disk/dev/sda:42.9 GB, 42949672960 bytes
255 heads, Sectors/track, 5221 cylinders
Units = Cylinders of 16065 * 8225280 bytes

Device Boot Start End Blocks Id System
/DEV/SDA1 * 1 305203+ Linux
/dev/sda2 4964 39568095 Linux
/dev/sda3 4965 5221 2064352+, Linux Swap/solaris

disk/dev/sdb:7948 MB, 7948206080 bytes
Bayi heads, Sectors/track, 19165 cylinders
Units = Cylinders of 810 * 414720 bytes

Device Boot Start End Blocks Id System
/DEV/SDB1 19166 7757824 b W95 FAT32

Then you can see one more partition: Disk/dev/sdb, this is just the inserted USB stick.

4. Create a directory using the Mount command to mount the USB flash drive to this directory:

First, create a USB directory under/MNT:

[[Email protected] ~] #mkdir/MNT/USB

Use the Mount command to mount the USB flash drive to the USB directory:

[[Email protected] ~] #mount/DEV/SDB/MNT/USB

5. Finally, you can use the CP command to copy the files in the USB drive to the virtual machine.

How to copy a USB drive file into a VMware Linux CentOS6.5 virtual machine

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.