If you have a raw device name of a disk slice, you can use the fstyp or the df command to determine the type of a file system. The fstyp command might not be able to identify third party file systems, which are not supported by Oracle Solaris.
For more information, see the fstyp(1M) and df(1M) man pages.
Example 4 How to Determine the Type of a File SystemThe following example uses the df –n command to display the mounted file systems along with its type. The df command uses information about mounted file systems provided by the kernel.
# df -n / : zfs /devices : devfs /dev : dev /system/contract : ctfs /proc : proc /etc/mnttab : mntfs /system/volatile : tmpfs /system/object : objfs /etc/dfs/sharetab : sharefs /dev/fd : fd /var : zfs /tmp : tmpfs /var/share : zfs /export : zfs /export/home : zfs /rpool : zfs /media/cdrom : ufs /media/cdrom-1 : ufs /media/cdrom-2 : ufs /media/cdrom-3 : ufs /media/sol_10_811_sparc : hsfs /media/cdrom-4 : ufs /pond : zfs /pond/amy : zfs /pond/dr : zfs /pond/rory : zfs
The following example uses the fstyp command to determine the file system type. The specified device might or might not be mounted.
# fstyp /dev/rdsk/c0t0d0s0 zfs