可以使用df -Th
[root@mail ~]# df -Th
参数用处如下:
-T 显示文件系统类型。
-h:以容易理解的格式输出文件系统大小,例如124KB、345MB、46GB。
通过dumpe2fs查看, 你把/dev/sda1替换成你要查看的硬盘. 如果有has_journal, 那么就是ext3.
[root@centos-doxer ~]# dumpe2fs /dev/sda1|grep 'Filesystem features'
dumpe2fs 1.39 (29-May-2006)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super
另外, 你可以通过cat /etc/fstab看, 第三列是文件系统格式, 会告诉你是ext3还是ext2.