How to mount a USB flash drive in Linux, how to mount a USB flash drive in virtual machines, and how to mount a USB flash drive in Ubuntu

Source: Internet
Author: User

Step 1: view the USB flash disk Information
First, run the sudo fdisk-l command to check where the USB flash disk is located, that is, where the USB disk is mounted.

(If the fdisk-l command is used directly without any results, you must add sudo to run it as an administrator)

After viewing this information, you may see the following information:

Disk/dev/SDA: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 Cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Sector size (logical/physical): 512 bytes/512 bytes
I/O size (minimum/optimal): 512 bytes/512 bytes
Disk identifier: 0x2076fe3d

Device boot start end blocks ID system
/Dev/sda1*1 3984 32001448 + 7 HPFs/NTFS
/Dev/sda2 3985 30401 212194552 + F w95 ext 'd (LBA)
/Dev/sda5 3985 11952 64002928 + B w95 FAT32
/Dev/sda6 11953 19920 64002928 + B w95 FAT32
/Dev/sda7 19921 30401 84188601 7 HPFs/NTFS

Disk/dev/SDC: 127 MB, 127139840 bytes
8 heads, 32 sectors/track, 970 Cylinders
Units = cylinders of 256*512 = 131072 bytes
Sector size (logical/physical): 512 bytes/512 bytes
I/O size (minimum/optimal): 512 bytes/512 bytes
Disk identifier: 0x00000000

Device boot start end blocks ID system
/Dev/sdc1 1 970 124115 B w95 FAT32
Partition 1 has different physical/logical beginnings (non-Linux ?) :
Phys = (0, 2, 0) logical = (0, 2, 27)

From the last few lines, we can see that the U disk is mounted under/dev/sdc1. Remember this mount point, which varies according to the Linux system.

Step 2: mount the USB flash drive to the specified Node
We mounted the U disk to the/mnt/USB directory (we can see that it is a USB flash drive in FAT32 format)
# Mount-T vfat/dev/sdc1/mnt/USB
If it is an ntfs u disk, it is similar to the following:
# Sudo Mount-T ntfs-3g/dev/sdc1/mnt/USB
/Mnt/USB: Specify the node you want to attach.

Then you can access the USB flash disk through CD/mnt/USB.

Step 3: unmount the USB flash drive
Run the following command: # sudo umount/mnt/USB flash drive is uninstalled (Note: you cannot enter the preceding command in the/mnt/USB directory, otherwise, the system will think that your "device is busy" and refuse to detach the USB flash drive ).

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.