PDA

View Full Version : [SOLVED] Is there a "what is my file system" command?



ToddAndMargo
4th August 2013, 01:10 AM
Okay, I know gparted will tell me all about my file system, is there also a command that will tell me what my file system is (extx, xfs, etc.)?

smr54
4th August 2013, 01:24 AM
Running cfdisk shows me that a partition is swap, ext4 or btrfs. Haven't tested with other file systems.

nonamedotc
4th August 2013, 01:24 AM
Like this perhaps?



$ blkid -o list
device fs_type label mount point UUID
--------------------------------------------------------------------------------------------------------------------------
/dev/sda1 ext4 /boot ********-****-****-****-***********
/dev/sda2 crypto_LUKS (in use) ********-****-****-****-***********
/dev/sda3 crypto_LUKS (in use) ********-****-****-****-***********
/dev/sda5 crypto_LUKS (in use) ********-****-****-****-***********
/dev/mapper/luks-*** ext4 / ********-****-****-****-***********
/dev/mapper/luks-*** swap <swap> ********-****-****-****-***********
/dev/mapper/luks-*** ext4 /home ********-****-****-****-***********

marko
4th August 2013, 01:34 AM
df -T


the '-T' will force df to show the file system type

nonamedotc
4th August 2013, 01:39 AM
Here is another one.


$ lsblk --f

ToddAndMargo
4th August 2013, 02:45 AM
Tons of ways. Thank you!