1fstyp(1M) System Administration Commands fstyp(1M)
2
3
4
6 fstyp - determine file system type
7
9 fstyp [-a | -v] special [:logical-drive]
10
11
13 fstyp allows the user to determine the file system type of unmounted
14 file systems using heuristic programs.
15
16
17 An fstyp module for each file system type to be checked is executed;
18 each of these modules applies an appropriate heuristic to determine
19 whether the supplied special file is of the type for which it checks.
20 If it is, the program prints on standard output the usual file system
21 identifier for that type (for example, ``ufs'') and exits with a return
22 code of 0; if none of the modules succeed, the error message
23 unknown_fstyp (no matches) is returned and the exit status is 1. If
24 more than one module succeeds, the error message unknown_fstyp (multi‐
25 ple matches) is returned and the exit status is 2. Other errors are
26 printed in the same format.
27
28
29 This command is unreliable and its results should not be used to make
30 any decisions about subsequent use of a storage device or disk parti‐
31 tion.
32
34 -a Output all available file system attributes. If a file system has
35 been successfully identified, and this option is specified, the
36 FSType identifier is followed by one or more "name-value" pairs,
37 one per line, in the format:
38
39 name: value
40
41
42 The following conventions are recognized for the file system
43 attributes:
44
45 o String values are put in single quotes.
46
47 o Nested "name-value" list increases the indentation of
48 its values by four whitespaces.
49
50 o For an array of "name-value" pairs, one array entry is
51 printed per line, with the index following the name in
52 square brackets.
53 For instance, in the following example, "top_list" is a "name-
54 value" list, consisting of a string array "string_array" and a
55 "name-value" list array "list_array". The second "list_array"ele‐
56 ment is an integer array "int_array" containing three elements.
57
58 top_string: 'String'
59 top_list:
60 string_array[0]: 'S0'
61 string_array[1]: 'S1'
62 list_array[0]:
63 int_one: 1
64 string_two: 'S2'
65 list_array[1]:
66 int_array[0]: 1
67 int_array[1]: 2
68 int_array[2]: 3
69
70
71 In addition to the FSType-specific attributes, the following
72 generic attributes may be present:
73
74 gen_clean Allowable values are "true" or "false". If the value
75 is "false", the file system is damaged or was not
76 unmounted cleanly and the fsck(1M) command must be
77 run before this file system can be mounted.
78
79
80 gen_guid Globally unique identifier. This string uniquely
81 identifies the file system.
82
83
84 gen_version A string describing the file system version.
85
86
87 gen_volume_label Volume label, a human-readable string used to
88 either describe or identify the file system.
89
90
91
92 -v Produce verbose output. This is usually information about the
93 file systems superblock and varies across different FSTypes. See
94 ufs(7FS), mkfs_ufs(1M), and tunefs(1M) for details.
95
96
98 See largefile(5) for the description of the behavior of fstyp when
99 encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).
100
102 See attributes(5) for descriptions of the following attributes:
103
104
105
106
107 ┌─────────────────────────────┬─────────────────────────────┐
108 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
109 ├─────────────────────────────┼─────────────────────────────┤
110 │Availability │SUNWcsu │
111 └─────────────────────────────┴─────────────────────────────┘
112
114 fsck(1M), mkfs_ufs(1M), tunefs(1M), attributes(5), libfstyp(3LIB),
115 largefile(5), hsfs(7FS), ufs(7FS), pcfs(7FS)
116
118 The use of heuristics implies that the result offstyp is not guaranteed
119 to be accurate.
120
121
122 This command is unreliable and its results should not be used to make
123 any decisions about subsequent use of a storage device or disk parti‐
124 tion.
125
126
127
128SunOS 5.11 19 Dec 2007 fstyp(1M)