LinuxSir.cn,穿越时空的Linuxsir!

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

在挂载的VFAT分区中,用户无法写文件,急

[复制链接]
发表于 2009-11-30 10:15:33 | 显示全部楼层 |阅读模式
在挂载的VFAT分区中,用户无法修改文件,只能在新生成文件时候修改内容一次。
fstab文件如下,
/dev/sda5               /mnt/wind       vfat            defaults,codepage=936,iocharset=utf8 0 0


root用户执行chmod,chown也不成功,如下:
localhost wind # chmod 777 tp快捷键.txt
localhost wind # ls -l tp快捷键.txt
-rwxr-xr-x 1 root root 643  4月 21 2009 tp快捷键.txt
发表于 2009-11-30 10:22:32 | 显示全部楼层
我的是这样写的, 供参考.

~ $ cat /etc/fstab
/dev/sda5    /mnt/wind   vfat   umask=000,codepage=936,iocharset=utf8   0 1
回复 支持 反对

使用道具 举报

发表于 2009-11-30 11:04:40 | 显示全部楼层
还可以
~ $ cat /etc/fstab
/dev/sda5 /mnt/wind vfat fmask=111,dmask=000,codepage=936,iocharset=cp936,utf8 0 1
回复 支持 反对

使用道具 举报

发表于 2009-11-30 13:13:06 | 显示全部楼层
mount -o umask=0 -o utf-8 /dev/sda1 /mnt/****ms

cat /etc/fstab
...
/dev/sda1 /mnt/****ms vfat user,noatime,errors=remount-ro 0 2

摘录man mount一段
       The non-superuser mounts.
              Normally, only the superuser can  mount  filesystems.   However,
              when fstab contains the user option on a line, anybody can mount
              the corresponding system.

              Thus, given a line

                     /dev/cdrom  /cd  iso9660  ro,user,noauto,unhide
回复 支持 反对

使用道具 举报

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

本版积分规则

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