LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 972|回复: 11

the error of "mount -t vfat -o codepage=936,iocharset=cp936 /dev/hda8

[复制链接]
发表于 2006-3-28 20:59:53 | 显示全部楼层 |阅读模式
# mount -t vfat -o codepage=936,iocharset=cp936 /dev/hda8 /mnt/E
mount: wrong fs type, bad option, bad superblock on /dev/hda8,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
发表于 2006-3-28 21:06:40 | 显示全部楼层
可能是你的内核没有包括对vfat的支持。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-28 21:21:13 | 显示全部楼层
我是用genkernel编译内核的。那要重新编译内核吗?
以前编译的东西不会白干了吧:)
可是我用mount /dev/hda8 /mnt/E是可以的呀。
只是不能显示中文文件名。
回复 支持 反对

使用道具 举报

发表于 2006-3-28 22:08:49 | 显示全部楼层
你的/dev/hda8使用的是fat32格式吗?
如果是ntfs的话要用
  1. mount -t ntfs -o utf8 /dev/hda8 [somewhere]
复制代码

当然,内核也要支持ntfs才行

redhat版有个帖子是关于用haldaemon自动mount硬盘分区和u盘的
建议楼主看看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-29 07:28:35 | 显示全部楼层
解决不了:)可能是我没表述清楚。
分区格式一定是fat32的。fdisk -l也是这样显示的。
我用mount -t vfat /hda8 /mnt/E也是可以挂载的。只是显示的中文文件名是????号。
而以前在别的发行版上,都是加了codepage=936,iocharset=cp936就可以了。不知在gentoo里怎么不行?
回复 支持 反对

使用道具 举报

发表于 2006-3-29 07:42:19 | 显示全部楼层
如果你使用的utf8的locale,那么你试试这样挂载
mount -t vfat -o iocharset=utf8 /dev/hda8 /mnt/hda8
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-29 07:44:35 | 显示全部楼层
可以了。可是我也曾试过用
mount -t vfat -o codepage=936 iocharset=utf8 /dev/hda8 /mnt/hda8
为什么不能加codepage=936呀,这个不是中文的代码吗?
回复 支持 反对

使用道具 举报

发表于 2006-3-29 08:46:38 | 显示全部楼层
mount -t vfat -o codepage=936[color="Red"],iocharset=utf8 /dev/hda8 /mnt/hda8
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-3-29 08:52:27 | 显示全部楼层
是我笔误。我就是这样写的。
依然不行。
回复 支持 反对

使用道具 举报

发表于 2006-3-29 09:12:43 | 显示全部楼层
codepage=936是GB的编码,Win2000之后Windows在文件系统里都用UNICODE编码了。
还有你的locale是UTF8么?编译内核和GLIBC时有没有加入UTF8支持?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表