How to get information about your file system in Ubuntu

Sponsored Link
If you want to know more details about your file system you need to use dumpe2fs utility.dumpe2fs prints the super block and blocks group information for the filesystem present on device.dumpe2fs is similar to Berkeleyâs dumpfs program for the BSD Fast File System.

If you want to use dumpe2fs in ubuntu you need to install e2fsprogs package.

Install e2fsprogs package using the following command

sudo aptitude install e2fsprogs

This will complete the installation.

Now if you want to know more about your file system use the following command

dumpe2fs

Using dumpe2fs

Syntax

dumpe2fs [ -bfhixV ] [ -ob superblock ] [ -oB blocksize ] device

Available option details

-b -- print the blocks which are reserved as bad in the filesystem.

-ob superblock -- use the block superblock when examining the filesystem. This option is not usually needed except by a filesystem wizard who is examining he remains of a very badly corrupted filesystem.

-oB blocksize -- use blocks of blocksize bytes when examining the filesystem. This option is not usually needed except by a filesystem wizard who is examining the remains of a very badly corrupted filesystem.

-f -- force dumpe2fs to display a filesystem even though it may have some filesystem feature flags which dumpe2fs may not understand (and which can cause some of dumpe2fsâs display to be suspect).

-h -- only display the superblock information and not any of the block group descriptor detail information.

-i -- display the filesystem data from an image file created by e2image, using device as the pathname to the image file.

-x -- print the detailed group information block numbers in hexadecimal format

-V -- print the version number of dumpe2fs and exit.

dumpe2fs Examples

dumpe2fs /dev/sda1 | more

Sample Output

dumpe2fs 1.40.2 (12-Jul-2007)
Filesystem volume name:
Last mounted on:
Filesystem UUID: ec7a16c5-c680-45ac-9f1b-856ab960d759
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: 997472
Block count: 1994060
Reserved block count: 99703
Free blocks: 722777
Free inodes: 807799
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 486
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 16352
Inode blocks per group: 511
Filesystem created: Thu Oct 25 18:29:45 2007
Last mount time: Thu Mar 6 13:02:32 2008
Last write time: Thu Mar 6 13:02:32 2008
Mount count: 4
Maximum mount count: 34
Last checked: Thu Feb 14 15:10:27 2008
Check interval: 15552000 (6 months)
Next check after: Tue Aug 12 16:10:27 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: 50414
Default directory hash: tea
Directory Hash Seed: 836ca201-5370-43e7-a6ce-1606f2a7cd37
Journal backup: inode blocks

Sponsored Link

Incoming search terms:

Related posts

One thought on “How to get information about your file system in Ubuntu

  1. Hi there:
    A friend of mine tried to help me get my computer up and running after it froze. So, she had a friend of hers come over , and while we were gone he put ubuntu on my computer. I am 67 years old and never heard about ubuntu
    and I am not that computer literate. But I did find out that it does not recognize the internet nor the printer . The guy that put it on we can’t find, now i have forgotten my password to get into gnome where I have a document . I am requesting a book or some way to get on the internet because the internet is where I do my research for my church.

    I thank you for any help you could give me I truly need it.

    Wanda Wilson
    7114 Texas Road # 5
    Fort Smith, AR 72908
    e-address
    [email protected]
    Again Thanks

    [Reply]

Leave a comment

Your email address will not be published. Required fields are marked *