|
|
HP-UX Reference Volume 2 of 5 > ffstyp(1M) |
|
NAMEfstyp — determine file system type DESCRIPTIONThe fstyp command allows the user to determine the file system type of a mounted or unmounted file system. special represents a device special file (for example: /dev/dsk/c1t6d0). The file system type is determined by reading the superblock of the supplied special file. If the superblock is read successfully, the command prints the file system type identifier on the standard output and exits with an exit status of 0. If the type of the file system cannot be identified, the error message unknown_fstyp (no matches) is printed and the exit status is 1. Exit status 2 is not currently returned, but is reserved for the situation where the file system matches more than one file system type. Any other error will cause exit status 3 to be returned. The file system type is determined by reading the superblock of the supplied special file. RETURN VALUEfstyp returns the following values:
EXAMPLESFind the type of the file system on a disk, /dev/dsk/c1t6d0: fstyp /dev/dsk/c1t6d0 Find the type of the file system on a logical volume, /dev/vg00/lvol6: fstyp /dev/vg00/lvol6 Find the file system type for a particular device file and also information about its super block: fstyp -v /dev/dsk/c1t6d0 |
|