Linux supports numerous file systems, but common choices for the system disk on a block device include the ext* family (ext2, ext3 and ext4), XFS, JFS, ReiserFS and btrfs. ext4 is the latest file system of ext* family. You can determine the file system of your various mount points in the Linux system by using the below commands.
Using df -T command
[root@TestServer ~]# df -T Filesystem Type 1K-blocks Used Available Use% Mounted on /dev/sda10 ext4 41153856 8157716 30898988 21% / tmpfs tmpfs 49478080 10088 49467992 1% /dev/shm /dev/sda7 ext4 103081248 47695280 50143088 49% /backup /dev/sda3 ext4 487652 41199 420853 9% /boot /dev/sda5 ext4 206293688 46887476 148920452 24% /home /dev/sda8 ext4 103081248 5752368 92086000 6% /opt /dev/sda11 ext4 41153856 49104 39007600 1% /tmp /dev/sda6 ext4 206293688 170378332 25429596 88% /u01 [root@TestServer ~]# df -T | awk '{print $1,$2,$NF}' | grep "^/dev" /dev/sda10 ext4 / /dev/sda7 ext4 /backup /dev/sda3 ext4 /boot /dev/sda5 ext4 /home /dev/sda8 ext4 /opt /dev/sda11 ext4 /tmp /dev/sda6 ext4 /u01
Using mount command
[root@TestServer ~]# mount
/dev/sda10 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda7 on /backup type ext4 (rw)
/dev/sda3 on /boot type ext4 (rw)
/dev/sda5 on /home type ext4 (rw)
/dev/sda8 on /opt type ext4 (rw)
/dev/sda11 on /tmp type ext4 (rw)
/dev/sda6 on /u01 type ext4 (rw)
Using file command
[root@TestServer ~]# file -sL /dev/sda5 /dev/sda5: Linux rev 1.0 ext4 filesystem data (needs journal recovery) (extents) (large files) (huge files) [root@TestServer ~]# file -sL /dev/sda6 /dev/sda6: Linux rev 1.0 ext4 filesystem data (needs journal recovery) (extents) (large files) (huge files)
View /etc/fstab file
[root@TestServer ~]# cat /etc/fstab
UUID=a2e20b9e-3298-425a-8c9f-629384c2dcdd / ext4 defaults 1 1
UUID=8143e755-570a-4681-af5e-c2a6f3603363 /backup ext4 defaults 1 2
UUID=ace0ac1b-18f2-4ce3-8cff-102a6ae37958 /boot ext4 defaults 1 2
UUID=aae774e6-561b-45a6-b157-12b27318e012 /home ext4 defaults 1 2
UUID=384312ea-8cc5-477c-a95b-dd26cf5429ff /opt ext4 defaults 1 2
UUID=67d1fa5a-2afc-438d-83f9-889489d56e31 /tmp ext4 defaults 1 2
UUID=e8abe404-3597-4be1-aa3f-7855743d456f /u01 ext4 defaults 1 2
UUID=d1727592-1bb5-46be-853f-694f57103413 swap swap defaults 0 0
Using fsck command
[root@TestServer ~]# fsck -N /dev/sda3 fsck from util-linux-ng 2.17.2 [/sbin/fsck.ext4 (1) -- /boot] fsck.ext4 /dev/sda3 [root@TestServer ~]# fsck -N /dev/sda4 fsck from util-linux-ng 2.17.2 [/sbin/fsck.ext2 (1) -- /dev/sda4] fsck.ext2 /dev/sda4 [root@TestServer ~]# fsck -N /dev/sda5 fsck from util-linux-ng 2.17.2 [/sbin/fsck.ext4 (1) -- /home] fsck.ext4 /dev/sda5
onlinereadingprograms.org
I will be posting instruction guides, how-to, troubleshooting tips and tricks on Linux, database, hardware, security and web.