Hi there,
Could you please elaborate on what you are trying to do? What do you want to compare? I doubt that the time it takes to run fsck on a filesystem is particularly useful as a comparison, as it will depend on a lot more than just the inode count. Factors like filesystem size, block count, etc, also play a significant role.
If you want to do this anyway, try something this:
Code:
time fsck /dev/sdXN
Obviously you need to specify the correct device ;-) The output from "fsck" will show the inode count, and the "time" command will tell you how long it took to run.
Sample output:
Code:
$ sudo time fsck /dev/sda2
fsck from util-linux 2.27.1
e2fsck 1.42.13 (17-May-2015)
/dev/sda2: clean, 13/6111232 files, 431595/24414062 blocks
0.02user 0.00system 0:00.04elapsed 76%CPU (0avgtext+0avgdata 3776maxresident)k
2536inputs+16outputs (0major+595minor)pagefaults 0swaps
The "13/6111232 files" shows the number of inodes used and total, while the "0:00.04elapsed" part is the elapsed time it took to run.
Regards,
Clifford