Home>Article>Operation and Maintenance> How to mount U disk under linux
How to mount a U disk under Linux: 1. Create a mounting directory in the mnt directory; 2. Insert the U disk and execute the [mount -t vfat /dev/sdb /mnt/usb] command to mount 3. Enter the mounting directory and check whether the mounting is successful.
Environment:
linux operating system
First of all, you must ensure that the format of your U disk is FAT format.
(Video tutorial recommendation:linux video tutorial)
First enter the /mnt/ directory and create a new usb directory
cd /mnt/ mkidr usb
First fdisk -l, then Plug in the USB flash drive and run fdisk -l
to check if a new hard drive has been added?
Then execute the mount
mount -t vfat /dev/sdb /mnt/usb
Here -t vfat refers to the fat format, /dev/sdb refers to the U disk, and /mnt/usb is the mounting place
cd /mnt/usb
Enter here to see if you can see the contents of the USB disk
If not, create a new file, and then umount /dev/sdb. If the file disappears and is mounted again, it is displayed again. That means Mounting successful.
Recommended tutorial:linux tutorial
The above is the detailed content of How to mount U disk under linux. For more information, please follow other related articles on the PHP Chinese website!