红联Linux门户
Linux帮助

定时 mount 中文不是识别

发布时间:2009-02-10 18:21:55来源:红联作者:lifei666
我想定时挂载ntfs 分区

在crontab 中加增加

00 7 * * * /etc/rc.d/rc.mountgame >> /var/log/mount.log

rc.mountgame内容

#! /bin/sh
mount /dev/sdb5 /mnt/game -t ntfs-3g -o iocharset=cp936


可是到挂载后不能识别中文

要手手动运行 rc.mountgame就能正常识别中文了

直接在crontab 中加增加

00 7 * * * mount /dev/sdb5 /mnt/game -t ntfs-3g -o iocharset=cp936

也是一样不能识别中文

去掉-o iocharset=cp936也一样 手动用mount /dev/sdb5 /mnt/game -t ntfs-3g也能正常识别中文
文章评论

共有 1 条评论

  1. firesk 于 2009-02-11 11:59:51发表:

    我印象中。。。脚本要用全路径吧。。。试试/bin/mount /dev/sdb5 /mnt/game -t ntfs-3g -o iocharset=cp936

    (非专业回答)