Upgrade to file-4.18.
[dragonfly.git] / contrib / file-4 / magic / Magdir / filesystems
1
2 #------------------------------------------------------------------------------
3 # filesystems:  file(1) magic for different filesystems
4 #
5 0       string  \366\366\366\366        PC formatted floppy with no filesystem
6 # Sun disk labels
7 # From /usr/include/sun/dklabel.h:
8 0774    beshort         0xdabe          Sun disk label
9 >0      string          x               '%s
10 >>31    string          >\0             \b%s
11 >>>63   string          >\0             \b%s
12 >>>>95  string          >\0             \b%s
13 >0      string          x               \b'
14 >0734   short           >0              %d rpm,
15 >0736   short           >0              %d phys cys,
16 >0740   short           >0              %d alts/cyl,
17 >0746   short           >0              %d interleave,
18 >0750   short           >0              %d data cyls,
19 >0752   short           >0              %d alt cyls,
20 >0754   short           >0              %d heads/partition,
21 >0756   short           >0              %d sectors/track,
22 >0764   long            >0              start cyl %ld,
23 >0770   long            x               %ld blocks
24 # Is there a boot block written 1 sector in?
25 >512    belong&077777777        0600407 \b, boot block present
26 # DOS Emulator image is 128 byte header + harddisc image
27 0       string  DOSEMU\0                        
28 >0x27E  leshort 0xAA55                  DOS Emulator image
29 0x1FE   leshort 0xAA55                  x86 boot sector
30 >2      string  OSBS                    \b, OS/BS MBR
31 # J\xf6rg Jenderek <joerg.jenderek@gmx.net>
32 >0x8C   string  Invalid\ partition\ table       \b, MS-DOS MBR
33 # dr-dos with some upper-, lowercase variants
34 >0x9D   string  Invalid\ partition\ table$      
35 >>181   string  No\ Operating\ System$          
36 >>>201  string  Operating\ System\ load\ error$ \b, DR-DOS MBR, Version 7.01 to 7.03
37 >0x9D   string  Invalid\ partition\ table$      
38 >>181   string  No\ operating\ system$          
39 >>>201  string  Operating\ system\ load\ error$ \b, DR-DOS MBR, Version 7.01 to 7.03
40 >342    string  Invalid\ partition\ table$      
41 >>366   string  No\ operating\ system$          
42 >>>386  string  Operating\ system\ load\ error$ \b, DR-DOS MBR, version 7.01 to 7.03
43 >295    string  NEWLDR\0                                
44 >>302   string  Bad\ PT\ $                              
45 >>>310  string  No\ OS\ $                               
46 >>>>317 string  OS\ load\ err$                          
47 >>>>>329        string  Moved\ or\ missing\ IBMBIO.LDR\n\r      
48 >>>>>>358       string  Press\ any\ key\ to\ continue.\n\r$     
49 >>>>>>>387      string  Copyright\ (c)\ 1984,1998       
50 >>>>>>>>411     string  Caldera\ Inc.\0         \b, DR-DOS MBR (IBMBIO.LDR)
51 >0x10F  string  Ung\201ltige\ Partitionstabelle \b, MS-DOS MBR, german version 4.10.1998, 4.10.2222
52 >0x8B   string  Ung\201ltige\ Partitionstabelle \b, MS-DOS MBR, german version 5.00 to 4.00.950
53 >300    string  Invalid\ partition\ table\0     
54 >>324   string  Error\ loading\ operating\ system\0
55 >>>355  string  Missing\ operating\ system\0            \b, Microsoft Windows XP MBR
56 #??>>>389       string  Invalid\ system\ disk           
57 >300    string  Ung\201ltige\ Partitionstabelle
58 #split string to avoid error: String too long
59 >>328   string  Fehler\ beim\ Laden\    
60 >>>346  string  des\ Betriebssystems    
61 >>>>366 string  Betriebssystem\ nicht\ vorhanden        \b, Microsoft Windows XP MBR (german)
62 >0x145  string  Default:\ F                             \b, FREE-DOS MBR
63 >64     string  no\ active\ partition\ found    
64 >>96    string  read\ error\ while\ reading\ drive      \b, FREE-DOS Beta9 MBR
65 # bootloader, bootmanager
66 >43     string  SMART\ BTMGRFAT12\ \ \          
67 >>430   string  SBMK\ Bad!\r                    
68 >>>3    string  SBM                             \b, Smart Boot Manager
69 >>>>6   string  >\0                             \b, version %s
70 >382    string  XOSLLOADXCF                     \b, EXtended Operating System Loader
71 >6      string  LILO                            \b, LInux i386 boot LOader
72 >>120   string  LILO                            \b, version 22.3.4 SuSe
73 >>172   string  LILO                            \b, version 22.5.8 Debian
74 >402    string  Geom\0Hard\ Disk\0Read\0\ Error\0
75 >>394   string  stage1                          \b, GRand Unified Bootloader (0.5.95)
76 >380    string  Geom\0Hard\ Disk\0Read\0\ Error\0
77 >>374   string  GRUB\ \0                        \b, GRand Unified Bootloader
78 >382    string  Geom\0Hard\ Disk\0Read\0\ Error\0
79 >>376   string  GRUB\ \0                        \b, GRand Unified Bootloader (0.93)
80 >383    string  Geom\0Hard\ Disk\0Read\0\ Error\0
81 >>377   string  GRUB\ \0                        \b, GRand Unified Bootloader (0.94)
82 >480    string  Boot\ failed\r                  
83 >>495   string  LDLINUX\ SYS                    \b, SYSLINUX bootloader (2.06)
84 >395    string  chksum\0\ ERROR!\0              \b, Gujin bootloader
85 >185    string  FDBOOT\ Version\                        
86 >>204   string  \rNo\ Systemdisk.\                      
87 >>>220  string  Booting\ from\ harddisk.\n\r            
88 >>>245  string  Cannot\ load\ from\ harddisk.\n\r       
89 >>>>273 string  Insert\ Systemdisk\                     
90 >>>>>291 string and\ press\ any\ key.\n\r               \b, FDBOOT harddisk Bootloader
91 >>>>>>200 string        >\0                             \b, version %-3s
92 >242    string  Bootsector\ from\ C.H.\ Hochst\204      
93 >>278   string  No\ Systemdisk.\                        
94 >>>293  string  Booting\ from\ harddisk.\n\r            
95 >>>441  string  Cannot\ load\ from\ harddisk.\n\r       
96 >>>>469 string  Insert\ Systemdisk\                     
97 >>>>>487 string and\ press\ any\ key.\n\r               \b, WinImage harddisk Bootloader
98 >>>>>>209 string        >\0                             \b, version %-4.4s
99 >(1.b+2)        ubyte           0xe                     
100 >>(1.b+3)       ubyte           0x1f                    
101 >>>(1.b+4)      ubyte           0xbe                    
102 >>>>(1.b+5)     ubyte           0x77                    
103 >>>>(1.b+6)     ubyte           0x7c                    
104 >>>>>(1.b+7)    ubyte           0xac                    
105 >>>>>>(1.b+8)   ubyte           0x22                    
106 >>>>>>>(1.b+9)  ubyte           0xc0                    
107 >>>>>>>>(1.b+10)        ubyte   0x74                    
108 >>>>>>>>>(1.b+11)       ubyte   0xb                     
109 >>>>>>>>>>(1.b+12)      ubyte   0x56                    
110 >>>>>>>>>>(1.b+13)      ubyte   0xb4                    \b, mkdosfs boot message display
111 # XP
112 >430    string  NTLDR\ is\ missing\xFF\r\n              
113 >>449   string  Disk\ error\xFF\r\n                     
114 >>>462  string  Press\ any\ key\ to\ restart\r          \b, Microsoft Windows XP Bootloader
115 # DOS names like NTLDR,CMLDR,$LDR$ are 8 right space padded bytes+3 bytes
116 >>>>417         ubyte           <0x7E                   
117 >>>>>417        string          >\                      %-.5s
118 >>>>>>422       ubyte           <0x7E                   
119 >>>>>>>422      string          >\                      \b%-.3s
120 >>>>>>425       string          >\                      \b.%-.3s
121 #
122 >>>>368         ubyte           <0x7E                   
123 >>>>>368        string          >\                      %-.5s
124 >>>>>>373       ubyte           <0x7E                   
125 >>>>>>>373      string          >\                      \b%-.3s
126 >>>>>>376       string          >\                      \b.%-.3s
127 #
128 >430    string  NTLDR\ nicht\ gefunden\xFF\r\n          
129 >>453   string  Datentr\204gerfehler\xFF\r\n            
130 >>>473  string  Neustart\ mit\ beliebiger\ Taste\r      \b, Microsoft Windows XP Bootloader (german)
131 >>>>417         ubyte           <0x7E                   
132 >>>>>417        string          >\                      %-.5s
133 >>>>>>422       ubyte           <0x7E                   
134 >>>>>>>422      string          >\                      \b%-.3s
135 >>>>>>425       string          >\                      \b.%-.3s
136 #
137 >>>>368         ubyte           <0x7E                   
138 >>>>>368        string          >\                      %-.5s
139 >>>>>>373       ubyte           <0x7E                   
140 >>>>>>>373      string          >\                      \b%-.3s
141 >>>>>>376       string          >\                      \b.%-.3s
142 #
143 >430    string  NTLDR\ fehlt\xFF\r\n                    
144 >>444   string  Datentr\204gerfehler\xFF\r\n            
145 >>>464  string  Neustart\ mit\ beliebiger\ Taste\r      \b, Microsoft Windows XP Bootloader (2.german)
146 >>>>417         ubyte           <0x7E                   
147 >>>>>417        string          >\                      %-.5s
148 >>>>>>422       ubyte           <0x7E                   
149 >>>>>>>422      string          >\                      \b%-.3s
150 >>>>>>425       string          >\                      \b.%-.3s
151 #
152 >430    string  NTLDR\ fehlt\xFF\r\n                    
153 >>444   string  Medienfehler\xFF\r\n                    
154 >>>459  string  Neustart:\ Taste\ dr\201cken\r          \b, Microsoft Windows XP Bootloader (3.german)
155 >>>>368         ubyte           <0x7E                   
156 >>>>>368        string          >\                      %-.5s
157 >>>>>>373       ubyte           <0x7E                   
158 >>>>>>>373      string          >\                      \b%-.3s
159 >>>>>>376       string          >\                      \b.%-.3s
160 >>>>417         ubyte           <0x7E                   
161 >>>>>417        string          >\                      %-.5s
162 >>>>>>422       ubyte           <0x7E                   
163 >>>>>>>422      string          >\                      \b%-.3s
164 >>>>>>425       string          >\                      \b.%-.3s
165 #
166 >430    string  Datentr\204ger\ entfernen\xFF\r\n       
167 >>454   string  Medienfehler\xFF\r\n                    
168 >>>469  string  Neustart:\ Taste\ dr\201cken\r          \b, Microsoft Windows XP Bootloader (4.german)
169 >>>>368         ubyte           <0x7E                   
170 >>>>>368        string          >\                      %-.5s
171 >>>>>>373       ubyte           <0x7E                   
172 >>>>>>>373      string          >\                      \b%-.3s
173 >>>>>>376       string          >\                      \b.%-.3s
174 #>3     string  NTFS\ \ \ \                             
175 >389    string  Fehler\ beim\ Lesen\ 
176 >>407   string  des\ Datentr\204gers
177 >>>426  string  NTLDR\ fehlt                            
178 >>>>440 string  NTLDR\ ist\ komprimiert
179 >>>>>464 string Neustart\ mit\ Strg+Alt+Entf\r          \b, Microsoft Windows XP Bootloader NTFS (german)
180 #>3     string  NTFS\ \ \ \                             
181 >313    string  A\ disk\ read\ error\ occurred.\r
182 >>345   string  A\ kernel\ file\ is\ missing\   
183 >>>370  string  from\ the\ disk.\r              
184 >>>>484 string  NTLDR\ is\ compressed           
185 >>>>>429 string Insert\ a\ system\ diskette\    
186 >>>>>>454 string and\ restart\r\nthe\ system.\r         \b, Microsoft Windows XP Bootloader NTFS
187 # DOS loader variants different languages,offsets
188 >472    string  IO\ \ \ \ \ \ SYSMSDOS\ \ \ SYS         
189 >>497   string  WINBOOT\ SYS                            
190 >>389   string  Invalid\ system\ disk\xFF\r\n           
191 >>>411  string  Disk\ I/O\ error                        
192 >>>>428 string  Replace\ the\ disk,\ and\               
193 >>>>>455 string press\ any\ key                         \b, Microsoft Windows 98 Bootloader
194 #
195 >>390   string  Invalid\ system\ disk\xFF\r\n           
196 >>>412  string  Disk\ I/O\ error\xFF\r\n                
197 >>>>429 string  Replace\ the\ disk,\ and\               
198 >>>>>451 string then\ press\ any\ key\r                 \b, Microsoft Windows 98 Bootloader
199 >>388   string  Ungueltiges\ System\ \xFF\r\n           
200 >>>410  string  E/A-Fehler\ \ \ \ \xFF\r\n              
201 >>>>427 string  Datentraeger\ wechseln\ und\            
202 >>>>>453 string Taste\ druecken\r                       \b, Microsoft Windows 95/98/ME Bootloader (german)
203 #
204 >>390   string  Ungueltiges\ System\ \xFF\r\n           
205 >>>412  string  E/A-Fehler\ \ \ \ \xFF\r\n              
206 >>>>429 string  Datentraeger\ wechseln\ und\            
207 >>>>>455 string Taste\ druecken\r                       \b, Microsoft Windows 95/98/ME Bootloader (German)
208 #
209 >>389   string  Ungueltiges\ System\ \xFF\r\n           
210 >>>411  string  E/A-Fehler\ \ \ \ \xFF\r\n              
211 >>>>428 string  Datentraeger\ wechseln\ und\            
212 >>>>>454 string Taste\ druecken\r                       \b, Microsoft Windows 95/98/ME Bootloader (GERMAN)
213 >479    string  IO\ \ \ \ \ \ SYSMSDOS\ \ \ SYS         
214 >>416   string  Kein\ System\ oder\                     
215 >>>433  string  Laufwerksfehler                         
216 >>>>450 string  Wechseln\ und\ Taste\ dr\201cken        \b, Microsoft DOS Bootloader (german)
217 >486    string  IO\ \ \ \ \ \ SYSMSDOS\ \ \ SYS         
218 >>416   string  Non-System\ disk\ or\                   
219 >>>435  string  disk\ error\r                           
220 >>>>447 string  Replace\ and\ press\ any\ key\          
221 >>>>>473 string when\ ready\r                           \b, Microsoft DOS Bootloader
222 >480    string  IO\ \ \ \ \ \ SYSMSDOS\ \ \ SYS         
223 >>393   string  Non-System\ disk\ or\                   
224 >>>412  string  disk\ error\r                           
225 >>>>424 string  Replace\ and\ press\ any\ key\          
226 >>>>>450 string when\ ready\r                           \b, Microsoft DOS bootloader
227 #>43    string  \224R-LOADER\ \ SYS                     =label                                  
228 >54     string  SYS
229 >>324   string  VASKK
230 >>>495  string  NEWLDR\0                                \b, DR-DOS Bootloader (LOADER.SYS)
231 #
232 >70     string  IBMBIO\ \ COM                           
233 >>472   string  Cannot\ load\ DOS!\                     
234 >>>489  string  Any\ key\ to\ retry                     \b, DR-DOS Bootloader
235 >>471   string  Cannot\ load\ DOS\                      
236 >>487   string  press\ key\ to\ retry                   \b, Open-DOS Bootloader
237 >444    string  KERNEL\ \ SYS                                   
238 >>314   string  BOOT\ error!                            \b, FREE-DOS Bootloader
239 >499    string  KERNEL\ \ SYS                           
240 >>305   string  BOOT\ err!\0                            \b, Free-DOS Bootloader
241 >449    string  KERNEL\ \ SYS                           
242 >>319   string  BOOT\ error!                            \b, FREE-DOS 5.0 Bootloader
243 >124    string  FreeDOS\0                               
244 >>331   string  \ err\0                                 \b, FREE-DOS BETa 9 Bootloader
245 # DOS names like KERNEL.SYS,KERNEL16.SYS,KERNEL32.SYS,METAKERN.SYS are 8 right space padded bytes+3 bytes
246 >>>497          string          >\                      %-.6s
247 >>>>503         string          >\                      \b%-.1s
248 >>>>504         string          >\                      \b%-.1s
249 >>>505          string          >\                      \b.%-.3s
250 >>333   string  \ err\0                                 \b, FREE-DOS BEta 9 Bootloader
251 >>>497          string          >\                      %-.6s
252 >>>>503         string          >\                      \b%-.1s
253 >>>>504         string          >\                      \b%-.1s
254 >>>505          string          >\                      \b.%-.3s
255 >>334   string  \ err\0                                 \b, FREE-DOS Beta 9 Bootloader
256 >>>497          string          >\                      %-.6s
257 >>>>503         string          >\                      \b%-.1s
258 >>>>504         string          >\                      \b%-.1s
259 >>>505          string          >\                      \b.%-.3s
260 # loader end
261 >0      string  \0\0\0\0                \b, extended partition table
262 # JuMP short     bootcodeoffset NOP assembler instructions will usually be EB xx 90
263 # older drives may use E9 xx xx
264 >0              lelong&0x009000EB       0x009000EB 
265 >0              lelong&0x000000E9       0x000000E9 
266 >>1             ubyte                   >37     \b, code offset 0x%x
267 # mtools-3.9.8/msdos.h
268 # usual values are marked with comments to get only informations of strange FAT systems
269 # valid sectorsize are from 32 to 2048
270 >>>11           uleshort        <2049   
271 >>>>11          uleshort        >31     
272 >>>>>3          string          >\0             \b, OEM-ID "%8.8s"
273 >>>>>11         uleshort        >512            \b, Bytes/sector %u
274 #>>>>>11        uleshort        =512            \b, Bytes/sector %u=512 (usual)
275 >>>>>11         uleshort        <512            \b, Bytes/sector %u
276 >>>>>13         ubyte           >1              \b, sectors/cluster %u
277 #>>>>>13        ubyte           =1              \b, sectors/cluster %u (usual on Floppies)
278 >>>>>14         uleshort        >32             \b, reserved sectors %u
279 #>>>>>14        uleshort        =32             \b, reserved sectors %u (usual Fat32)
280 #>>>>>14        uleshort        >1              \b, reserved sectors %u
281 #>>>>>14        uleshort        =1              \b, reserved sectors %u (usual FAT12,FAT16)
282 >>>>>14         uleshort        <1              \b, reserved sectors %u
283 >>>>>16         ubyte           >2              \b, FATs %u
284 #>>>>>16        ubyte           =2              \b, FATs %u (usual)
285 >>>>>16         ubyte           =1              \b, FAT  %u
286 >>>>>16         ubyte           >0
287 >>>>>17         uleshort        >0              \b, root entries %u
288 #>>>>>17        uleshort        =0              \b, root entries %u=0 (usual Fat32)
289 >>>>>19         uleshort        >0              \b, sectors %u (volumes <=32 MB) 
290 #>>>>>19        uleshort        =0              \b, sectors %u=0 (usual Fat32)
291 >>>>>21         ubyte           >0xF0           \b, Media descriptor 0x%x
292 #>>>>>21        ubyte           =0xF0           \b, Media descriptor 0x%x (usual floppy)
293 >>>>>21         ubyte           <0xF0           \b, Media descriptor 0x%x
294 >>>>>22         uleshort        >0              \b, sectors/FAT %u
295 #>>>>>22        uleshort        =0              \b, sectors/FAT %u=0 (usual Fat32)
296 >>>>>26         ubyte           >2              \b, heads %u
297 #>>>>>26        ubyte           =2              \b, heads %u (usual floppy)
298 >>>>>26         ubyte           =1              \b, heads %u
299 >>>>>28         ulelong         >0              \b, hidden sectors %u
300 #>>>>>28        ulelong         =0              \b, hidden sectors %u (usual floppy)
301 >>>>>32         ulelong         >0              \b, sectors %u (volumes > 32 MB) 
302 #>>>>>32        ulelong         =0              \b, sectors %u (volumes > 32 MB) 
303 # FAT<32 specific 
304 # NOT le FAT3=NOT 3TAF=0xCCABBEB9
305 >>>>>82         ulelong&0xCCABBEB9      >0
306 >>>>>>36        ubyte           >0x80           \b, physical drive 0x%x
307 #>>>>>>36       ubyte           =0x80           \b, physical drive 0x%x=0x80 (usual harddisk)
308 >>>>>>36        ubyte&0x7F      >0              \b, physical drive 0x%x
309 #>>>>>>36       ubyte           =0              \b, physical drive 0x%x=0 (usual floppy)
310 >>>>>>37        ubyte           >0              \b, reserved 0x%x
311 #>>>>>>37       ubyte           =0              \b, reserved 0x%x
312 >>>>>>38        ubyte           >0x29           \b, dos < 4.0 BootSector (0x%x)
313 >>>>>>38        ubyte           <0x29           \b, dos < 4.0 BootSector (0x%x)
314 >>>>>>38        ubyte           =0x29
315 >>>>>>>39       ulelong         x               \b, serial number 0x%x
316 >>>>>>>43       string          <NO\ NAME       \b, label: "%11.11s"
317 >>>>>>>43       string          >NO\ NAME       \b, label: "%11.11s"
318 >>>>>>>43       string          =NO\ NAME       \b, unlabeled
319 >>>>>>54        string          FAT1            \b, FAT
320 >>>>>>>54       string          FAT12           \b (12 bit)
321 >>>>>>>54       string          FAT16           \b (16 bit)
322 # FAT32 specific
323 >>>>>82         string          FAT32           \b, FAT (32 bit)
324 >>>>>>36        ulelong         x               \b, sectors/FAT %u
325 >>>>>>40        uleshort        >0              \b, extension flags %u
326 #>>>>>>40       uleshort        =0              \b, extension flags %u
327 >>>>>>42        uleshort        >0              \b, fsVersion %u
328 #>>>>>>42       uleshort        =0              \b, fsVersion %u (usual)
329 >>>>>>44        ulelong         >2              \b, rootdir cluster %u
330 #>>>>>>44       ulelong         =2              \b, rootdir cluster %u
331 #>>>>>>44       ulelong         =1              \b, rootdir cluster %u
332 >>>>>>48        uleshort        >1              \b, infoSector %u
333 #>>>>>>48       uleshort        =1              \b, infoSector %u (usual)
334 >>>>>>48        uleshort        <1              \b, infoSector %u
335 >>>>>>50        uleshort        >6              \b, Backup boot sector %u
336 #>>>>>>50       uleshort        =6              \b, Backup boot sector %u (usual) 
337 >>>>>>50        uleshort        <6              \b, Backup boot sector %u
338 >>>>>>54        ulelong         >0              \b, reserved1 0x%x
339 >>>>>>58        ulelong         >0              \b, reserved2 0x%x
340 >>>>>>62        ulelong         >0              \b, reserved3 0x%x
341 # same structure as FAT1X 
342 >>>>>>64        ubyte           >0x80           \b, physical drive 0x%x
343 #>>>>>>64       ubyte           =0x80           \b, physical drive 0x%x=80 (usual harddisk)
344 >>>>>>64        ubyte&0x7F      >0              \b, physical drive 0x%x
345 #>>>>>>64       ubyte           =0              \b, physical drive 0x%x=0 (usual floppy)
346 >>>>>>65        ubyte           >0              \b, reserved 0x%x
347 >>>>>>66        ubyte           >0x29           \b, dos < 4.0 BootSector (0x%x)
348 >>>>>>66        ubyte           <0x29           \b, dos < 4.0 BootSector (0x%x)
349 >>>>>>66        ubyte           =0x29
350 >>>>>>>67       ulelong         x               \b, serial number 0x%x
351 >>>>>>>71       string          <NO\ NAME       \b, label: "%11.11s"
352 >>>>>>71        string          >NO\ NAME       \b, label: "%11.11s"
353 >>>>>>71        string          =NO\ NAME       \b, unlabeled
354 ### FATs end
355 >0x200  lelong  0x82564557              \b, BSD disklabel
356 # FATX 
357 0               string          FATX            FATX filesystem data
358
359
360 # Minix filesystems - Juan Cespedes <cespedes@debian.org>
361 0x410   leshort         0x137f          Minix filesystem
362 0x410   beshort         0x137f          Minix filesystem (big endian),
363 >0x402  beshort         !0              \b, %d zones
364 >0x1e   string          minix           \b, bootable
365 0x410   leshort         0x138f          Minix filesystem, 30 char names
366 0x410   leshort         0x2468          Minix filesystem, version 2
367 0x410   leshort         0x2478          Minix filesystem, version 2, 30 char names
368
369 # romfs filesystems - Juan Cespedes <cespedes@debian.org>
370 0       string          -rom1fs-\0      romfs filesystem, version 1
371 >8      belong  x                       %d bytes,
372 >16     string  x                       named %s.
373
374 # netboot image - Juan Cespedes <cespedes@debian.org>
375 0       lelong          0x1b031336L     Netboot image,
376 >4      lelong&0xFFFFFF00       0
377 >>4     lelong&0x100    0x000           mode 2
378 >>4     lelong&0x100    0x100           mode 3
379 >4      lelong&0xFFFFFF00       !0      unknown mode
380
381 0x18b   string  OS/2    OS/2 Boot Manager
382
383 9564    lelong          0x00011954      Unix Fast File system (little-endian),
384 >8404   string          x               last mounted on %s,
385 #>9504  ledate          x               last checked at %s,
386 >8224   ledate          x               last written at %s,
387 >8401   byte            x               clean flag %d,
388 >8228   lelong          x               number of blocks %d,
389 >8232   lelong          x               number of data blocks %d,
390 >8236   lelong          x               number of cylinder groups %d,
391 >8240   lelong          x               block size %d,
392 >8244   lelong          x               fragment size %d,
393 >8252   lelong          x               minimum percentage of free blocks %d,
394 >8256   lelong          x               rotational delay %dms,
395 >8260   lelong          x               disk rotational speed %drps,
396 >8320   lelong          0               TIME optimization
397 >8320   lelong          1               SPACE optimization
398
399 9564    belong          0x00011954      Unix Fast File system (big-endian),
400 >7168   long            0x4c41424c      Apple UFS Volume
401 >>7186  string          x               named %s,
402 >>7176  belong          x               volume label version %d,
403 >>7180  bedate          x               created on %s,
404 >8404   string          x               last mounted on %s,
405 #>9504  bedate          x               last checked at %s,
406 >8224   bedate          x               last written at %s,
407 >8401   byte            x               clean flag %d,
408 >8228   belong          x               number of blocks %d,
409 >8232   belong          x               number of data blocks %d,
410 >8236   belong          x               number of cylinder groups %d,
411 >8240   belong          x               block size %d,
412 >8244   belong          x               fragment size %d,
413 >8252   belong          x               minimum percentage of free blocks %d,
414 >8256   belong          x               rotational delay %dms,
415 >8260   belong          x               disk rotational speed %drps,
416 >8320   belong          0               TIME optimization
417 >8320   belong          1               SPACE optimization
418
419 # ext2/ext3 filesystems - Andreas Dilger <adilger@turbolabs.com>
420 0x438   leshort         0xEF53          Linux
421 >0x44c  lelong          x               rev %d
422 >0x43e  leshort         x               \b.%d
423 >0x45c  lelong          ^0x0000004      ext2 filesystem data
424 >>0x43a leshort         ^0x0000001      (mounted or unclean)
425 >0x45c  lelong          &0x0000004      ext3 filesystem data
426 >>0x460 lelong          &0x0000004      (needs journal recovery)
427 >0x43a  leshort         &0x0000002      (errors)
428 >0x460  lelong          &0x0000001      (compressed)
429 #>0x460 lelong          &0x0000002      (filetype)
430 #>0x464 lelong          &0x0000001      (sparse_super)
431 >0x464  lelong          &0x0000002      (large files)
432
433 # SGI disk labels - Nathan Scott <nathans@debian.org>
434 0       belong          0x0BE5A941      SGI disk label (volume header)
435
436 # SGI XFS filesystem - Nathan Scott <nathans@debian.org>
437 0       belong          0x58465342      SGI XFS filesystem data
438 >0x4    belong          x               (blksz %d,
439 >0x68   beshort         x               inosz %d,
440 >0x64   beshort         ^0x2004         v1 dirs)
441 >0x64   beshort         &0x2004         v2 dirs)
442
443 ############################################################################
444 # Minix-ST kernel floppy
445 0x800   belong          0x46fc2700      Atari-ST Minix kernel image
446 >19     string          \240\5\371\5\0\011\0\2\0        \b, 720k floppy
447 >19     string          \320\2\370\5\0\011\0\1\0        \b, 360k floppy
448
449 ############################################################################
450 # Hmmm, is this a better way of detecting _standard_ floppy images ?
451 19      string          \320\2\360\3\0\011\0\1\0        DOS floppy 360k
452 >0x1FE  leshort         0xAA55          \b, x86 hard disk boot sector
453 19      string          \240\5\371\3\0\011\0\2\0        DOS floppy 720k
454 >0x1FE  leshort         0xAA55          \b, x86 hard disk boot sector
455 19      string          \100\013\360\011\0\022\0\2\0    DOS floppy 1440k
456 >0x1FE  leshort         0xAA55          \b, x86 hard disk boot sector
457
458 19      string          \240\5\371\5\0\011\0\2\0        DOS floppy 720k, IBM
459 >0x1FE  leshort         0xAA55          \b, x86 hard disk boot sector
460 19      string          \100\013\371\5\0\011\0\2\0      DOS floppy 1440k, mkdosfs
461 >0x1FE  leshort         0xAA55          \b, x86 hard disk boot sector
462
463 19      string          \320\2\370\5\0\011\0\1\0        Atari-ST floppy 360k
464 19      string          \240\5\371\5\0\011\0\2\0        Atari-ST floppy 720k
465
466 #  Valid media descriptor bytes for MS-DOS:
467 #
468 #     Byte   Capacity   Media Size and Type
469 #     -------------------------------------------------
470 #
471 #     F0     2.88 MB    3.5-inch, 2-sided, 36-sector
472 #     F0     1.44 MB    3.5-inch, 2-sided, 18-sector
473 #     F9     720K       3.5-inch, 2-sided, 9-sector
474 #     F9     1.2 MB     5.25-inch, 2-sided, 15-sector
475 #     FD     360K       5.25-inch, 2-sided, 9-sector
476 #     FF     320K       5.25-inch, 2-sided, 8-sector
477 #     FC     180K       5.25-inch, 1-sided, 9-sector
478 #     FE     160K       5.25-inch, 1-sided, 8-sector
479 #     FE     250K       8-inch, 1-sided, single-density
480 #     FD     500K       8-inch, 2-sided, single-density
481 #     FE     1.2 MB     8-inch, 2-sided, double-density
482 #     F8     -----      Fixed disk 
483 #
484 #     FC     xxxK       Apricot 70x1x9 boot disk.
485 #
486 # Originally a bitmap:
487 #  xxxxxxx0     Not two sided
488 #  xxxxxxx1     Double sided
489 #  xxxxxx0x     Not 8 SPT
490 #  xxxxxx1x     8 SPT
491 #  xxxxx0xx     Not Removable drive
492 #  xxxxx1xx     Removable drive
493 #  11111xxx     Must be one.
494 #
495 # But now it's rather random:
496 #  111111xx     Low density disk
497 #        00     SS, Not 8 SPT
498 #        01     DS, Not 8 SPT
499 #        10     SS, 8 SPT
500 #        11     DS, 8 SPT
501 #
502 #  11111001     Double density 3½ floppy disk, high density 5¼
503 #  11110000     High density 3½ floppy disk
504 #  11111000     Hard disk any format
505 #
506
507 # CDROM Filesystems
508 32769    string    CD001     ISO 9660 CD-ROM filesystem data
509 # "application id" which appears to be used as a volume label
510 >32808   string    >\0       '%s'
511 >34816   string    \000CD001\001EL\ TORITO\ SPECIFICATION    (bootable)
512 37633    string    CD001     ISO 9660 CD-ROM filesystem data (raw 2352 byte sectors)
513 32776    string    CDROM     High Sierra CD-ROM filesystem data
514
515 # cramfs filesystem - russell@coker.com.au
516 0       lelong    0x28cd3d45      Linux Compressed ROM File System data, little endian
517 >4      lelong  x size %d
518 >8      lelong  &1 version #2
519 >8      lelong  &2 sorted_dirs
520 >8      lelong  &4 hole_support
521 >32     lelong  x CRC 0x%x,
522 >36     lelong  x edition %d,
523 >40     lelong  x %d blocks,
524 >44     lelong  x %d files
525
526 0       belong    0x28cd3d45      Linux Compressed ROM File System data, big endian
527 >4      belong  x size %d
528 >8      belong  &1 version #2
529 >8      belong  &2 sorted_dirs
530 >8      belong  &4 hole_support
531 >32     belong  x CRC 0x%x,
532 >36     belong  x edition %d,
533 >40     belong  x %d blocks,
534 >44     belong  x %d files
535
536 # reiserfs - russell@coker.com.au
537 0x10034         string  ReIsErFs        ReiserFS V3.5
538 0x10034         string  ReIsEr2Fs       ReiserFS V3.6
539 >0x1002c        leshort x               block size %d
540 >0x10032        leshort &2              (mounted or unclean)
541 >0x10000        lelong  x               num blocks %d
542 >0x10040        lelong  1               tea hash
543 >0x10040        lelong  2               yura hash
544 >0x10040        lelong  3               r5 hash
545
546 # JFFS - russell@coker.com.au
547 0       lelong  0x34383931      Linux Journalled Flash File system, little endian
548 0       belong  0x34383931      Linux Journalled Flash File system, big endian
549
550 # EST flat binary format (which isn't, but anyway)
551 # From: Mark Brown <broonie@sirena.org.uk>
552 0       string  ESTFBINR        EST flat binary
553
554 # Aculab VoIP firmware
555 # From: Mark Brown <broonie@sirena.org.uk>
556 0       string  VoIP\ Startup\ and      Aculab VoIP firmware
557 >35     string  x       format %s
558
559 # PPCBoot image file
560 # From: Mark Brown <broonie@sirena.org.uk>
561 0       belong  0x27051956      PPCBoot image
562 >4      string  PPCBoot
563 >>12    string  x               version %s
564
565 # JFFS2 file system
566 0       leshort         0x1984                  Linux old jffs2 filesystem data little endian
567 0       lelong          0xe0011985              Linux jffs2 filesystem data little endian
568
569 # Squashfs
570 0       string  sqsh    Squashfs filesystem, big endian,
571 >28     beshort x       version %d.
572 >30     beshort x       \b%d,
573 >8      belong  x       %d bytes,
574 >4      belong  x       %d inodes,
575 >28     beshort <2
576 >>32    beshort x       blocksize: %d bytes,
577 >28     beshort >1
578 >>51    belong  x       blocksize: %d bytes,
579 >39     bedate  x       created: %s
580 0       string  hsqs    Squashfs filesystem, little endian,
581 >28     leshort x       version %d.
582 >30     leshort x       \b%d,
583 >8      lelong  x       %d bytes,
584 >4      lelong  x       %d inodes,
585 >28     leshort <2
586 >>32    leshort x       blocksize: %d bytes,
587 >28     leshort >1
588 >>51    lelong  x       blocksize: %d bytes,
589 >39     ledate  x       created: %s