The problem of garbled Chinese characters when mounting U disk under LINUX

  1. First use to switch to the root user.

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

  3. Create a mount point under /mnt, for example, create a usb directory: mkdir /mnt/usb

  4. Use mount to mount the USB disk, such as running: mount /dev/sdb /mnt/usb

  5. Sometimes the file name displayed on the loaded USB flash drive is garbled. In such a situation, you need to specify the encoding when mounting the USB flash drive, such as the following command to mount: mount -o iocharset=utf8 /dev/sdb /mnt /usb
    or mount /dev/sda1 /mnt/usb_disk -o utf8=1

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

  7. Uninstall the USB disk using: umount /mnt/usb

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

Guess you like

Origin blog.csdn.net/coinv2014/article/details/110109072