fat32分区删除文件恢复
升级到Fedora 11后,使用以前的fstab自动挂载我的fat32分区居然发现我的fat32文件系统中的中文文件名显示为乱码。
升级到Fedora 11后,使用以前的fstab自动挂载我的fat32分区居然发现我的fat32文件系统中的中文文件名显示为乱码。
找了下相关资料发现是iocharset的问题:
找了下相关资料发现是iocharset的问题:
iocharset=name — Character set to use for converting between the encoding is used for user visible filename and 16 bit Unicode characters. Long filenames are stored on disk in Unicode format, but Unix for the most part doesn’t know how to deal with Unicode. By default, FAT_DEFAULT_IOCHARSET setting is used.
iocharset = name-用于在编码之间进行转换的字符集用于用户可见的文件名和16位Unicode字符。 长文件名以Unicode格式存储在磁盘上,但是Unix在大多数情况下不知道如何处理Unicode。 默认情况下,使用FAT_DEFAULT_IOCHARSET设置。
Windows文件系统的长文件名是用16位的Unicode存储的, 而Linux文件系统不支持16位的字符,所以需要在两者之间转换,这就是iocharset要完成的功能。
Windows文件系统的长文件名是用16位的Unicode存储的,而Linux文件系统不支持16位的字符,因此需要在两者之间转换,这就是iocharset要完成的功能。
使用utf8=1选项进行mount就可以了,相应的fstab行如下:
使用utf8 = 1选项进行安装就可以了,相应的fstab行如下:
/dev/sda1 /mnt/wxp vfat umask=0000,utf8=1 0 0
使用mount命令时加入 -o utf8=1就可以了。
使用mount命令时加入-o utf8 = 1就可以了。
不建议使用iocharset=utf8选项:
NOTE: “iocharset=utf8” is not recommended.
If unsure, you should consider the following option instead.
utf8=<bool> — UTF-8 is the filesystem safe version of Unicode that is used by the console.
It can be be enabled for the filesystem with this option.
If ‘uni_xlate’ gets set, UTF-8 gets disabled.
<bool> : 0,1,yes,no,true,false
不建议使用iocharset = utf8选项:
注意:不建议使用“ iocharset = utf8”。
如果不确定,则应考虑使用以下选项。
utf8 = <bool>-UTF-8是控制台使用的Unicode的文件系统安全版本。
可以使用此选项为文件系统启用它。
如果设置了“ uni_xlate”,则禁用UTF-8。
<bool>:0,1,是,否,true,false
Reference:
http://linuxman.blog.ccidnet.com/blog-htm-do-showone-type-blog-itemid-283304-uid-60710.html
参考:
http://linuxman.blog.ccidnet.com/blog-htm-do-showone-type-blog-itemid-283304-uid-60710.html
翻译自: https://www.systutorials.com/解决fat32文件系统分区中文文件名在linux下显示乱码/
fat32分区删除文件恢复