linux poison RSS
linux poison Email

HowTo get information about your filesystem?

At times, you need some information about your file system. There is a utility dumpe2fs which can give you number of information about Linux file system. For example, if you want status of bad blocks on a device containing Linux file system, run dumpe2fs with option –b. It will check for bad blocks and give you information about the bad blocks it finds in a dumped file. Dumpe2fs has various arguments and options and you can get the information you need about your file system for a quick diagnosis. For more information on dumpe2fs, see its man pages.

# dumpe2fs /dev/sda6 | more

Filesystem volume name: Root
Last mounted on:
Filesystem UUID: 85b12d68-aa77-4b03-83d1-63fecf66b276
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal resize_inode dir_index filetype needs_recovery sparse_super large_file
Filesystem flags: signed directory hash
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 2496960
Block count: 4992190
Reserved block count: 249609
Free blocks: 1705515
Free inodes: 2079363
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 1022
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 16320
Inode blocks per group: 510
Filesystem created: Sun Nov 4 15:53:20 2007
Last mount time: Fri Mar 7 01:29:50 2008
Last write time: Fri Mar 7 01:29:50 2008
Mount count: 10
Maximum mount count: 500
Last checked: Fri Feb 29 03:31:48 2008
Check interval: 5184000 (2 months)
Next check after: Tue Apr 29 03:31:48 2008
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Journal inode: 8
First orphan inode: 851245
Default directory hash: tea
Directory Hash Seed: 8c4179e2-9bfb-4d55-a046-ba92f1f2bf88
Journal backup: inode blocks
Journal size: 128M


Post a Comment

Related Posts with Thumbnails