Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fstyp(1m) [hpux man page]

fstyp(1M)																 fstyp(1M)

NAME
fstyp - determine file system type SYNOPSIS
special DESCRIPTION
The 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: The file system type is determined by reading the superblock of the supplied special file. If the superblock is read successfully, the com- mand prints the file system type identifier on the standard output and exits with an exit status of If the type of the file system cannot be identified, the error message (no matches) is printed and the exit status is Exit status 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 to be returned. The file system type is determined by reading the superblock of the supplied special file. Options Produce verbose output. The output contains information about the file system's superblock. RETURN VALUE
returns the following values: Successful completion. Unknown file system type. File system matches more than one type. 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 is running properly on the system. EXAMPLES
Find the type of the file system on a disk, Find the type of the file system on a logical volume, Find the file system type for a particular device file and also information about its super block: SEE ALSO
stat(2), statvfsdev(3C). fstyp(1M)

Check Out this Related Man Page

fstyp(1M)						  System Administration Commands						 fstyp(1M)

NAME
fstyp - determine file system type SYNOPSIS
fstyp [-v] special DESCRIPTION
fstyp allows the user to determine the file system type of unmounted file systems using heuristic programs. An fstyp module for each file system type to be checked is executed; each of these modules applies an appropriate heuristic to determine whether the supplied special file is of the type for which it checks. If it is, the program prints on standard output the usual file sys- tem identifier for that type (for example, ``ufs'') and exits with a return code of 0; if none of the modules succeed, the error message unknown_fstyp (no matches) is returned and the exit status is 1. If more than one module succeeds, the error message unknown_fstyp (multi- ple matches) is returned and the exit status is 2. OPTIONS
-v Produce verbose output. This is usually information about the file systems superblock and varies across different FSTypes. See ufs(7FS), mkfs_ufs(1M), and tunefs(1M) for details. USAGE
See largefile(5) for the description of the behavior of fstyp when encountering files greater than or equal to 2 Gbyte ( 2**31 bytes). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
mkfs_ufs(1M), tunefs(1M), attributes(5), largefile(5), hsfs(7FS), ufs(7FS), pcfs(7FS) NOTES
The use of heuristics implies that the result of fstyp is not guaranteed to be accurate. SunOS 5.10 15 Apr 2003 fstyp(1M)
Man Page

4 More Discussions You Might Find Interesting

1. HP-UX

more than one fs type on the same file system

hi is it possible to have more than one file system types on the same file system. if yes then how do we do it, can veritas be used to achieve this (1 Reply)
Discussion started by: livemyway
1 Replies

2. Solaris

How to corrupt a superblock?

I need to corrupt a superblock of a mounted device in a soalris m/c and check recovery from an alternate superblock. How can this be done? (2 Replies)
Discussion started by: sujathan
2 Replies

3. Shell Programming and Scripting

Find File system according to device

Hi guys, I want to translate the device name from the command "iostat" to file system name in order to check IO problems of DB's data files. What is the way to do it? Thanks in advance, Nir (2 Replies)
Discussion started by: nir_s
2 Replies

4. UNIX for Dummies Questions & Answers

Exit Status Of Find Command

Hello All, I am trying to capture the exit status of find command and want to delete the files only when it is successful. But it is always returning me as success even if the pattern of that file doesn't exist in the current directory. please help, checked manual page but couldn't able to figure... (6 Replies)
Discussion started by: Ariean
6 Replies