Determining file system type of disk
I am trying to determine the file system type of a (possibly unmounted) disk drive on SUSE 11. Through some Google searches, I found that I can get what I want with something like this:
/sbin/udevadm info -p -n --query=env --path=/sys/block/sdc/sdc1
and looking at the ID_FS_TYPE line.
I can run this command and grep and awk out the result, but I was wondering if this value was available via one of the "files" in /sys/block/sdc/sdc1. I couldn't find it anywhere in there... where is udevadm getting this information?
Thanks.
adam
|