Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fstyp(1m) [opendarwin man page]

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

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)

Check Out this Related Man Page

df_ufs(1M)																df_ufs(1M)

df_ufs - report free disk space on ufs file systems SYNOPSIS
df -F ufs [generic_options] [ -o i] [directory | special] df displays the amount of disk space occupied by ufs file systems, the amount of used and available space, and how much of the file sys- tem's total capacity has been used.The amount of space reported as used and available is less than the amount of space in the file system; this is because the system reserves a fraction of the space in the file system to allow its file system allocation routines to work well. The amount reserved is typically about 10%; this can be adjusted using tunefs(1M). When all the space on the file system except for this reserve is in use, only the superuser can allocate new files and data blocks to existing files. When the file system is overallocated in this way, df might report that the file system is more than 100% utilized.If neither directory nor special is specified, df displays infor- mation for all mounted ufs file systems. The following options are supported: generic_options Options supported by the generic df command. See df(1M) for a description of these options. -o Specify ufs file system specific options. The available option is: i Report the number of used and free inodes. This option can not be used with generic_options. /etc/mnttab list of file systems currently mounted See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu, SUNWxcu4 | +-----------------------------+-----------------------------+ df(1M), fsck(1M), fstyp(1M), tunefs(1M), mnttab(4), attributes(5), ufs(7FS), df calculates its results differently for mounted and unmounted file systems. For unmounted systems, the numbers reflect the 10% reserva- tion. This reservation is not reflected in df output for mounted file systems. For this reason, the available space reported by the generic command can differ from the available space reported by this module. df might report remaining capacity even though syslog warns filesystem full. This issue can occur because df only uses the available frag- ment count to calculate available space, but the file system requires contiguous sets of fragments for most allocations. If you suspect that you have exhausted contiguous fragments on your file system, you can use the fstyp(1M) utility with the -v option. In the fstyp output, look at the nbfree (number of blocks free) and nffree (number of fragments free) fields. On unmounted filesystems, you can use fsck(1M) and observe the last line of output, which reports, among other items, the number of fragments and the degree of fragmen- tation. See fsck(1M). 25 Feb 2005 df_ufs(1M)
Man Page