How to mount the U disk under linux: 1. Create a mount directory under the mnt directory; 2. Insert the U disk and execute the [mount -t vfat /dev/sdb /mnt/usb] command to mount 3. Enter the mount directory and check whether the mount is successful.
Environment:
linux operating system
First of all, you have to 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 U disk, fdisk -l
Check if there is a new hard disk added?
Then perform the mount
mount -t vfat /dev/sdb /mnt/usb
here- t vfat refers to the fat format, /dev/sdb refers to the U disk, /mnt/usb is the place to mount
cd /mnt/ usb
Enter here to see if you can view the contents of the u disk
If not, create a new file, then umount /dev/sdb If the file disappears, mount it again If it is displayed, it means that the mount is successful.
Recommended tutorial: linux tutorial
The above is the detailed content of how to mount the U disk under linux, please pay attention to other related articles on 1024programmer.com for more information!