Search

Finding the filesystem type of a partition in linux

To find the type of filesystem a partition or a media is of we can use the commands "df" or "mount".

Using df



The column with the heading "Type" gives the filesystem type. So the partition /dev/sda1 is of type ext4

To find the filesystem type of a specific partition pass the partition as the argument.



Using mount



As listed the partition /dev/sda1 is of type ext4.
We can find the specific partition type by combining mount with grep.




No comments:

Post a Comment