Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openwrt固件samba和ftp查看FAT32格式U盘文件中文乱码 #2136

Closed
yu13740000 opened this issue Nov 24, 2019 · 12 comments
Closed

openwrt固件samba和ftp查看FAT32格式U盘文件中文乱码 #2136

yu13740000 opened this issue Nov 24, 2019 · 12 comments

Comments

@yu13740000
Copy link

如题,刷了好多版本的openwrt固件,samba和ftp查看u盘文件,只要中文名字的就乱码,U盘文件系统FAT32,百度搜了很多方法都没有解决办法。
硬路由上Pandorabox和老毛子固件,同样这个U盘,不乱码。
请大佬指点一下。

@yu13740000
Copy link
Author

root@OpenWrt:# umount /mnt/sdb1
root@OpenWrt:
# mount -t vfat -o iocharset=utf8 /dev/sdb1 /mnt/sdb1
这种临时挂载utf8的方法是可以显示中文的,但是一重启路由,或者拔插U盘后就又乱码了

@z826540272
Copy link
Contributor

系统,挂载点,重新添加挂载,修改挂载参数

@yu13740000
Copy link
Author

感谢支招,刚刚试了一下,还是乱码,请问你自己测试过吗?

@HiGarfield
Copy link
Contributor

挂载点参数改为
iocharset=utf8,umask=0000,dmask=0000,fmask=0000

@yu13740000
Copy link
Author

请问这个参数加在哪里

@HiGarfield
Copy link
Contributor

HiGarfield commented Nov 30, 2019

请问这个参数加在哪里

/etc/config/fstab

@yu13740000
Copy link
Author

感谢,测试了一下,挂载参数添加了iocharset = utf8在u盘插上重启openwrt后,确实能显示中文,但是热拔插U盘后就还是乱码了

@coolsnowwolf
Copy link
Owner

auto-fs 的锅,别编译进去

@yu13740000
Copy link
Author

谢谢大雕兄!

@zhg-em
Copy link

zhg-em commented Dec 20, 2019

谢谢大雕兄!

编译菜单中找不到auto-fs的选项呀!

@ferre-han
Copy link

auto-fs 是个什么鬼

@likingzi
Copy link

我也遇见了类似问题,加上iocharacter也不行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants