Home>Article>Operation and Maintenance> How to solve the centos USB disk garbled problem
Solution to centos U disk garbled code: 1. Insert the U disk; 2. VirtualBox settings enable the U disk; 3. Execute the "mount -o iocharset=utf8 /dev/sdc1 /mnt/upan" statement. .
The operating environment of this article: centos6.5 system, virtualBox5.2.8, Dell G3 computer.
How to solve the garbled problem of centos U disk?
virtualBox linux centos mount U disk to solve the garbled problem
linux mount U disk
Environment: virtual machine virtualBox5.2.8 linux centos6.5 64bit
The first step: Insert the U disk
Second Step: virtualBox settings enable USB disk
Tips: If you don’t know which USB disk is yours, you can check the properties of the USB disk under Windows, or pull it out and reinsert it,
usb settings The extra item here is the USB disk just inserted
Step 3: Mount the USB disk
1) Check which device the USB disk is
fdisk -l
Find the 'Device Boot' item of its USB disk device. Remember, this is /dev/ sdc1
2) Mount the USB disk
Create a mount point
mkdir /mnt/upan
Mount U disk
mount -o iocharset=utf8 /dev/sdc1 /mnt/upan
Explanation: -o means option. If the encoding is not set, after the mounting is completed, the Chinese character of the U disk file name will be garbled
Connection Tools, also set the utf8 encoding I use xshell
Step 4: You can use the USB disk
If To unmount umount mount point
Example:
umount /mnt/upan
/END
Recommended tutorial: "centos tutorial"
The above is the detailed content of How to solve the centos USB disk garbled problem. For more information, please follow other related articles on the PHP Chinese website!