|
本帖最后由 Yaksa 于 2014-6-9 20:50 编辑
折腾了2天,搜了无数文章,内核配置也改过,mount参数也试过,都搞不定,求帮忙。
开发板:TQ2440
系统:Linux 3.4.2
终端工具:xshell 和 secureCRT (编码和字体都试过)
现在内核配置是这样的:
*- Native language support --->
<* > Simplified Chinese charset (CP936, GB2312)
<* > NLS UTF-8
File systems --->
DOS/FAT/NT Filesystems --->
<*> MSDOS fs support
<*> VFAT (Windows-95) fs support
(936) Default codepage for FAT
(cp936) Default iocharset for FAT
mount时试过如下组合:
mount /dev/sda4 /mnt -t vfat -o iocharset=utf8
mount /dev/sda4 /mnt -t vfat -o utf8
mount /dev/sda4 /mnt -t vfat -o codepage=936,iocharset=utf8
...
都显示乱码。
===================分割线===================
# mount /dev/sda4 /mnt -t vfat -o iocharset=utf8
# cat /proc/mounts
...
/dev/sda4 /mnt vfat rw,relatime,fmask=0022,dmask=0022,codepage=cp936,iocharset=cp936,shortname=mixed,utf8,errors=remount-ro 0 0
# mount /dev/sda4 /mnt -t vfat -o iocharset=utf8
FAT-fs (sda4): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
# cat /proc/mounts
/dev/sda4 /mnt vfat rw,relatime,fmask=0022,dmask=0022,codepage=cp936,iocharset=utf8,shortname=mixed,errors=remount-ro 0 0
===================分割线===================
插入U盘时的文字提示:
usb 1-1.1: new full-speed USB device number 3 using s3c2410-ohci
scsi0 : usb-storage 1-1.1:1.0
scsi 0:0:0:0: Direct-Access Generic Flash Disk 8.07 PQ: 0 ANSI: 2
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 966656 512-byte logical blocks: (494 MB/472 MiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] No Caching mode page present
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] No Caching mode page present
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda4
sd 0:0:0:0: [sda] No Caching mode page present
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
|
阿莫论坛20周年了!感谢大家的支持与爱护!!
月入3000的是反美的。收入3万是亲美的。收入30万是移民美国的。收入300万是取得绿卡后回国,教唆那些3000来反美的!
|