You can determine a file system's type by using the following:
Use the grep command to find a file system's type in the /etc/vfstab file:
$ grep /tmp /etc/vfstab swap - /tmp tmpfs - yes - $ |
Information for the mount point is displayed.
If vfstab does not have an entry for a file system, use one of the following procedures to determine the file system's type.
Search the /etc/mnttab for the mount-point directory.
$ grep /home /etc/mnttab mars:(pid129) /home nfs ro,ignore,map=/etc/auto_home,indirect, dev=21c0004 693606637 neptune:/export/home/neptune /tmp_mnt/home/neptune nfsrw, dev=21c0005 695409833 |
Information about the mount point is displayed.
Or
Use the devnm command to display the raw device name of the mounted file system.
$ devnm /filesystem |
/filesystem |
Is the mounted file system whose raw device name you want to identify. |
Become superuser.
Use the fstyp command to display the file system type.
# fstyp dev/rdsk/device-name |
/dev/rdsk/device-name |
Is the name of the raw device containing the file system you want to identify. |
The following example uses the devnm command to identify the name of the device that contains /usr, a mounted file system. Next, the fstyp command is used to identify what type of file system /usr is.
$ devnm /usr /dev/dsk/cot3d0s6 /usr $ su # fstyp /dev/rdsk/c0t3d0s6 ufs |
If you know the disk and slice number, you can display information for a disk using the prtvtoc (print volume table of contents) command. You can specify the volume by specifying any non-zero-size slice defined on the disk (for example, /dev/rdsk/c0t3d0s2 for all of disk 3, or /dev/rdsk/c0t3d0s7 for the eighth slice of disk 3). If you know the target number of the disk, but do not know how it is divided into slices, you can show information for the entire disk by specifying either slice 2 or slice 0.
Become superuser.
Display disk and slice information.
# prtvtoc /dev/rdsk/devicename |
/dev/rdsk/device-name |
Is the name of the raw device containing the file system you want to identify. |
In this example, information is displayed for all of disk 3:
$ su Password: # prtvtoc /dev/rdsk/c0t3d0s2 * /dev/rdsk/c0t3d0s2 (volume "") partition map * * Dimensions: * 512 bytes/sector * 36 sectors/track * 9 tracks/cylinder * 324 sectors/cylinder * 1272 cylinders * 1254 accessible cylinders * * Flags: * 1: unmountable * 10: read-only * * First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 2 5 01 0 406296 406295 6 4 00 0 242352 242351 7 0 00 242352 163944 406295 /files7 |