Linux USB stick mount, uninstall

Source: Internet
Author: User

1. After inserting the USB drive, enter the Fdisk-l command under Linux, as shown below


Indicates that the device has been identified and that the name of the device is SDB1.

2. Set up a mounted USB mount directory (can be customized directory)

#mkdir/mnt/usb

3. Mount the USB stick in the/mnt/usb directory

Mount command format: Mount [-parameters] [device name] [mount Point] [other parameters]
Mount-t vfat/dev/sdb1//mnt/usb-o iocharset=gb2312
-t specifies the device's file system type, where the use of-t VFAT is due to the file used by the USB flash drive

System type is FAT32, if it is NTFS use-t NTFS and so on, you can according to their own

The file system type is flexibly modified.

-o Specifies the option to mount the file system, where-o iocharset=gb2312 sets the Chinese character set.

Let's say your locale is ZH_CN. UTF-8, the corresponding command should be-o Iocharset=utf8.

Then the USB stick is mounted successfully, so you can view the contents of the USB flash drive in the directory/mnt/usb directory.

Unloading of the 4,u disk

Command UMOUNT/MNT/USB can unload a USB flash drive from the specified directory.


note that when uninstalling a USB stick, the terminal must exit from the Mount directory of the current USB drive, or the user will be busy.


Linux USB stick mount, uninstall

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.