HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)

f
fstyp(1M) fstyp(1M)
NAME
fstyp - determine file system type
SYNOPSIS
/usr/sbin/fstyp
[-v] special
DESCRIPTION
The
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.
Options
-v Produce verbose output. The output contains information about the le system’s super-
block.
RETURN VALUE
fstyp returns the following values:
0 Successful completion.
1 Unknown file system type.
2 File system matches more than one type.
3 Usage error or access problem.
EXAMPLES
Find 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
SEE ALSO
stat(2), statvfsdev(3C).
HP-UX 11i Version 1: September 2005 1 Hewlett-Packard Company Section 1M279