How to solve the centos USB disk garbled problem

藏色散人
Release: 2022-01-11 11:55:15
Original
1795 people have browsed it

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. .

How to solve the centos USB disk garbled problem

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

How to solve the centos USB disk garbled problem

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

How to solve the centos USB disk garbled problem

Step 3: Mount the USB disk

1) Check which device the USB disk is

fdisk -l

How to solve the centos USB disk garbled problem

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

How to solve the centos USB disk garbled problem

Mount U disk

mount -o iocharset=utf8 /dev/sdc1 /mnt/upan 
Copy after login

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

How to solve the centos USB disk garbled problem

Step 4: You can use the USB disk

How to solve the centos USB disk garbled problem

If To unmount umount mount point

Example:

umount /mnt/upan

How to solve the centos USB disk garbled problem

/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!

Related labels:
source:php.cn
Statement of this Website
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 [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!