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

What to do if Linux cannot read the USB disk

WBOY
WBOY Original
2022-05-23 09:59:06 12944browse

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

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

#modprobe [module]

to add it.

modprobe is used to automatically handle loadable modules.

1) Syntax

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

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

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

#mount -t vfat /dev/sda /mnt/usb

Finally use

umount /mnt/u。

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!

Statement:
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