Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > F

fstyp(1M)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

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 file system's superblock.

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. If the printed message is "Can't send after socket shutdown", check with your system administrator to make sure the fsdaemon is running properly on the system.

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

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.