Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to solve the problem of mounting USB disk and garbled code in ​ linux

Shulou Source: shulou.com Published: 2022-06-03 06:09:44 10月03日 Update

Linux mounts USB disk and solves the garbled problem.

1. First use to switch to the root user.

two。 Use the fdisk-l command to view the disk information and find the u disk (which can be determined based on the size displayed)

3. Create a mount point under / mnt, such as creating 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 of the loaded u disk is garbled. In this case, you need to make a code when mounting the u disk, for example, by mounting it with the following command: mount-o iocharset=utf8 / dev/sdb / mnt/usb

6. After mounting, you can cd / mnt/usb the contents of U disk and do relevant operations.

7. Uninstall U disk use: umount / mnt/usb

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

The above is the details of how to linux u disk garbled, more please pay attention to other related articles!

Tags: Garbled content command problem information size that is what to do situation file name article more sometimes user directory disk code switch run Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Apple Shulou Information Linux Huawei