This procedure works whether the file system is mounted or not.
Determine a file system's type by using the grep command.
$ grep mount-point fs-table |
mount-point |
Specifies the mount point name of the file system for which you want to know the type. For example, the /var directory. |
fs-table |
Specifies the absolute path to the file system table in which to search for the file system's type. If the file system is mounted, fs-table should be /etc/mnttab. If it isn't mounted, fs-table should be /etc/vfstab. |
Information for the mount point is displayed.
If you have the raw device name of a disk slice, you can use the fstyp(1M) command to determine a file system's type (if the disk slice contains a file system).
The following example uses the /etc/vfstab to determine the type of the /export file system.
$ grep /export /etc/vfstab /dev/dsk/c0t3d0s6 /dev/rdsk/c0t3d0s6 /export ufs 2 yes - $ |
The following example uses the /etc/mnttab file to determine the file system type of the currently mounted diskette (mounted by volume management).
$ grep /floppy /etc/mnttab /vol/dev/diskette0/unnamed_floppy /floppy/unnamed_floppy pcfs rw,nohidden, nofoldcase,dev=16c0009 89103376 $ |