主题: 用 tune2fs 获取分区的详细挂载信息
收到 xcrossbow 的邮件,说 /etc/fstab 里对 EXT3 分区默认的挂载参数 'defaults' 可能无法支持高级 ACL 设置。
经过确认,默认的 'defaults' 参数已经带了 'acl' 挂载参数。具体确认方法:
#
# 查看分区信息
#
# cat /etc/fstab |grep ext3
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
#
# 确认
#
# tune2fs -l /dev/VolGroup00/LogVol00 | grep options
Default mount options: user_xattr acl #<- 已经有 'acl' 参数
#
# 查看更多信息
#
# tune2fs -l /dev/VolGroup00/LogVol00
Default mount options: user_xattr acl
[root@15632526 dkim]# tune2fs -l /dev/VolGroup00/LogVol00 |less
[root@15632526 dkim]# tune2fs -l /dev/VolGroup00/LogVol00
tune2fs 1.39 (29-May-2006)
Filesystem volume name: <none>
Last mounted on: <not available>
Filesystem UUID: 4b1e32fb-f62d-402a-ba10-b9d98cf1a33d
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super large_file
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 2326528
Block count: 2326528
Reserved block count: 116326
Free blocks: 2014048
Free inodes: 2295308
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 567
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 32768
Inode blocks per group: 1024
Filesystem created: Wed Oct 22 16:52:03 2008
Last mount time: Sun Oct 26 09:01:06 2008
Last write time: Sun Oct 26 09:01:06 2008
Mount count: 8
Maximum mount count: -1
Last checked: Wed Oct 22 16:52:03 2008
Check interval: 0 (<none>)
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Journal inode: 8
First orphan inode: 498033
Default directory hash: tea
Directory Hash Seed: 9303ca5b-1617-4188-af59-5b5bcef0e005
Journal backup: inode blocks