How to mount U disk under linux

王林
Release: 2020-11-03 10:01:57
Original
27155 people have browsed it

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.

How to mount U disk under linux

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
Copy after login

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!