FSTYP(8) BSD System Manager's Manual FSTYP(8)NAME
fstyp -- determine filesystem type
SYNOPSIS
fstyp [-l] [-s] 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 filesys-
tems. The filesystem name is printed to the standard output as, respectively, cd9660, ext2fs, msdosfs, ntfs, or ufs.
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.
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), glabel(8), mount(8)HISTORY
The fstyp command appeared in FreeBSD 11.0.
AUTHORS
The fstyp utility was developed by Edward Tomasz Napierala <trasz@FreeBSD.org> under sponsorship from the FreeBSD Foundation.
BSD January 14, 2015 BSD
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)
Linux uses hdparm to set these parameters, my question is: what tool uses BSD systems (FreeBSD/OpenBSD/NetBSD)? There is another thing which FreeBSD implements on their filesystems: softupdates. If I forgot to enable this option when I partitioned the disk, how could I enable it at a later time? (1 Reply)
On a HP-UX box, I can execute the sar command which will give me the device, %busy, etc. I would like to know how to take a given device name and determine on which filesystem it's located when I do a bdf.
I've done some searching through the posts but so far have not had any luck in... (2 Replies)
I was interested in downloading FreeBSD but when I went to see what platforms I could download it for, I didnt recognize any of them. The choices were i386, Alpha, IA-64, AMD64, and Sparc64. I wanted to put FreeBSD on computer with a Pentium 4. Is this possible, and if so, which one is the one i... (2 Replies)
I have been using FreeBSD (currently 4.10, yes yes i havent updated it for a few months), and unfortunately when initially installing it onto my laptop, i made the mistake of only assigning it 3.5 GB and time has passed and I now find myself withonly 300 something MB left on the chunk, i want to... (2 Replies)
Hello Everyone!
changing from Microsoft to Macintosh, I connected my hard disk (nearly full) to the apple computer, which could not recognize it. I was prompt to "initialize it", unfortunately I DECIDED YES!!, but just for 1/100 of a second: now I cannot access the hard disk at all.
Is still... (1 Reply)
hello,
i m new user in this forum....i need ur help :confused: . Can anyone tell me which Operating System from Linux, Unix,FreeBSD,MacOSX, and Solaris.... has the best file System? and Y it is best for this OS?
regards.... (1 Reply)
Hello, Max here, I have installed FreeBSD on a compaq Intel box an have filesystem problems. I am now on install number 3 and encounter the same error. This time after DL the ports list and DL a number of programs the DL stopped and I got an error message that the filesystem is full I am looking... (6 Replies)
Hello!
I deleted the disk of my camera by rm, and I need to restore these files.
I cannot do it by unrm because that utility is meant for use in ext/ufs filesystem, and that disk is msdosfs.
Someone help me!
Thanks for any answer! (4 Replies)
Hi Folks,
Looking for info here more than any actual HowTo, does anyone know if there is an actual way of converting a Veritas or UFS filesystem to ZFS leaving the resident data intact.
All that I have been able to find, including the commercial products seem to require the FS backed up from... (1 Reply)
Hi, I recently research on how auto-mailing to notify the increase of storage size. I try avoid schedule/routine checkup the storage to determine increase the storage size. It is time-consuming. Any comment on how to get the storage size %? and automatically trigger mailing function instead... (16 Replies)
Hey ,
I was wondering how does Linux recognize file types if he doesn't use extensions to determine the file type ?
It's just a question not for a script or something else.
thnx:o (3 Replies)
Hi,
I have a task of creating a UFS filesystem in an LDOM. It is located in a hypervisor (CDOM).
The storage has been provisioned to the CDOM. How do I make it reflect to the LDOM, and then from there configure/set up the filesystem in the LDOM?
Please help. (1 Reply)
I need to increase the /var (UFS) filesystem and root disk under veritas control or root disk is encapsulated
# df -k /var
Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/var 13241195 12475897 674524 96% /var
# fstyp /dev/vx/dsk/var
ufs
# pkginfo... (1 Reply)