Mount a USB flash drive in Linux and unmount the USB flash drive: 1. after inserting the USB flash drive, enter fdisk-l or fdisk-ldevsdb on the Linux Terminal to view the hard disk and partition information) this indicates that the device has been identified and its name is sdb1. 2. create a USB flash drive attached to Linux. unmount the USB flash drive: 1. Insert the USB flash drive and enter fdisk-l or fdisk-l/dev/sdb on the Linux Terminal, (view the hard disk and partition information) as follows, it indicates that the device has been identified and its name is sdb1. 2. create a mount Directory # mkdir/mnt/usb 3 to mount the usb flash drive to the/mnt/usb Directory. The mount command format is as follows: mount [-parameter] [device name] [mount point] [other parameters] mount-t vfat/dev/sdb1 // mnt/usb-o iocharset = gb2312-t specifies the device's file system type, here, The-t vfat is used because the file system type of the U disk is fat32, and-t ntfs is used for ntfs. you can flexibly modify it according to your file system type. -O specifies the option for mounting the file system. here,-o iocharset = gb2312 sets the Chinese character set. Assuming that your locale is a zh_CN.UTF-8, the corresponding command should be-o iocharset = utf8. The usb flash disk is mounted successfully, so that you can view the content of the usb flash disk in the/mnt/usb directory. 4. The U disk unmount command umount/mnt/usb can detach the U disk from the specified directory. Note that when detaching a USB flash drive, the terminal must exit from the Mount Directory of the current USB flash drive; otherwise, the user is busy.
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.