How to load USB flash drives in Linux
1. When using RedHat 8.6 For the first time, you may encounter the following situations when loading a USB flash disk;
1. I do not know if the linux operating system on the virtual machine has identified the USB flash disk;
2. How to mount a USB flash drive to the system;
3. Solve Chinese garbled characters;
Ii. solution:
1. Run the fdisk-l command to check the hard disk status in the current system;
2. Insert the USB flash disk and run the fdisk-l command (keep the focus in the virtual machine operating system) to view the corresponding device;
3. Create a folder to load the usb flash drive: mkdir/mnt/usb
4. Attach a USB flash drive:
(1) the loading method varies with the USB flash drive format. The following methods are generally used:
(A) mount-t msdos/dev/sdb1/mnt/usb
(B) mount-t vfat/dev/sdb1/mnt/usb
(C) mount-t ext2/dev/sda1/mnt/usb
Note: [dev/sdb1] is the corresponding USB flash drive device. Different systems may be different. Do not stick them together );
5. view the content under the USB flash disk
Ls/mnt/usb
6. the USB flash drive command is displayed:
Umount/dev/sdb1
Note: Same as above.
Iii. troubleshooting of garbled data
Author "xueyue"