文件系统自动mount又遇麻烦,help me!

由 xchen 在 06-02-2002 17:20 发表:

文件系统自动mount又遇麻烦,help me!

我的硬盘装了2K,其中有个d盘(hda5)

我希望在linux里能够访问,于是便在/etc/fstab中加了一行:

/dev/hda5 /mnt/diskd vfat defaults 0 0

系统重启后能够读写,但是文件夹(中文)却是????,无法访问,开始我还以为是乱码,于是装了一个hcon,启动汉字系统后情况依旧,百思不得其解!!!

还有一个问题:

mount的文件系统,比如上面的/mnt/diskd,不能够chmod 777,好像只能属主读写,我在伤疤里共享此文件夹,便只能读不能写,不知为何故,惑!!

来啊来啊,help me!


由 pandonny 在 06-02-2002 21:39 发表:


兄弟,帖子贴错地方了吧。。。。

第一个问题:

mount的时候应该加上支持中文的参数,以你系统为例:

/dev/hda5 /mnt/diskd/ vfat defaults,codepage=936,iocharset=936 0 0

第二个问题:

把上面那行命令最后的两个0改成1 1就可以了


关爱社区,共建家园!


由 小凡 在 06-03-2002 11:38 发表:


pandonny兄,你写错了,应该是

/dev/hda5 /mnt/diskd/ vfat defaults,codepage=936,iocharset=cp936 0 0

才对吧?而且据我观察,不用加codepage=936也可以,不知道这个参数是否可忽略,反正我是没加。


由 pandonny 在 06-03-2002 13:32 发表:


哈哈。。。对。。多谢凡兄提醒。。。


关爱社区,共建家园!


由 xchen 在 06-03-2002 18:04 发表:

好像不行啊!

两位兄弟的做法我都试过,还是不行。

提示是无效的参数什么的。

但是在console里用mount命令不会提示出错,但是仍然无法显示中文文件夹,命令如下:

mount -t vfat,codepage=936,iocharset=936 /dev/hda5 /mnt/diskd


由 pandonny 在 06-03-2002 22:46 发表:


兄弟,你命令打错了,应该是:

mount -t vfat -o codepage=936,iocharset=cp936 /dev/hda5 /mnt/diskd


关爱社区,共建家园!


由 xchen 在 06-04-2002 09:06 发表:

兄弟,好像不是我的写法错了,你能试一下吗,谢了

[root@ymx root]# mount -t vfat -o codepage=936,iocharset=936 /dev/hda5 /mnt/diskd

mount: wrong fs type, bad option, bad superblock on /dev/hda5,

or too many mounted file systems

[root@ymx root]# mount -t vfat,codepage=936,iocharset=936 /dev/hda5 /mnt/diskd

[root@ymx root]#


由 xch

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus