Linux (RedHat5) mounting USB flash drives in virtual machines

Source: Internet
Author: User
Today, I tried to mount a USB flash drive in RedHat5. My USB flash drive is fat32, but it has been around for a long time. I also used fdisk-l to view the disk information in linux, But it displays the sda information in linux. You cannot see the USB flash disk information. Later, I found that the VM has a USB flash drive loaded. The VM needs to add a USB connection to the Removable device, so that the USB flash drive will disappear from the window and jump to the linux OS, you can use fdisk-l to view it... Then

I tried to mount the USB flash drive in Red Hat 5 today. My USB flash drive is fat32, but it has been around for a long time. I also used fdisk-l to view the disk information in linux, But it displays the sda information in linux. You cannot see the USB flash disk information. Later, I found that the VM has a USB flash drive loaded. The VM needs to add a USB connection to the Removable device, so that the USB flash drive will disappear from the window and jump to the linux OS, you can use fdisk-l to view it...

Then, under the mnt directory, create a mount file, such as usb, and then use the mount command, mount/dev/sdb1/mnt/usb

In this way, it is mounted. Run the ls command to view the files in the USB flash drive.

When deleting a mount point, be sure not to delete the mount point from the usb file.

To exit the usb directory, use umount/dev/sdb1

Delete the mount point ....

For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10

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.