GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  FSTYP (8)

NAME

fstyp - determine filesystem type

CONTENTS

Synopsis
Description
Exit Status
See Also
History
Authors

SYNOPSIS

fstyp [-l] [-s] [-u] special

DESCRIPTION

The fstyp utility is used to determine the filesystem type on a given device. It can recognize ISO-9660, Ext2, FAT, NTFS, and UFS filesystems. When the -u flag is specified, fstyp also recognizes certain additional metadata formats that cannot be handled using mount(8), such as ZFS pools and geli(8) providers.

The filesystem name is printed to the standard output as, respectively:
cd9660
ext2fs
geli
msdosfs
ntfs
ufs
zfs

Because fstyp is built specifically to detect filesystem types, it differs from file(1) in several ways. The output is machine-parsable, filesystem labels are supported, the utility runs sandboxed using capsicum(4), and does not try to recognize any file format other than filesystems.

These options are available:
-l In addition to filesystem type, print filesystem label if available.
-s Ignore file type. By default, fstyp only works on regular files and disk-like device nodes. Trying to read other file types might have unexpected consequences or hang indefinitely.
-u Include filesystems and devices that cannot be mounted directly by mount(8).

EXIT STATUS

The fstyp utility exits 0 on success, and >0 if an error occurs or the filesystem type is not recognized.

SEE ALSO

file(1), capsicum(4), autofs(8), geli(8), glabel(8), mount(8), zpool(8)

HISTORY

The fstyp command appeared in
.Fx 10.2 .

AUTHORS

The fstyp utility was developed by
.An Edward Tomasz Napierala Aq Mt trasz@FreeBSD.org under sponsorship from the FreeBSD Foundation. ZFS and GELI support was added by
.An Allan Jude Aq Mt allanjude@FreeBSD.org
Search for    or go to Top of page |  Section 8 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.