LinuxSir.cn,穿越时空的Linuxsir!

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

● 挂载ext3的问题(请大侠指点)

[复制链接]
发表于 2004-12-11 15:26:28 | 显示全部楼层 |阅读模式
一个分区是ext3,现在想挂载linux下,fstab文件这么添加的:
/dev/hda7               /mnt/fdisk              ext3    noauto,user,rw  0 0
普通用户可以挂载,怎么还是没有写的权限呢?有rw这个参数还不够?

umask=0这个参数只适应fat格式的分区吧.怎么加参数才能让普通用户即可以自己挂载(卸载)分区
有可以有写和执行的权限呢?
发表于 2004-12-11 18:02:49 | 显示全部楼层

回复: ● 挂载ext3的问题(请大侠指点)

最初由 jensonhjt 发表
一个分区是ext3,现在想挂载linux下,fstab文件这么添加的:
/dev/hda7               /mnt/fdisk              ext3    noauto,user,rw  0 0
普通用户可以挂载,怎么还是没有写的权限呢?有rw这个参数还不够?

umask=0这个参数只适应fat格式的分区吧.怎么加参数才能让普通用户即可以自己挂载(卸载)分区
有可以有写和执行的权限呢?

try to replace user with users
发表于 2004-12-11 18:13:56 | 显示全部楼层

回复: ● 挂载ext3的问题(请大侠指点)

最初由 jensonhjt 发表
一个分区是ext3,现在想挂载linux下,fstab文件这么添加的:
/dev/hda7               /mnt/fdisk              ext3    noauto,user,rw  0 0
普通用户可以挂载,怎么还是没有写的权限呢?有rw这个参数还不够?

umask=0这个参数只适应fat格式的分区吧.怎么加参数才能让普通用户即可以自己挂载(卸载)分区
有可以有写和执行的权限呢?

ft,谁告诉你umask=0这个参数只适应fat格式的分区?
招出来:comp :comp :comp :comp 误导者我敲我敲我敲敲敲
发表于 2004-12-11 18:15:31 | 显示全部楼层

回复: 回复: ● 挂载ext3的问题(请大侠指点)

最初由 d00m3d 发表
try to replace user with users

看一下manpage
users参数和读写权限有关系吗?
这只能决定其他用户能否umount你mount的分区
发表于 2004-12-11 18:53:25 | 显示全部楼层

回复: 回复: 回复: ● 挂载ext3的问题(请大侠指点)

最初由 nait 发表
看一下manpage
users参数和读写权限有关系吗?
这只能决定其他用户能否umount你mount的分区

Oops!  Overlooked, you're right.
 楼主| 发表于 2004-12-12 11:55:46 | 显示全部楼层

回复: 回复: ● 挂载ext3的问题(请大侠指点)

最初由 nait 发表
ft,谁告诉你umask=0这个参数只适应fat格式的分区?
招出来:comp :comp :comp :comp 误导者我敲我敲我敲敲敲


man mount显示结果:
  Mount options for fat
       (Note: fat is not a separate filesystem,  but  a  common  part  of  the
       msdos, umsdos and vfat filesystems.)

       blocksize=512 / blocksize=1024 / blocksize=2048
              Set blocksize (default 512).

       uid=value and gid=value
              Set  the owner and group of all files. (Default: the uid and gid
              of the current process.)

       umask=value
              Set the umask (the bitmask  of  the  permissions  that  are  not
              present).  The default is the umask of the current process.  The
              value is given in octal.


       dmask=value
              Set the umask applied to directories only.  The default  is  the
              umask  of  the  current  process.   The value is given in octal.
              Present since 2.5.43.

             然而关于ext3就没有这个参数:

Mount options for ext3
       The  ‘ext3’  file  system  is version of the ext2 file system which has
       been enhanced with journalling.  It supports the same options  as  ext2
       as well as the following additions:
                                                                                                                                             
       journal=update
              Update the ext3 file system’s journal to the current format.
                                                                                                                                             
       journal=inum
              When  a  journal  already exists, this option is ignored. Other-
              wise, it specifies the number of the inode which will  represent
              the  ext3  file  system’s  journal file;  ext3 will create a new
              journal, overwriting the old contents of the  file  whose  inode
              number is inum.
                                                                                                                                             
       noload Do not load the ext3 file system’s journal on mounting.
                                                                                                                                             
       data=journal / data=ordered / data=writeback
              Specifies  the  journalling  mode  for  file  data.  Metadata is
              always journaled.
                                                                                                                                             
              journal
                     All data is committed into the  journal  prior  to  being
                     written into the main file system.
                                                                                                                                             
              ordered
                     This  is  the  default mode.  All data is forced directly
                     out to the main file system prior to its  metadata  being
                     committed to the journal.
                                                                                                                                             
              writeback
                     Data ordering is not preserved - data may be written into
                     the main file system after its metadata has been  commit-
                     ted  to the journal.  This is rumoured to be the highest-
                     throughput option.  It guarantees  internal  file  system
                     integrity,  however  it  can  allow old data to appear in
                     files after a crash and journal recovery.
发表于 2004-12-12 12:15:27 | 显示全部楼层
这一段我不太明白,也许是我错了吧
但我知道当前进程不管什么下fs都是有umask值的,看看系统调用的编程书籍就知道了
不信你在终端下敲umask就能看到当前的值
 楼主| 发表于 2004-12-12 12:26:00 | 显示全部楼层
在fstab中加入:
      /dev/hda7               /mnt/fdisk              ext3    noauto,user,umask=0       0 0
当在终端执行:
      mount /mnt/fdisk
系统提示:
      有错误的参数???
发表于 2004-12-12 13:42:00 | 显示全部楼层
我刚才试了一下,ext3加了umask确实是不行的,是我误导你了
抱歉:sorry :sorry :sorry :sorry :sorry :sorry :sorry :sorry :sorry :beat :beat :beat :beat 我敲我自己可以了吧:p :p
发表于 2004-12-12 13:43:39 | 显示全部楼层
建议看一下你挂载目录的权限
  1. #ls -ld /mnt/fdisk
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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