Production environment:
OS : CentOS release 6.8 (Final)
U Disk: FAT32
Task: Copy the contents of the USB flash drive to the Linux related directory.
#mkdir/mnt/usb #创建一个目录 for mounting a USB flash drive
#fdisk-L #查看系统中挂载的U盘, if the system has a hard disk SDB1 on behalf of your USB stick,/DEV/SDB1 indicates that the machine has recognized the USB flash drive,
#mount/dev/sdb1/mnt/usb
# cp/mnt/usb/application/nginx/html/#中文显示乱码
#umount/mnt/usb or #umount/dev/sdb1 #卸载U盘
#rm-rf/mnt/usb #删除创建的挂载点
By trying to use the following methods, eventually there is no problem solving garbled
1, general Use this command:
#mount-O Iocharset=utf8/dev/sdb/tmp/fat
2, try the following command: According to the U disk file format, using the following command is consistent, but eventually did not solve the problem.
#mount/dev/sdb1/mnt-t Vfat-o Codepage=936,iocharset=utf8
#mount/dev/sdb1/mnt-t Vfat-o Iocharset=utf8
#mount/dev/sdb1/mnt-t Vfat-o codepage=936,iocharset=gb2312
#mount/dev/sdb1/mnt-t Vfat-o CODEPAGE=936,IOCHARSET=GBK
#mount/dev/sd1b/mnt-t Vfat-o codepage=936,iocharset=gb18030
This article is from the "sky9890" blog, make sure to keep this source http://sky9896.blog.51cto.com/2330653/1886617
Linux mount USB stick, Chinese display as garbled