LinuxSir.cn,穿越时空的Linuxsir!

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

一个挂载ntfs分区的问题[已解决]

[复制链接]
发表于 2005-2-25 00:33:40 | 显示全部楼层 |阅读模式
习惯用英文来命名文件夹和文件,所以mount 的时候没有加什么额外的东西,fstab是这样写的:
/dev/hda5              /mnt/D    ntfs      user,noauto             0      0


后来发现普通用户没办法访问那个分区。大概看了一下,发现了如下奇怪现象:
[diony@LovBo ~]$ cd /mnt
[diony@LovBo mnt]$ ls -l
总用量 0
drwxr-xr-x  2 root root 48 2005-02-23 08:44 D
[diony@LovBo mnt]$ mount /mnt/D
[diony@LovBo mnt]$ ls -l
总用量 8
drwx------  1 root root 8192 2005-02-24 11:56 D


求解。多谢。
 楼主| 发表于 2005-2-25 01:52:21 | 显示全部楼层
已解决
-----------------------------------------------------------------------------------
from the man page
-----------------------------------------------------------------------------------
Mount options for ntfs
       iocharset=name
              Character set to use when returning file names.  Unlike VFAT, NTFS suppresses names that contain
              unconvertible characters. Deprecated.

       nls=name
              New name for the option earlier called iocharset.

       utf8   Use UTF-8 for converting file names.

       uni_xlate=[0|1|2]
              For 0 (or `no' or `false'), do not use escape sequences for unknown Unicode characters.   For  1
              (or `yes' or `true') or 2, use vfat-style 4-byte escape sequences starting with ":". Here 2 give
              a little-endian encoding and 1 a byteswapped bigendian encoding.

       posix=[0|1]
              If enabled (posix=1), the file system distinguishes between upper and lower case. The 8.3  alias
              names are presented as hard links instead of being suppressed.

       uid=value, gid=value and umask=value
              Set  the file permission on the filesystem.  The umask value is given in octal.  By default, the
              files are owned by root and not readable by somebody else.
回复 支持 反对

使用道具 举报

发表于 2005-2-25 11:54:41 | 显示全部楼层
你这样写新手看起来一塌糊涂,^_^。
回复 支持 反对

使用道具 举报

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

本版积分规则

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