How to mount a USB flash drive under virtual machine

Source: Internet
Author: User

First, the Linux file directory

When it comes to mounting, a simple understanding of the Linux file directory, purely personal understanding, if there are problems, we welcome the comments of Daniel.

The Linux file directory complies with FHS (Filesystem Hierarchy Standard) file standards, FHS organizes files in a tree-shaped structure,

Broadly divided into:

/: Root directory

/bin: Command program binaries are used for all users
/sbin: Command binaries are used by administrators
/boot: The storage location of the kernel bootloader is related to system startup
/dev:device where the device files are stored
/etc: Configuration file
/etc/x11 Graphical Interface
/home: Optional General user's House directory,/home/username
/lib: Base, basic shared library, kernel module;

/media Mobile Media provides mount point

/mnt temporary file system, non-convenient: mount point

/opt: Optional Software Installation path, installation package for third-party applications
/root: Administrator's home directory;
/srv: Intermediate data in a service run
/tmp: Temp file
/usr: (readonly shared, read-only, files not allowed to be changed by other users)
/usr/share
/usr/bin
/usr/sbin
/usr/lib
/USR/SRC Source program
/usr/include header file path all library-defined function declarations

Second, Mount

General mount directory for the/mnt directory, according to the Mount type, to establish the corresponding mount directory, the following with a U disk as an example to illustrate:

1. Set up USB folder under MNT

[Email protected]/]# mkdir MNT/USB

2. See what devices are available under the system

To view the partition information for all the hard disks on the system: partitions are displayed without partitions.

[Email protected]/]# fdisk-l

3, plug in the Virtual machine toolbar device settings such as U disk

Virtual machine---Removable device---suyinlaptop_integrated-webcam_hd--connection

4. See what devices are in the system, compare and check before and after inserting USB stick

[Email protected]/]# fdisk-l

Perform mount

[Email protected]/]# mount-t msdos/dev/sdb1/mnt/usb/

viewing mounted files

[Email protected]/]# ls/mnt/usb/
Monito~1.tgz networ~1.gz network-.98 php-we~1.zip system~1 thold-~1.tgz ylmf_g~1.iso



How to mount a USB flash drive under 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.