Home > Operation and Maintenance > Linux Operation and Maintenance > What to do if Linux cannot read the USB disk

What to do if Linux cannot read the USB disk

WBOY
Release: 2022-05-23 09:59:06
Original
13086 people have browsed it

Method: 1. Use "modprobe [module]" to add the "usb-storage scsi_mod sd_mod" module and create a new directory in the mnt directory; 2. Use "mount -t vfat /dev/sda* /mnt /New directory name" to create a mount point.

What to do if Linux cannot read the USB disk

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

What to do if Linux cannot read the USB disk

1. Add the specified module

Execute the following command:

#lsmod
Copy after login

Viewusb-storage scsi_mod sd_mod Whether the module has been added, if the above module is not found, execute

#modprobe [module]
Copy after login

to add it.

modprobe is used to automatically handle loadable modules.

1) Syntax

modprobe [-acdlrtvV][--help][模块文件][符号名称 = 符号值]
Copy after login

2) Supplement

modprobe can load specified individual modules, or load a group of dependent modules.

Both insmod and modprobe load kernel modules. The difference is that modprobe can handle the dependency problem of module loading.

Then create a USB directory in the mnt directory.

If only one U disk is currently inserted and your hard disk is not a scsi hard disk interface, then its hardware name is: sda1.

2. Establish a mount point

For example, /mnt/usb, execute the following command

#mount /dev/sda /mnt/usb
Copy after login

Some systems need to point out the mount point file type, you can execute the following command:

#mount -t vfat /dev/sda /mnt/usb
Copy after login

Finally use

umount /mnt/u。
Copy after login

when uninstalling. Recommended learning: Linux video tutorial

The above is the detailed content of What to do if Linux cannot read the USB disk. 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