How to determine the type of file system on an SD Card

Prashanth picture Prashanth · Dec 18, 2012 · Viewed 8.2k times · Source

How to determine the type of file system on an SD Card (this card is not yet mounted. I need to determine the file system type so that i can mount the SDCard through a program according to the file system type) Or from the terminal. For example "mount -t ext3 /dev/sdc1 /mnt"

Answer

Basile Starynkevitch picture Basile Starynkevitch · Dec 18, 2012

You might do a file -s /dev/sdc1 and it could recognize the filesystem data.

And you might do mount -t auto /dev/sdc1 /mnt to have mount recognize it.