How do I display attributes on ext2 and ext3 filesystems?
-
o display the filesystem attributes on a ext2 or ext3 filesystem run the following command:
For an ext2 filesystem notice the Filesystem features, it shows no journal option.
# tune2fs -l /dev/mapper/vg01-test tune2fs 1.35 (28-Feb-2004) Filesystem volume name: /projectA Last mounted on: <not available> Filesystem UUID: 5ad95701-a2f5-4bb5-8827-2e83eba5d240 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: resize_inode filetype sparse_super Default mount options: (none) Filesystem state: not clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 2048 Block count: 8192 Reserved block count: 409 Free blocks: 6857 Free inodes: 2036 First block: 1 Block size: 1024 Fragment size: 1024 Reserved GDT blocks: 31 Blocks per group: 8192 Fragments per group: 8192 Inodes per group: 2048 Inode blocks per group: 256 Filesystem created: Mon Apr 7 13:37:22 2008 Last mount time: Mon Apr 7 14:20:37 2008 Last write time: Mon Apr 7 15:32:36 2008 Mount count: 2 Maximum mount count: 24 Last checked: Mon Apr 7 13:37:22 2008 Check interval: 15552000 (6 months) Next check after: Sat Oct 4 13:37:22 2008 Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 128 Default directory hash: tea Directory Hash Seed: e92259c7-f8ed-417f-9add-535f211c22e3
For an ext3 filesystem.
# tune2fs -j /dev/mapper/vg01-test tune2fs 1.35 (28-Feb-2004) Creating journal inode: done This filesystem will be automatically checked every 24 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.
# tune2fs -l /dev/mapper/vg01-test tune2fs 1.35 (28-Feb-2004) Filesystem volume name: /projectA Last mounted on: <not available> Filesystem UUID: 5ad95701-a2f5-4bb5-8827-2e83eba5d240 Filesystem magic number: 0xEF53 Filesystem revision #: 1 (dynamic) Filesystem features: has_journal resize_inode filetype sparse_super Default mount options: (none) Filesystem state: not clean Errors behavior: Continue Filesystem OS type: Linux Inode count: 2048 Block count: 8192 Reserved block count: 409 Free blocks: 6857 Free inodes: 2036 First block: 1 Block size: 1024 Fragment size: 1024 Reserved GDT blocks: 31 Blocks per group: 8192 Fragments per group: 8192 Inodes per group: 2048 Inode blocks per group: 256 Filesystem created: Mon Apr 7 13:37:22 2008 Last mount time: Mon Apr 7 14:20:37 2008 Last write time: Mon Apr 7 16:31:00 2008 Mount count: 2 Maximum mount count: 24 Last checked: Mon Apr 7 13:37:22 2008 Check interval: 15552000 (6 months) Next check after: Sat Oct 4 13:37:22 2008 Reserved blocks uid: 0 (user root) Reserved blocks gid: 0 (group root) First inode: 11 Inode size: 128 Journal inode: 12 Default directory hash: tea Directory Hash Seed: e92259c7-f8ed-417f-9add-535f211c22e3
© Lightnetics 2024