Home >Operation and Maintenance >Linux Operation and Maintenance >What to do if Linux U disk is garbled

What to do if Linux U disk is garbled

藏色散人
藏色散人Original
2020-05-21 11:34:283158browse

What to do if Linux U disk is garbled

What should I do if the Linux USB disk is garbled?

Linux mounts U disk and solves the problem of garbled characters

1. First, switch to the root user.

2. Use the fdisk -l command to view disk information and find the USB disk (can be determined based on the displayed size)

3. Create a mount point under /mnt, such as creating a USB directory: mkdir /mnt/usb

4. Use mount to mount the USB disk, for example, run: mount /dev/sdb /mnt/usb

5. Sometimes the loaded USB disk displays The file name is garbled. When you encounter this situation, you need to specify the encoding when mounting the USB disk. For example, mount it through the following command: mount -o iocharset=utf8 /dev/sdb /mnt/usb

6. After the mounting is complete, you can cd /mnt/usb to access the contents of the USB disk and perform related operations

7. To uninstall the USB disk, use: umount /mnt/usb

8. Delete the created mount point: rm -rf /mnt/usb

Recommended: "linux tutorial"

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