How to know what filesystem is on my ubuntu and whether dir_index is enabled?
NoOp
glgxg at sbcglobal.net
Tue Jan 26 02:35:41 UTC 2010
On 01/25/2010 06:19 PM, Peng Yu wrote:
> On Mon, Jan 25, 2010 at 7:48 PM, NoOp <glgxg at sbcglobal.net> wrote:
>> On 01/25/2010 03:28 PM, Peng Yu wrote:
>>> Could somebody let me know how to figure out what filesystem is on my
>>> ubuntu machine? And how to check whether dir_index is enabled?
>>>
>>
>> $ cat /etc/fstab
>>
>> will generally provide you with the filesystem information. Example:
>>
>> $ cat /etc/fstab
>> # /etc/fstab: static file system information.
>> #
>> # -- This file has been automaticly generated by ntfs-config --
>> #
>> # <file system> <mount point> <type> <options> <dump> <pass>
>>
>> proc /proc proc defaults 0 0
>> # Entry for /dev/sdb1 :
>> UUID=c<snipped> / ext4 defaults,errors=remount-ro 0 1
>>
>> From the above you can see that the filesystem is ext4.
>>
>> Another cli method is to use parted:
>>
>> $ sudo parted -l
>>
>> For a GUI, use gparted.
>
> There are xfs and ext3 filesystems on my machine. How to check if
> dir_index is enabled?
>
$ sudo tune2fs -l /dev/sdb1
tune2fs 1.41.9 (22-Aug-2009)
Filesystem volume name: <none>
Last mounted on: /
Filesystem UUID: <snipped>
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index
filetype needs_recovery extent flex_bg sparse_super large_file huge_file
uninit_bg dir_nlink extra_isize
Filesystem flags: signed_directory_hash
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 12263424
Block count: 49034388
Reserved block count: 2451719
Free blocks: 36399827
Free inodes: 11727854
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 1012
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8192
Inode blocks per group: 512
Flex block group size: 16
Filesystem created: Wed Dec 2 10:35:00 2009
Last mount time: Mon Jan 25 08:55:09 2010
Last write time: Thu Jan 21 19:31:13 2010
Mount count: 23
Maximum mount count: 30
Last checked: Sun Jan 10 12:11:36 2010
Check interval: 15552000 (6 months)
Next check after: Fri Jul 9 13:11:36 2010
Lifetime writes: 110 GB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Journal inode: 8
First orphan inode: 263988
Default directory hash: half_md4
Directory Hash Seed: 629cbef2-8760-4e3b-95d8-04c488ee1156
Journal backup: inode blocks
It's under the Filesystem features:
Filesystem features: has_journal ext_attr resize_inode dir_inde
More information about the ubuntu-users
mailing list