xref: /openbsd-src/usr.bin/file/magdir/filesystems (revision 2b0358df1d88d06ef4139321dd05bd5e05d91eaf)
1#	$OpenBSD: filesystems,v 1.3 2008/05/08 01:40:57 chl Exp $
2
3#------------------------------------------------------------------------------
4# filesystems:  file(1) magic for different filesystems
5#
60	string	\366\366\366\366	PC formatted floppy with no filesystem
7# Sun disk labels
8# From /usr/include/sun/dklabel.h:
90774	beshort		0xdabe
10# modified by Joerg Jenderek, because original test
11# succeeds for Cabinet archive dao360.dl_ with negative blocks
12>0770	long		>0		Sun disk label
13>>0	string		x		'%s
14>>>31	string		>\0		\b%s
15>>>>63	string		>\0		\b%s
16>>>>>95	string		>\0		\b%s
17>>0	string		x		\b'
18>>0734	short		>0		%d rpm,
19>>0736	short		>0		%d phys cys,
20>>0740	short		>0		%d alts/cyl,
21>>0746	short		>0		%d interleave,
22>>0750	short		>0		%d data cyls,
23>>0752	short		>0		%d alt cyls,
24>>0754	short		>0		%d heads/partition,
25>>0756	short		>0		%d sectors/track,
26>>0764	long		>0		start cyl %ld,
27>>0770	long		x		%ld blocks
28# Is there a boot block written 1 sector in?
29>512    belong&077777777	0600407	\b, boot block present
30# Joerg Jenderek: Smart Boot Manager backup file is 41 byte header + first sectors of disc
31# (http://btmgr.sourceforge.net/docs/user-guide-3.html)
320		string	SBMBAKUP_	Smart Boot Manager backup file
33>9		string	x		\b, version %-5.5s
34>>14		string	=_
35>>>15		string	x		%-.1s
36>>>>16		string	=_		\b.
37>>>>>17		string	x		\b%-.1s
38>>>>>>18	string	=_		\b.
39>>>>>>>19	string	x		\b%-.1s
40>>>22		ubyte	0
41>>>>21		ubyte	x		\b, from drive 0x%x
42>>>22		ubyte	>0
43>>>>21		string	x		\b, from drive %s
44
45# Joerg Jenderek
46# DOS Emulator image is 128 byte, null right padded header + harddisc image
470	string	DOSEMU\0
48>0x27E	leshort	0xAA55
49#offset is 128
50>>19	ubyte	128
51>>>(19.b-1)	ubyte	0x0	DOS Emulator image
52>>>>7	ulelong	>0		\b, %u heads
53>>>>11	ulelong	>0		\b, %d sectors/track
54>>>>15	ulelong	>0		\b, %d cylinders
55
560x1FE	leshort	0xAA55			x86 boot sector
57>2	string	OSBS			\b, OS/BS MBR
58# J\xf6rg Jenderek <joerg dot jenderek at web dot de>
59>0x8C	string	Invalid\ partition\ table	\b, MS-DOS MBR
60# dr-dos with some upper-, lowercase variants
61>0x9D	string	Invalid\ partition\ table$
62>>181	string	No\ Operating\ System$
63>>>201	string	Operating\ System\ load\ error$	\b, DR-DOS MBR, Version 7.01 to 7.03
64>0x9D	string	Invalid\ partition\ table$
65>>181	string	No\ operating\ system$
66>>>201	string	Operating\ system\ load\ error$	\b, DR-DOS MBR, Version 7.01 to 7.03
67>342	string	Invalid\ partition\ table$
68>>366	string	No\ operating\ system$
69>>>386	string	Operating\ system\ load\ error$	\b, DR-DOS MBR, version 7.01 to 7.03
70>295	string	NEWLDR\0
71>>302	string	Bad\ PT\ $
72>>>310	string	No\ OS\ $
73>>>>317	string	OS\ load\ err$
74>>>>>329	string	Moved\ or\ missing\ IBMBIO.LDR\n\r
75>>>>>>358	string	Press\ any\ key\ to\ continue.\n\r$
76>>>>>>>387	string	Copyright\ (c)\ 1984,1998
77>>>>>>>>411	string	Caldera\ Inc.\0		\b, DR-DOS MBR (IBMBIO.LDR)
78>0x10F	string	Ung\201ltige\ Partitionstabelle	\b, MS-DOS MBR, german version 4.10.1998, 4.10.2222
79>>0x1B8	ubelong	>0				\b, Serial 0x%-.4x
80>0x8B	string	Ung\201ltige\ Partitionstabelle	\b, MS-DOS MBR, german version 5.00 to 4.00.950
81>271	string	Invalid\ partition\ table\0
82>>295	string	Error\ loading\ operating\ system\0
83>>>326	string	Missing\ operating\ system\0		\b, mbr
84#
85>139	string	Invalid\ partition\ table\0
86>>163	string	Error\ loading\ operating\ system\0
87>>>194	string	Missing\ operating\ system\0		\b, Microsoft Windows XP mbr
88# http://www.heise.de/ct/05/09/006/ page 184
89#HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices\DosDevices\?:=Serial4Bytes+8Bytes
90>>>>0x1B8	ulelong	>0				\b,Serial 0x%-.4x
91>300	string	Invalid\ partition\ table\0
92>>324	string	Error\ loading\ operating\ system\0
93>>>355	string	Missing\ operating\ system\0		\b, Microsoft Windows XP MBR
94#??>>>389	string	Invalid\ system\ disk
95>>>>0x1B8	ulelong	>0				\b, Serial 0x%-.4x
96>300	string	Ung\201ltige\ Partitionstabelle
97#split string to avoid error: String too long
98>>328	string	Fehler\ beim\ Laden\
99>>>346	string	des\ Betriebssystems
100>>>>366	string	Betriebssystem\ nicht\ vorhanden	\b, Microsoft Windows XP MBR (german)
101>>>>>0x1B8	ulelong	>0				\b, Serial 0x%-.4x
102>0x145	string	Default:\ F				\b, FREE-DOS MBR
103>64	string	no\ active\ partition\ found
104>>96	string	read\ error\ while\ reading\ drive	\b, FREE-DOS Beta 0.9 MBR
105>271	string	Operating\ system\ loading
106>>296	string	error\r					\b, SYSLINUX MBR (2.10)
107# http://www.acronis.de/
108>362	string	MBR\ Error\ \0\r
109>>376	string	ress\ any\ key\ to\
110>>>392	string	boot\ from\ floppy...\0			\b, Acronis MBR
111# added by Joerg Jenderek
112# http://www.visopsys.org/
113# http://partitionlogic.org.uk/
114>309	string	No\ bootable\ partition\ found\r
115>>339	string	I/O\ Error\ reading\ boot\ sector\r	\b, Visopsys MBR
116>349	string	No\ bootable\ partition\ found\r
117>>379	string	I/O\ Error\ reading\ boot\ sector\r	\b, simple Visopsys MBR
118# bootloader, bootmanager
119>0x40	string	SBML
120# label with 11 characters of FAT 12 bit filesystem
121>>43	string	SMART\ BTMGR
122>>>430	string	SBMK\ Bad!\r
123>>>>3	string	SBM				\b, Smart Boot Manager
124>>>>>6	string	>\0                             \b, version %s
125>382	string	XOSLLOADXCF			\b, eXtended Operating System Loader
126>6	string	LILO				\b, LInux i386 boot LOader
127>>120	string	LILO				\b, version 22.3.4 SuSe
128>>172	string	LILO				\b, version 22.5.8 Debian
129# updated by Joerg Jenderek
130# variables according to grub-0.97/stage1/stage1.S or
131# http://www.gnu.org/software/grub/manual/grub.html#Embedded-data
132# usual values are marked with comments to get only informations of strange GRUB loaders
133>0		ulelong		0x009048EB
134>>0x41		ubyte		<2
135>>>0x3E		ubyte		>2		\b; GRand Unified Bootloader
136# 0x3 for 0.5.95,0.93,0.94,0.96 0x4 for 1.90
137>>>>0x3E	ubyte		x		\b, stage1 version 0x%x
138#If it is 0xFF, use a drive passed by BIOS
139>>>>0x40	ubyte		<0xFF		\b, boot drive 0x%x
140# in most case 0,1,0x2e for GRUB 0.5.95
141>>>>0x41	ubyte		>0		\b, LBA flag 0x%x
142>>>>0x42	uleshort	<0x8000		\b, stage2 address 0x%x
143#>>>>0x42	uleshort	=0x8000		\b, stage2 address 0x%x (usual)
144>>>>0x42	uleshort	>0x8000		\b, stage2 address 0x%x
145#>>>>0x44	ulelong		=1		\b, 1st sector stage2 0x%x (default)
146>>>>0x44	ulelong		>1		\b, 1st sector stage2 0x%x
147>>>>0x48	uleshort	<0x800		\b, stage2 segment 0x%x
148#>>>>0x48	uleshort	=0x800		\b, stage2 segment 0x%x (usual)
149>>>>0x48	uleshort	>0x800		\b, stage2 segment 0x%x
150>>>>402		string	Geom\0Hard\ Disk\0Read\0\ Error\0
151>>>>>394	string	stage1			\b, GRUB version 0.5.95
152>>>>382		string	Geom\0Hard\ Disk\0Read\0\ Error\0
153>>>>>376	string	GRUB\ \0		\b, GRUB version 0.93 or 1.94
154>>>>383		string	Geom\0Hard\ Disk\0Read\0\ Error\0
155>>>>>377	string	GRUB\ \0		\b, GRUB version 0.94
156>>>>385		string	Geom\0Hard\ Disk\0Read\0\ Error\0
157>>>>>379	string	GRUB\ \0		\b, GRUB version 0.95 or 0.96
158>>>>391		string	Geom\0Hard\ Disk\0Read\0\ Error\0
159>>>>>385	string	GRUB\ \0		\b, GRUB version 0.97
160#unkown version
161>>>343		string	Geom\0Read\0\ Error\0
162>>>>321		string	Loading\ stage1.5	\b, GRUB version x.y
163>>>380		string	Geom\0Hard\ Disk\0Read\0\ Error\0
164>>>>374		string	GRUB\ \0		\b, GRUB version n.m
165# http://syslinux.zytor.com/
166>478	string	Boot\ failed\r
167>>495	string	LDLINUX\ SYS			\b, SYSLINUX bootloader (1.62)
168>480	string	Boot\ failed\r
169>>495	string	LDLINUX\ SYS			\b, SYSLINUX bootloader (2.06 or 2.11)
170>484	string	Boot\ error\r			\b, SYSLINUX bootloader (3.11)
171>395	string	chksum\0\ ERROR!\0		\b, Gujin bootloader
172# http://www.bcdwb.de/bcdw/index_e.htm
173>3	string	BCDL
174>>498	string	BCDL\ \ \ \ BIN			\b, Bootable CD Loader (1.50Z)
175# mbr partion table entries
176# OEM-ID not Microsoft,SYSLINUX,or MTOOLs
177>3			string		!MS
178>>3			string		!SYSLINUX
179>>>3			string		!MTOOL
180# not FAT (32 bit)
181>>>>82			string		!FAT32
182#not IO.SYS
183>>>>>472		string		!IO\ \ \ \ \ \ SYS
184#not Linux kernel
185>>>>>>514		string		!HdrS
186# active flag 0 or 0x80 and type > 0
187>>>>>>>446		ubyte		<0x81
188>>>>>>>>446		ubyte&0x7F	0
189>>>>>>>>>>>450		ubyte		>0	\b; partition 1: ID=0x%x
190>>>>>>>>>>446		ubyte		0x80	\b, active
191>>>>>>>>>>447		ubyte		x	\b, starthead %u
192#>>>>>>>>>>448		ubyte		x	\b, start C_S: 0x%x
193#>>>>>>>>>>448		ubeshort&1023	x	\b, startcylinder? %d
194>>>>>>>>>>454		ulelong		x	\b, startsector %u
195>>>>>>>>>>458		ulelong		x	\b, %u sectors
196#
197>>>>>>>462		ubyte		<0x81
198>>>>>>>>462		ubyte&0x7F	0
199>>>>>>>>>466		ubyte		>0	\b; partition 2: ID=0x%x
200>>>>>>>>>>462		ubyte		0x80	\b, active
201>>>>>>>>>>463		ubyte		x	\b, starthead %u
202#>>>>>>>>>>464		ubyte		x	\b, start C_S: 0x%x
203#>>>>>>>>>>464		ubeshort&1023	x	\b, startcylinder? %d
204>>>>>>>>>>470		ulelong		x	\b, startsector %u
205>>>>>>>>>>474		ulelong		x	\b, %u sectors
206#
207>>>>>>>478		ubyte		<0x81
208>>>>>>>>478		ubyte&0x7F	0
209>>>>>>>>>482		ubyte		>0	\b; partition 3: ID=0x%x
210>>>>>>>>>>478		ubyte		0x80	\b, active
211>>>>>>>>>>479		ubyte		x	\b, starthead %u
212#>>>>>>>>>>480		ubyte		x	\b, start C_S: 0x%x
213#>>>>>>>>>>481		ubyte		x	\b, start C2S: 0x%x
214#>>>>>>>>>>480		ubeshort&1023	x	\b, startcylinder? %d
215>>>>>>>>>>486		ulelong		x	\b, startsector %u
216>>>>>>>>>>490		ulelong		x	\b, %u sectors
217#
218>>>>>>>494		ubyte		<0x81
219>>>>>>>>494		ubyte&0x7F	0
220>>>>>>>>>498		ubyte		>0	\b; partition 4: ID=0x%x
221>>>>>>>>>>494		ubyte		0x80	\b, active
222>>>>>>>>>>495		ubyte		x	\b, starthead %u
223#>>>>>>>>>>496		ubyte		x	\b, start C_S: 0x%x
224#>>>>>>>>>>496		ubeshort&1023	x	\b, startcylinder? %d
225>>>>>>>>>>502		ulelong		x	\b, startsector %u
226>>>>>>>>>>506		ulelong		x	\b, %u sectors
227# mbr partion table entries end
228# http://www.acronis.de/
229#FAT label=ACRONIS\ SZ
230#OEM-ID=BOOTWIZ0
231>442	string	Non-system\ disk,\
232>>459	string	press\ any\ key...\x7\0		\b, Acronis Startup Recovery Loader
233# DOS names like F11.SYS are 8 right space padded bytes+3 bytes
234>>>477		ubyte&0xDF	>0
235>>>>477		string		x 		\b %-.3s
236>>>>>480	ubyte&0xDF	>0
237>>>>>>480	string		x 		\b%-.5s
238>>>>485		ubyte&0xDF	>0
239>>>>>485	string		x 		\b.%-.3s
240#
241>185	string	FDBOOT\ Version\
242>>204	string	\rNo\ Systemdisk.\
243>>>220	string	Booting\ from\ harddisk.\n\r
244>>>245	string	Cannot\ load\ from\ harddisk.\n\r
245>>>>273 string	Insert\ Systemdisk\
246>>>>>291 string and\ press\ any\ key.\n\r		\b, FDBOOT harddisk Bootloader
247>>>>>>200 string	>\0                             \b, version %-3s
248>242	string	Bootsector\ from\ C.H.\ Hochst\204
249>>278	string	No\ Systemdisk.\
250>>>293	string	Booting\ from\ harddisk.\n\r
251>>>441	string	Cannot\ load\ from\ harddisk.\n\r
252>>>>469 string	Insert\ Systemdisk\
253>>>>>487 string and\ press\ any\ key.\n\r		\b, WinImage harddisk Bootloader
254>>>>>>209 string	>\0                             \b, version %-4.4s
255>(1.b+2)	ubyte		0xe
256>>(1.b+3)	ubyte		0x1f
257>>>(1.b+4)	ubyte		0xbe
258>>>>(1.b+5)	ubyte		0x77
259>>>>(1.b+6)	ubyte		0x7c
260>>>>>(1.b+7)	ubyte		0xac
261>>>>>>(1.b+8)	ubyte		0x22
262>>>>>>>(1.b+9)	ubyte		0xc0
263>>>>>>>>(1.b+10)	ubyte	0x74
264>>>>>>>>>(1.b+11)	ubyte	0xb
265>>>>>>>>>>(1.b+12)	ubyte	0x56
266>>>>>>>>>>(1.b+13)	ubyte	0xb4			\b, mkdosfs boot message display
267>103	string	This\ is\ not\ a\ bootable\ disk.\
268>>132	string	Please\ insert\ a\ bootable\
269>>>157	string	floppy\ and\r\n
270>>>>169	string	press\ any\ key\ to\ try\ again...\r	\b, FREE-DOS message display
271#
272>66	string	Solaris\ Boot\ Sector
273>>99	string	Incomplete\ MDBoot\ load.
274>>>89	string	Version 				\b, Sun Solaris Bootloader
275>>>>97	byte	x					version %c
276#
277>408	string	OS/2\ !!\ SYS01475\r\0
278>>429	string	OS/2\ !!\ SYS02025\r\0
279>>>450	string	OS/2\ !!\ SYS02027\r\0
280>>>469	string	OS2BOOT\ \ \ \ 				\b, IBM OS/2 Warp bootloader
281#
282>409	string	OS/2\ !!\ SYS01475\r\0
283>>430	string	OS/2\ !!\ SYS02025\r\0
284>>>451	string	OS/2\ !!\ SYS02027\r\0
285>>>470	string	OS2BOOT\ \ \ \ 				\b, IBM OS/2 Warp Bootloader
286>112		string	This\ disk\ is\ not\ bootable\r
287>>142		string	If\ you\ wish\ to\ make\ it\ bootable
288>>>176		string	run\ the\ DOS\ program\ SYS\
289>>>200		string	after\ the\r
290>>>>216		string	system\ has\ been\ loaded\r\n
291>>>>>242	string	Please\ insert\ a\ DOS\ diskette\
292>>>>>271	string	into\r\n\ the\ drive\ and\
293>>>>>>292	string	strike\ any\ key...\0		\b, IBM OS/2 Warp message display
294# XP
295>430	string	NTLDR\ is\ missing\xFF\r\n
296>>449	string	Disk\ error\xFF\r\n
297>>>462	string	Press\ any\ key\ to\ restart\r		\b, Microsoft Windows XP Bootloader
298# DOS names like NTLDR,CMLDR,$LDR$ are 8 right space padded bytes+3 bytes
299>>>>417		ubyte&0xDF	>0
300>>>>>417	string		x			%-.5s
301>>>>>>422	ubyte&0xDF	>0
302>>>>>>>422	string		x 			\b%-.3s
303>>>>>425	ubyte&0xDF	>0
304>>>>>>425	string		>\ 			\b.%-.3s
305#
306>>>>371		ubyte		>0x20
307>>>>>368	ubyte&0xDF	>0
308>>>>>>368	string		x 			%-.5s
309>>>>>>>373	ubyte&0xDF	>0
310>>>>>>>>373	string		x 			\b%-.3s
311>>>>>>376	ubyte&0xDF	>0
312>>>>>>>376	string		x 			\b.%-.3s
313#
314>430	string	NTLDR\ nicht\ gefunden\xFF\r\n
315>>453	string	Datentr\204gerfehler\xFF\r\n
316>>>473	string	Neustart\ mit\ beliebiger\ Taste\r	\b, Microsoft Windows XP Bootloader (german)
317>>>>417		ubyte&0xDF	>0
318>>>>>417	string		x			%-.5s
319>>>>>>422	ubyte&0xDF	>0
320>>>>>>>422	string		x 			\b%-.3s
321>>>>>425	ubyte&0xDF	>0
322>>>>>>425	string		>\ 			\b.%-.3s
323# offset variant
324>>>>379	string	\0
325>>>>>368	ubyte&0xDF	>0
326>>>>>>368	string		x 			%-.5s
327>>>>>>>373	ubyte&0xDF	>0
328>>>>>>>>373	string		x 			\b%-.3s
329#
330>430	string	NTLDR\ fehlt\xFF\r\n
331>>444	string	Datentr\204gerfehler\xFF\r\n
332>>>464	string	Neustart\ mit\ beliebiger\ Taste\r	\b, Microsoft Windows XP Bootloader (2.german)
333>>>>417		ubyte&0xDF	>0
334>>>>>417	string		x			%-.5s
335>>>>>>422	ubyte&0xDF	>0
336>>>>>>>422	string		x 			\b%-.3s
337>>>>>425	ubyte&0xDF	>0
338>>>>>>425	string		>\ 			\b.%-.3s
339# variant
340>>>>371		ubyte		>0x20
341>>>>>368	ubyte&0xDF	>0
342>>>>>>368	string		x 			%-.5s
343>>>>>>>373	ubyte&0xDF	>0
344>>>>>>>>373	string		x 			\b%-.3s
345>>>>>>376	ubyte&0xDF	>0
346>>>>>>>376	string		x 			\b.%-.3s
347#
348>430	string	NTLDR\ fehlt\xFF\r\n
349>>444	string	Medienfehler\xFF\r\n
350>>>459	string	Neustart:\ Taste\ dr\201cken\r		\b, Microsoft Windows XP Bootloader (3.german)
351>>>>371		ubyte		>0x20
352>>>>>368	ubyte&0xDF	>0
353>>>>>>368	string		x 			%-.5s
354>>>>>>>373	ubyte&0xDF	>0
355>>>>>>>>373	string		x 			\b%-.3s
356>>>>>>376	ubyte&0xDF	>0
357>>>>>>>376	string		x 			\b.%-.3s
358# variant
359>>>>417		ubyte&0xDF	>0
360>>>>>417	string		x			%-.5s
361>>>>>>422	ubyte&0xDF	>0
362>>>>>>>422	string		x 			\b%-.3s
363>>>>>425	ubyte&0xDF	>0
364>>>>>>425	string		>\ 			\b.%-.3s
365#
366>430	string	Datentr\204ger\ entfernen\xFF\r\n
367>>454	string	Medienfehler\xFF\r\n
368>>>469	string	Neustart:\ Taste\ dr\201cken\r		\b, Microsoft Windows XP Bootloader (4.german)
369>>>>368		ubyte&0xDF	>0
370>>>>>368	string		x 			%-.5s
371>>>>>>373	ubyte&0xDF	>0
372>>>>>>>373	string		x 			\b%-.3s
373>>>>>376	ubyte&0xDF	>0
374>>>>>>376	string		x 			\b.%-.3s
375#>3	string	NTFS\ \ \ \
376>389	string	Fehler\ beim\ Lesen\
377>>407	string	des\ Datentr\204gers
378>>>426	string	NTLDR\ fehlt
379>>>>440	string	NTLDR\ ist\ komprimiert
380>>>>>464 string	Neustart\ mit\ Strg+Alt+Entf\r		\b, Microsoft Windows XP Bootloader NTFS (german)
381#>3	string	NTFS\ \ \ \
382>313	string	A\ disk\ read\ error\ occurred.\r
383>>345	string	A\ kernel\ file\ is\ missing\
384>>>370	string	from\ the\ disk.\r
385>>>>484	string	NTLDR\ is\ compressed
386>>>>>429 string	Insert\ a\ system\ diskette\
387>>>>>>454 string and\ restart\r\nthe\ system.\r		\b, Microsoft Windows XP Bootloader NTFS
388# DOS loader variants different languages,offsets
389>472	ubyte&0xDF	>0
390>>389	string	Invalid\ system\ disk\xFF\r\n
391>>>411	string	Disk\ I/O\ error
392>>>>428	string	Replace\ the\ disk,\ and\
393>>>>>455 string	press\ any\ key				\b, Microsoft Windows 98 Bootloader
394#IO.SYS
395>>>>>>472	ubyte&0xDF	>0
396>>>>>>>472	string		x 			\b %-.2s
397>>>>>>>>474	ubyte&0xDF	>0
398>>>>>>>>>474	string		x 			\b%-.5s
399>>>>>>>>>>479	ubyte&0xDF	>0
400>>>>>>>>>>>479 string		x 			\b%-.1s
401>>>>>>>480	ubyte&0xDF	>0
402>>>>>>>>480	string		x 			\b.%-.3s
403#MSDOS.SYS
404>>>>>>>483	ubyte&0xDF	>0			\b+
405>>>>>>>>483	string		x 			\b%-.5s
406>>>>>>>>>488	ubyte&0xDF	>0
407>>>>>>>>>>488	string		x 			\b%-.3s
408>>>>>>>>491	ubyte&0xDF	>0
409>>>>>>>>>491	string		x 			\b.%-.3s
410#
411>>390	string	Invalid\ system\ disk\xFF\r\n
412>>>412	string	Disk\ I/O\ error\xFF\r\n
413>>>>429	string	Replace\ the\ disk,\ and\
414>>>>>451 string	then\ press\ any\ key\r			\b, Microsoft Windows 98 Bootloader
415>>388	string	Ungueltiges\ System\ \xFF\r\n
416>>>410	string	E/A-Fehler\ \ \ \ \xFF\r\n
417>>>>427	string	Datentraeger\ wechseln\ und\
418>>>>>453 string	Taste\ druecken\r			\b, Microsoft Windows 95/98/ME Bootloader (german)
419#WINBOOT.SYS only not spaces (0xDF)
420>>>>>>497	ubyte&0xDF	>0
421>>>>>>>497	string		x 			%-.5s
422>>>>>>>>502	ubyte&0xDF	>0
423>>>>>>>>>502	string		x 			\b%-.1s
424>>>>>>>>>>503	ubyte&0xDF	>0
425>>>>>>>>>>>503	string		x 			\b%-.1s
426>>>>>>>>>>>>504	ubyte&0xDF	>0
427>>>>>>>>>>>>>504 string		x 			\b%-.1s
428>>>>>>505	ubyte&0xDF	>0
429>>>>>>>505	string		x 			\b.%-.3s
430#IO.SYS
431>>>>>>472	ubyte&0xDF	>0			or
432>>>>>>>472	string		x 			\b %-.2s
433>>>>>>>>474	ubyte&0xDF	>0
434>>>>>>>>>474	string		x 			\b%-.5s
435>>>>>>>>>>479	ubyte&0xDF	>0
436>>>>>>>>>>>479 string		x 			\b%-.1s
437>>>>>>>480	ubyte&0xDF	>0
438>>>>>>>>480	string		x 			\b.%-.3s
439#MSDOS.SYS
440>>>>>>>483	ubyte&0xDF	>0			\b+
441>>>>>>>>483	string		x 			\b%-.5s
442>>>>>>>>>488	ubyte&0xDF	>0
443>>>>>>>>>>488	string		x 			\b%-.3s
444>>>>>>>>491	ubyte&0xDF	>0
445>>>>>>>>>491	string		x 			\b.%-.3s
446#
447>>390	string	Ungueltiges\ System\ \xFF\r\n
448>>>412	string	E/A-Fehler\ \ \ \ \xFF\r\n
449>>>>429	string	Datentraeger\ wechseln\ und\
450>>>>>455 string	Taste\ druecken\r			\b, Microsoft Windows 95/98/ME Bootloader (German)
451#WINBOOT.SYS only not spaces (0xDF)
452>>>>>>497	ubyte&0xDF	>0
453>>>>>>>497	string		x 			%-.7s
454>>>>>>>>504	ubyte&0xDF	>0
455>>>>>>>>>504	string		x 			\b%-.1s
456>>>>>>505	ubyte&0xDF	>0
457>>>>>>>505	string		x 			\b.%-.3s
458#IO.SYS
459>>>>>>472	ubyte&0xDF	>0			or
460>>>>>>>472	string		x 			\b %-.2s
461>>>>>>>>474	ubyte&0xDF	>0
462>>>>>>>>>474	string		x 			\b%-.6s
463>>>>>>>480	ubyte&0xDF	>0
464>>>>>>>>480	string		x 			\b.%-.3s
465#MSDOS.SYS
466>>>>>>>483	ubyte&0xDF	>0			\b+
467>>>>>>>>483	string		x 			\b%-.5s
468>>>>>>>>>488	ubyte&0xDF	>0
469>>>>>>>>>>488	string		x 			\b%-.3s
470>>>>>>>>491	ubyte&0xDF	>0
471>>>>>>>>>491	string		x 			\b.%-.3s
472#
473>>389	string	Ungueltiges\ System\ \xFF\r\n
474>>>411	string	E/A-Fehler\ \ \ \ \xFF\r\n
475>>>>428	string	Datentraeger\ wechseln\ und\
476>>>>>454 string	Taste\ druecken\r			\b, Microsoft Windows 95/98/ME Bootloader (GERMAN)
477# DOS names like IO.SYS,WINBOOT.SYS,MSDOS.SYS,WINBOOT.INI are 8 right space padded bytes+3 bytes
478>>>>>>472	string		x 			%-.2s
479>>>>>>>474	ubyte&0xDF	>0
480>>>>>>>>474	string		x 			\b%-.5s
481>>>>>>>>479	ubyte&0xDF	>0
482>>>>>>>>>479	string		x 			\b%-.1s
483>>>>>>480	ubyte&0xDF	>0
484>>>>>>>480	string		x 			\b.%-.3s
485>>>>>>483	ubyte&0xDF	>0			\b+
486>>>>>>>483	string		x 			\b%-.5s
487>>>>>>>488	ubyte&0xDF	>0
488>>>>>>>>488	string		x 			\b%-.2s
489>>>>>>>>490	ubyte&0xDF	>0
490>>>>>>>>>490	string		x 			\b%-.1s
491>>>>>>>491	ubyte&0xDF	>0
492>>>>>>>>491	string		x 			\b.%-.3s
493>479	ubyte&0xDF	>0
494>>416	string	Kein\ System\ oder\
495>>>433	string	Laufwerksfehler
496>>>>450	string	Wechseln\ und\ Taste\ dr\201cken	\b, Microsoft DOS Bootloader (german)
497#IO.SYS
498>>>>>479	string		x 			\b %-.2s
499>>>>>>481	ubyte&0xDF	>0
500>>>>>>>481	string		x 			\b%-.6s
501>>>>>487	ubyte&0xDF	>0
502>>>>>>487	string		x 			\b.%-.3s
503#MSDOS.SYS
504>>>>>>490	ubyte&0xDF	>0			\b+
505>>>>>>>490	string		x 			\b%-.5s
506>>>>>>>>495	ubyte&0xDF	>0
507>>>>>>>>>495	string		x 			\b%-.3s
508>>>>>>>498	ubyte&0xDF	>0
509>>>>>>>>498	string		x 			\b.%-.3s
510#
511>486	ubyte&0xDF	>0
512>>416	string	Non-System\ disk\ or\
513>>>435	string	disk\ error\r
514>>>>447	string	Replace\ and\ press\ any\ key\
515>>>>>473 string	when\ ready\r				\b, Microsoft DOS Bootloader
516>480	ubyte&0xDF	>0
517>>393	string	Non-System\ disk\ or\
518>>>412	string	disk\ error\r
519>>>>424	string	Replace\ and\ press\ any\ key\
520>>>>>450 string	when\ ready\r				\b, Microsoft DOS bootloader
521#IO.SYS
522>>>>>480	string		x 			\b %-.2s
523>>>>>>482	ubyte&0xDF	>0
524>>>>>>>48	string		x 			\b%-.6s
525>>>>>488	ubyte&0xDF	>0
526>>>>>>488	string		x 			\b.%-.3s
527#MSDOS.SYS
528>>>>>>491	ubyte&0xDF	>0			\b+
529>>>>>>>491	string		x 			\b%-.5s
530>>>>>>>>496	ubyte&0xDF	>0
531>>>>>>>>>496	string		x 			\b%-.3s
532>>>>>>>499	ubyte&0xDF	>0
533>>>>>>>>499	string		x 			\b.%-.3s
534#>43	string	\224R-LOADER\ \ SYS			=label
535>54	string	SYS
536>>324	string	VASKK
537>>>495	string	NEWLDR\0				\b, DR-DOS Bootloader (LOADER.SYS)
538#
539>70	string	IBMBIO\ \ COM
540>>472	string	Cannot\ load\ DOS!\
541>>>489	string	Any\ key\ to\ retry			\b, DR-DOS Bootloader
542>>471	string	Cannot\ load\ DOS\
543>>487	string	press\ key\ to\ retry			\b, Open-DOS Bootloader
544>444	string	KERNEL\ \ SYS
545>>314	string	BOOT\ error!				\b, FREE-DOS Bootloader
546>499	string	KERNEL\ \ SYS
547>>305	string	BOOT\ err!\0				\b, Free-DOS Bootloader
548>449	string	KERNEL\ \ SYS
549>>319	string	BOOT\ error!				\b, FREE-DOS 0.5 Bootloader
550>125	string	Loading\ FreeDOS...\r
551>>311	string	BOOT\ error!\r				\b, FREE-DOS bootloader
552>>>441		ubyte&0xDF	>0
553>>>>441		string		x 			\b %-.6s
554>>>>>447	ubyte&0xDF	>0
555>>>>>>447	string		x 			\b%-.1s
556>>>>>>>448	ubyte&0xDF	>0
557>>>>>>>>448	string		x 			\b%-.1s
558>>>>449		ubyte&0xDF	>0
559>>>>>449	string		x 			\b.%-.3s
560>124	string	FreeDOS\0
561>>331	string	\ err\0					\b, FREE-DOS BETa 0.9 Bootloader
562# DOS names like KERNEL.SYS,KERNEL16.SYS,KERNEL32.SYS,METAKERN.SYS are 8 right space padded bytes+3 bytes
563>>>497		ubyte&0xDF	>0
564>>>>497		string		x 			\b %-.6s
565>>>>>503	ubyte&0xDF	>0
566>>>>>>503	string		x 			\b%-.1s
567>>>>>>>504	ubyte&0xDF	>0
568>>>>>>>>504	string		x 			\b%-.1s
569>>>>505		ubyte&0xDF	>0
570>>>>>505	string		x 			\b.%-.3s
571>>333	string	\ err\0					\b, FREE-DOS BEta 0.9 Bootloader
572>>>497		ubyte&0xDF	>0
573>>>>497		string		x 			\b %-.6s
574>>>>>503	ubyte&0xDF	>0
575>>>>>>503	string		x 			\b%-.1s
576>>>>>>>504	ubyte&0xDF	>0
577>>>>>>>>504	string		x 			\b%-.1s
578>>>>505		ubyte&0xDF	>0
579>>>>>505	string		x 			\b.%-.3s
580>>334	string	\ err\0					\b, FREE-DOS Beta 0.9 Bootloader
581>>>497		ubyte&0xDF	>0
582>>>>497		string		x 			\b %-.6s
583>>>>>503	ubyte&0xDF	>0
584>>>>>>503	string		x 			\b%-.1s
585>>>>>>>504	ubyte&0xDF	>0
586>>>>>>>>504	string		x 			\b%-.1s
587>>>>505		ubyte&0xDF	>0
588>>>>>505	string		x 			\b.%-.3s
589>336	string	Error!\
590>>343	string	Hit\ a\ key\ to\ reboot.		\b, FREE-DOS Beta 0.9sr1 Bootloader
591>>>497		ubyte&0xDF	>0
592>>>>497		string		x 			\b %-.6s
593>>>>>503	ubyte&0xDF	>0
594>>>>>>503	string		x 			\b%-.1s
595>>>>>>>504	ubyte&0xDF	>0
596>>>>>>>>504	string		x 			\b%-.1s
597>>>>505		ubyte&0xDF	>0
598>>>>>505	string		x 			\b.%-.3s
599# added by Joerg Jenderek
600# http://www.visopsys.org/
601# http://partitionlogic.org.uk/
602# OEM-ID=Visopsys
603>478		ulelong	0
604>>(1.b+326)	string	I/O\ Error\ reading\
605>>>(1.b+344)	string	Visopsys\ loader\r
606>>>>(1.b+361)	string	Press\ any\ key\ to\ continue.\r	\b, Visopsys loader
607# http://alexfru.chat.ru/epm.html#bootprog
608>494	ubyte	>0x4D
609>>495	string	>E
610>>>495	string	<S
611#OEM-ID is not reliable
612>>>>3	string	BootProg
613# It just looks for a program file name at the root directory
614# and loads corresponding file with following execution.
615# DOS names like STARTUP.BIN,STARTUPC.COM,STARTUPE.EXE are 8 right space padded bytes+3 bytes
616>>>>499			ubyte&0xDF	>0		\b, COM/EXE Bootloader
617>>>>>499		string		x 		\b %-.1s
618>>>>>>500		ubyte&0xDF	>0
619>>>>>>>500		string		x 		\b%-.1s
620>>>>>>>>501		ubyte&0xDF	>0
621>>>>>>>>>501		string		x 		\b%-.1s
622>>>>>>>>>>502		ubyte&0xDF	>0
623>>>>>>>>>>>502		string		x 		\b%-.1s
624>>>>>>>>>>>>503		ubyte&0xDF	>0
625>>>>>>>>>>>>>503	string		x 		\b%-.1s
626>>>>>>>>>>>>>>504	ubyte&0xDF	>0
627>>>>>>>>>>>>>>>504	string		x 		\b%-.1s
628>>>>>>>>>>>>>>>>505	ubyte&0xDF	>0
629>>>>>>>>>>>>>>>>>505	string		x 		\b%-.1s
630>>>>>>>>>>>>>>>>>>506	ubyte&0xDF	>0
631>>>>>>>>>>>>>>>>>>>506	string		x 		\b%-.1s
632#name extension
633>>>>>507		ubyte&0xDF	>0		\b.
634>>>>>>507		string		x 		\b%-.1s
635>>>>>>>508		ubyte&0xDF	>0
636>>>>>>>>508		string		x 		\b%-.1s
637>>>>>>>>>509		ubyte&0xDF	>0
638>>>>>>>>>>509		string		x 		\b%-.1s
639#If the boot sector fails to read any other sector,
640#it prints a very short message ("RE") to the screen and hangs the computer.
641#If the boot sector fails to find needed program in the root directory,
642#it also hangs with another message ("NF").
643>>>>>492		string		RENF		\b, FAT (12 bit)
644>>>>>495		string		RENF		\b, FAT (16 bit)
645# http://alexfru.chat.ru/epm.html#bootprog
646>494	ubyte	>0x4D
647>>495	string	>E
648>>>495	string	<S
649#OEM-ID is not reliable
650>>>>3	string	BootProg
651# It just looks for a program file name at the root directory
652# and loads corresponding file with following execution.
653# DOS names like STARTUP.BIN,STARTUPC.COM,STARTUPE.EXE are 8 right space padded bytes+3 bytes
654>>>>499			ubyte&0xDF	>0		\b, COM/EXE Bootloader
655>>>>>499		string		x 		\b %-.1s
656>>>>>>500		ubyte&0xDF	>0
657>>>>>>>500		string		x 		\b%-.1s
658>>>>>>>>501		ubyte&0xDF	>0
659>>>>>>>>>501		string		x 		\b%-.1s
660>>>>>>>>>>502		ubyte&0xDF	>0
661>>>>>>>>>>>502		string		x 		\b%-.1s
662>>>>>>>>>>>>503		ubyte&0xDF	>0
663>>>>>>>>>>>>>503	string		x 		\b%-.1s
664>>>>>>>>>>>>>>504	ubyte&0xDF	>0
665>>>>>>>>>>>>>>>504	string		x 		\b%-.1s
666>>>>>>>>>>>>>>>>505	ubyte&0xDF	>0
667>>>>>>>>>>>>>>>>>505	string		x 		\b%-.1s
668>>>>>>>>>>>>>>>>>>506	ubyte&0xDF	>0
669>>>>>>>>>>>>>>>>>>>506	string		x 		\b%-.1s
670#name extension
671>>>>>507		ubyte&0xDF	>0		\b.
672>>>>>>507		string		x 		\b%-.1s
673>>>>>>>508		ubyte&0xDF	>0
674>>>>>>>>508		string		x 		\b%-.1s
675>>>>>>>>>509		ubyte&0xDF	>0
676>>>>>>>>>>509		string		x 		\b%-.1s
677#If the boot sector fails to read any other sector,
678#it prints a very short message ("RE") to the screen and hangs the computer.
679#If the boot sector fails to find needed program in the root directory,
680#it also hangs with another message ("NF").
681>>>>>492		string		RENF		\b, FAT (12 bit)
682>>>>>495		string		RENF		\b, FAT (16 bit)
683# loader end
684# Joerg Jenderek
685>446	ubyte	0
686>>450	ubyte	>0
687>>>482	ubyte	0
688>>>>498	ubyte	0
689>>>>466	ubyte	0x05			\b, extended partition table
690>>>>466	ubyte	0x0F			\b, extended partition table (LBA)
691>>>>466	ubyte	0x0			\b, extended partition table (last)
692# JuMP short     bootcodeoffset NOP assembler instructions will usually be EB xx 90
693# older drives may use E9 xx xx
694>0		lelong&0x009000EB	0x009000EB
695>0		lelong&0x000000E9	0x000000E9
696>>1		ubyte			>37	\b, code offset 0x%x
697# mtools-3.9.8/msdos.h
698# usual values are marked with comments to get only informations of strange FAT systems
699# valid sectorsize are from 32 to 2048
700>>>11		uleshort	<2049
701>>>>11		uleshort	>31
702>>>>>3		string		>\0		\b, OEM-ID "%8.8s"
703>>>>>11		uleshort	>512		\b, Bytes/sector %u
704#>>>>>11	uleshort	=512		\b, Bytes/sector %u=512 (usual)
705>>>>>11		uleshort	<512		\b, Bytes/sector %u
706>>>>>13		ubyte		>1		\b, sectors/cluster %u
707#>>>>>13	ubyte		=1		\b, sectors/cluster %u (usual on Floppies)
708>>>>>14		uleshort	>32		\b, reserved sectors %u
709#>>>>>14	uleshort	=32		\b, reserved sectors %u (usual Fat32)
710#>>>>>14	uleshort	>1		\b, reserved sectors %u
711#>>>>>14	uleshort	=1		\b, reserved sectors %u (usual FAT12,FAT16)
712>>>>>14		uleshort	<1		\b, reserved sectors %u
713>>>>>16		ubyte		>2		\b, FATs %u
714#>>>>>16	ubyte		=2		\b, FATs %u (usual)
715>>>>>16		ubyte		=1		\b, FAT  %u
716>>>>>16		ubyte		>0
717>>>>>17		uleshort	>0		\b, root entries %u
718#>>>>>17	uleshort	=0		\b, root entries %u=0 (usual Fat32)
719>>>>>19		uleshort	>0		\b, sectors %u (volumes <=32 MB)
720#>>>>>19	uleshort	=0		\b, sectors %u=0 (usual Fat32)
721>>>>>21		ubyte		>0xF0		\b, Media descriptor 0x%x
722#>>>>>21	ubyte		=0xF0		\b, Media descriptor 0x%x (usual floppy)
723>>>>>21		ubyte		<0xF0		\b, Media descriptor 0x%x
724>>>>>22		uleshort	>0		\b, sectors/FAT %u
725#>>>>>22	uleshort	=0		\b, sectors/FAT %u=0 (usual Fat32)
726>>>>>26		ubyte		>2		\b, heads %u
727#>>>>>26	ubyte		=2		\b, heads %u (usual floppy)
728>>>>>26		ubyte		=1		\b, heads %u
729>>>>>28		ulelong		>0		\b, hidden sectors %u
730#>>>>>28	ulelong		=0		\b, hidden sectors %u (usual floppy)
731>>>>>32		ulelong		>0		\b, sectors %u (volumes > 32 MB)
732#>>>>>32	ulelong		=0		\b, sectors %u (volumes > 32 MB)
733# FAT<32 specific
734# NOT le FAT3=NOT 3TAF=0xCCABBEB9
735>>>>>82		ulelong&0xCCABBEB9	>0
736>>>>>>36	ubyte		>0x80		\b, physical drive 0x%x
737#>>>>>>36	ubyte		=0x80		\b, physical drive 0x%x=0x80 (usual harddisk)
738>>>>>>36	ubyte&0x7F	>0		\b, physical drive 0x%x
739#>>>>>>36	ubyte		=0		\b, physical drive 0x%x=0 (usual floppy)
740>>>>>>37	ubyte		>0		\b, reserved 0x%x
741#>>>>>>37	ubyte		=0		\b, reserved 0x%x
742>>>>>>38	ubyte		>0x29		\b, dos < 4.0 BootSector (0x%x)
743>>>>>>38	ubyte		<0x29		\b, dos < 4.0 BootSector (0x%x)
744>>>>>>38	ubyte		=0x29
745>>>>>>>39	ulelong		x		\b, serial number 0x%x
746>>>>>>>43	string		<NO\ NAME	\b, label: "%11.11s"
747>>>>>>>43	string		>NO\ NAME	\b, label: "%11.11s"
748>>>>>>>43	string		=NO\ NAME	\b, unlabeled
749>>>>>>54	string		FAT		\b, FAT
750>>>>>>>54	string		FAT12		\b (12 bit)
751>>>>>>>54	string		FAT16		\b (16 bit)
752# FAT32 specific
753>>>>>82		string		FAT32		\b, FAT (32 bit)
754>>>>>>36	ulelong		x		\b, sectors/FAT %u
755>>>>>>40	uleshort	>0		\b, extension flags %u
756#>>>>>>40	uleshort	=0		\b, extension flags %u
757>>>>>>42	uleshort	>0		\b, fsVersion %u
758#>>>>>>42	uleshort	=0		\b, fsVersion %u (usual)
759>>>>>>44	ulelong		>2		\b, rootdir cluster %u
760#>>>>>>44	ulelong		=2		\b, rootdir cluster %u
761#>>>>>>44	ulelong		=1		\b, rootdir cluster %u
762>>>>>>48	uleshort	>1		\b, infoSector %u
763#>>>>>>48	uleshort	=1		\b, infoSector %u (usual)
764>>>>>>48	uleshort	<1		\b, infoSector %u
765>>>>>>50	uleshort	>6		\b, Backup boot sector %u
766#>>>>>>50	uleshort	=6		\b, Backup boot sector %u (usual)
767>>>>>>50	uleshort	<6		\b, Backup boot sector %u
768>>>>>>54	ulelong		>0		\b, reserved1 0x%x
769>>>>>>58	ulelong		>0		\b, reserved2 0x%x
770>>>>>>62	ulelong		>0		\b, reserved3 0x%x
771# same structure as FAT1X
772>>>>>>64	ubyte		>0x80		\b, physical drive 0x%x
773#>>>>>>64	ubyte		=0x80		\b, physical drive 0x%x=80 (usual harddisk)
774>>>>>>64	ubyte&0x7F	>0		\b, physical drive 0x%x
775#>>>>>>64	ubyte		=0		\b, physical drive 0x%x=0 (usual floppy)
776>>>>>>65	ubyte		>0		\b, reserved 0x%x
777>>>>>>66	ubyte		>0x29		\b, dos < 4.0 BootSector (0x%x)
778>>>>>>66	ubyte		<0x29		\b, dos < 4.0 BootSector (0x%x)
779>>>>>>66	ubyte		=0x29
780>>>>>>>67	ulelong		x		\b, serial number 0x%x
781>>>>>>>71	string		<NO\ NAME	\b, label: "%11.11s"
782>>>>>>71	string		>NO\ NAME	\b, label: "%11.11s"
783>>>>>>71	string		=NO\ NAME	\b, unlabeled
784### FATs end
785>0x200	lelong	0x82564557		\b, BSD disklabel
786# FATX
7870		string		FATX		FATX filesystem data
788
789
790# Minix filesystems - Juan Cespedes <cespedes@debian.org>
7910x410	leshort		0x137f		Minix filesystem
7920x410	beshort		0x137f		Minix filesystem (big endian),
793>0x402	beshort		!0		\b, %d zones
794>0x1e	string		minix		\b, bootable
7950x410	leshort		0x138f		Minix filesystem, 30 char names
7960x410	leshort		0x2468		Minix filesystem, version 2
7970x410	leshort		0x2478		Minix filesystem, version 2, 30 char names
798
799# romfs filesystems - Juan Cespedes <cespedes@debian.org>
8000	string		-rom1fs-\0	romfs filesystem, version 1
801>8	belong	x			%d bytes,
802>16	string	x			named %s.
803
804# netboot image - Juan Cespedes <cespedes@debian.org>
8050	lelong		0x1b031336L	Netboot image,
806>4	lelong&0xFFFFFF00	0
807>>4	lelong&0x100	0x000		mode 2
808>>4	lelong&0x100	0x100		mode 3
809>4	lelong&0xFFFFFF00	!0	unknown mode
810
8110x18b	string	OS/2	OS/2 Boot Manager
812
813# added by Joerg Jenderek
814# In the second sector (+0x200) are variables according to grub-0.97/stage2/asm.S or
815# grub-1.94/kern/i386/pc/startup.S
816# http://www.gnu.org/software/grub/manual/grub.html#Embedded-data
817# usual values are marked with comments to get only informations of strange GRUB loaders
8180x200	uleshort		0x70EA
819# found only version 3.{1,2}
820>0x206		ubeshort	>0x0300
821# GRUB version (0.5.)95,0.93,0.94,0.96,0.97 > "00"
822>>0x212 	ubyte		>0x29
823>>>0x213 	ubyte		>0x29
824# not iso9660_stage1_5
825#>>>0	ulelong&0x00BE5652	0x00BE5652
826>>>>0x213 	ubyte		>0x29		GRand Unified Bootloader
827# config_file for stage1_5 is 0xffffffff + default "/boot/grub/stage2"
828>>>>0x217 	ubyte		0xFF		stage1_5
829>>>>0x217 	ubyte		<0xFF		stage2
830>>>>0x206	ubyte		x		\b version %u
831>>>>0x207	ubyte		x		\b.%u
832# module_size for 1.94
833>>>>0x208	ulelong		<0xffffff	\b, installed partition %u
834#>>>>0x208	ulelong		=0xffffff	\b, %u (default)
835>>>>0x208	ulelong		>0xffffff	\b, installed partition %u
836# GRUB 0.5.95 unofficial
837>>>>0x20C	ulelong&0x2E300000 0x2E300000
838# 0=stage2	1=ffs	2=e2fs	3=fat	4=minix	5=reiserfs
839>>>>>0x20C	ubyte		x		\b, identifier 0x%x
840#>>>>>0x20D	ubyte		=0		\b, LBA flag 0x%x (default)
841>>>>>0x20D	ubyte		>0		\b, LBA flag 0x%x
842# GRUB version as string
843>>>>>0x20E 	string		>\0		\b, GRUB version %-s
844# for stage1_5 is 0xffffffff + config_file "/boot/grub/stage2" default
845>>>>>>0x215 	ulong		0xffffffff
846>>>>>>>0x219 	string		>\0		\b, configuration file %-s
847>>>>>>0x215 	ulong		!0xffffffff
848>>>>>>>0x215 	string		>\0		\b, configuration file %-s
849# newer GRUB versions
850>>>>0x20C	ulelong&0x2E300000 !0x2E300000
851##>>>>>0x20C	ulelong		=0		\b, saved entry %d (usual)
852>>>>>0x20C	ulelong		>0		\b, saved entry %d
853# for 1.94 contains kernel image size
854# for 0.93,0.94,0.96,0.97
855# 0=stage2	1=ffs	2=e2fs	3=fat	4=minix	5=reiserfs	6=vstafs	7=jfs	8=xfs	9=iso9660	a=ufs2
856>>>>>0x210	ubyte		x		\b, identifier 0x%x
857# The flag for LBA forcing is in most cases 0
858#>>>>>0x211	ubyte		=0		\b, LBA flag 0x%x (default)
859>>>>>0x211	ubyte		>0		\b, LBA flag 0x%x
860# GRUB version as string
861>>>>>0x212 	string		>\0		\b, GRUB version %-s
862# for stage1_5 is 0xffffffff + config_file "/boot/grub/stage2" default
863>>>>>0x217 	ulong		0xffffffff
864>>>>>>0x21b 	string		>\0		\b, configuration file %-s
865>>>>>0x217 	ulong		!0xffffffff
866>>>>>>0x217 	string		>\0		\b, configuration file %-s
867
8689564	lelong		0x00011954	Unix Fast File system [v1] (little-endian),
869>8404	string		x		last mounted on %s,
870#>9504	ledate		x		last checked at %s,
871>8224	ledate		x		last written at %s,
872>8401	byte		x		clean flag %d,
873>8228	lelong		x		number of blocks %d,
874>8232	lelong		x		number of data blocks %d,
875>8236	lelong		x		number of cylinder groups %d,
876>8240	lelong		x		block size %d,
877>8244	lelong		x		fragment size %d,
878>8252	lelong		x		minimum percentage of free blocks %d,
879>8256	lelong		x		rotational delay %dms,
880>8260	lelong		x		disk rotational speed %drps,
881>8320	lelong		0		TIME optimization
882>8320	lelong		1		SPACE optimization
883
88442332	lelong		0x19540119	Unix Fast File system [v2] (little-endian)
885>&-1164	string		x		last mounted on %s,
886>&-696	string		>\0		volume name %s,
887>&-304	leqldate	x		last written at %s,
888>&-1167	byte		x		clean flag %d,
889>&-1168	byte		x		readonly flag %d,
890>&-296	lequad		x		number of blocks %lld,
891>&-288	lequad		x		number of data blocks %lld,
892>&-1332	lelong		x		number of cylinder groups %d,
893>&-1328	lelong		x		block size %d,
894>&-1324	lelong		x		fragment size %d,
895>&-180	lelong		x		average file size %d,
896>&-176	lelong		x		average number of files in dir %d,
897>&-272	lequad		x		pending blocks to free %lld,
898>&-264	lelong		x		pending inodes to free %ld,
899>&-664	lequad		x		system-wide uuid %0llx,
900>&-1316	lelong		x		minimum percentage of free blocks %d,
901>&-1248	lelong		0		TIME optimization
902>&-1248	lelong		1		SPACE optimization
903
90466908	lelong		0x19540119	Unix Fast File system [v2] (little-endian)
905>&-1164	string		x		last mounted on %s,
906>&-696	string		>\0		volume name %s,
907>&-304	leqldate	x		last written at %s,
908>&-1167	byte		x		clean flag %d,
909>&-1168	byte		x		readonly flag %d,
910>&-296	lequad		x		number of blocks %lld,
911>&-288	lequad		x		number of data blocks %lld,
912>&-1332	lelong		x		number of cylinder groups %d,
913>&-1328	lelong		x		block size %d,
914>&-1324	lelong		x		fragment size %d,
915>&-180	lelong		x		average file size %d,
916>&-176	lelong		x		average number of files in dir %d,
917>&-272	lequad		x		pending blocks to free %lld,
918>&-264	lelong		x		pending inodes to free %ld,
919>&-664	lequad		x		system-wide uuid %0llx,
920>&-1316	lelong		x		minimum percentage of free blocks %d,
921>&-1248	lelong		0		TIME optimization
922>&-1248	lelong		1		SPACE optimization
923
9249564	belong		0x00011954	Unix Fast File system [v1] (big-endian),
925>7168   belong		0x4c41424c	Apple UFS Volume
926>>7186  string		x		named %s,
927>>7176  belong		x		volume label version %d,
928>>7180  bedate		x		created on %s,
929>8404	string		x		last mounted on %s,
930#>9504	bedate		x		last checked at %s,
931>8224	bedate		x		last written at %s,
932>8401	byte		x		clean flag %d,
933>8228	belong		x		number of blocks %d,
934>8232	belong		x		number of data blocks %d,
935>8236	belong		x		number of cylinder groups %d,
936>8240	belong		x		block size %d,
937>8244	belong		x		fragment size %d,
938>8252	belong		x		minimum percentage of free blocks %d,
939>8256	belong		x		rotational delay %dms,
940>8260	belong		x		disk rotational speed %drps,
941>8320	belong		0		TIME optimization
942>8320	belong		1		SPACE optimization
943
94442332	belong		0x19540119	Unix Fast File system [v2] (big-endian)
945>&-1164	string		x		last mounted on %s,
946>&-696	string		>\0		volume name %s,
947>&-304	beqldate	x		last written at %s,
948>&-1167	byte		x		clean flag %d,
949>&-1168	byte		x		readonly flag %d,
950>&-296	bequad		x		number of blocks %lld,
951>&-288	bequad		x		number of data blocks %lld,
952>&-1332	belong		x		number of cylinder groups %d,
953>&-1328	belong		x		block size %d,
954>&-1324	belong		x		fragment size %d,
955>&-180	belong		x		average file size %d,
956>&-176	belong		x		average number of files in dir %d,
957>&-272	bequad		x		pending blocks to free %lld,
958>&-264	belong		x		pending inodes to free %ld,
959>&-664	bequad		x		system-wide uuid %0llx,
960>&-1316	belong		x		minimum percentage of free blocks %d,
961>&-1248	belong		0		TIME optimization
962>&-1248	belong		1		SPACE optimization
963
96466908	belong		0x19540119	Unix Fast File system [v2] (big-endian)
965>&-1164	string		x		last mounted on %s,
966>&-696	string		>\0		volume name %s,
967>&-304	beqldate	x		last written at %s,
968>&-1167	byte		x		clean flag %d,
969>&-1168	byte		x		readonly flag %d,
970>&-296	bequad		x		number of blocks %lld,
971>&-288	bequad		x		number of data blocks %lld,
972>&-1332	belong		x		number of cylinder groups %d,
973>&-1328	belong		x		block size %d,
974>&-1324	belong		x		fragment size %d,
975>&-180	belong		x		average file size %d,
976>&-176	belong		x		average number of files in dir %d,
977>&-272	bequad		x		pending blocks to free %lld,
978>&-264	belong		x		pending inodes to free %ld,
979>&-664	bequad		x		system-wide uuid %0llx,
980>&-1316	belong		x		minimum percentage of free blocks %d,
981>&-1248	belong		0		TIME optimization
982>&-1248	belong		1		SPACE optimization
983
984# ext2/ext3 filesystems - Andreas Dilger <adilger@turbolabs.com>
9850x438	leshort		0xEF53		Linux
986>0x44c	lelong		x		rev %d
987>0x43e	leshort		x		\b.%d
988>0x45c	lelong		^0x0000004	ext2 filesystem data
989>>0x43a	leshort		^0x0000001	(mounted or unclean)
990>0x45c	lelong		&0x0000004	ext3 filesystem data
991>>0x460	lelong		&0x0000004	(needs journal recovery)
992>0x43a	leshort		&0x0000002	(errors)
993>0x460	lelong		&0x0000001	(compressed)
994#>0x460	lelong		&0x0000002	(filetype)
995#>0x464	lelong		&0x0000001	(sparse_super)
996>0x464	lelong		&0x0000002	(large files)
997
998# SGI disk labels - Nathan Scott <nathans@debian.org>
9990	belong		0x0BE5A941	SGI disk label (volume header)
1000
1001# SGI XFS filesystem - Nathan Scott <nathans@debian.org>
10020	belong		0x58465342	SGI XFS filesystem data
1003>0x4	belong		x		(blksz %d,
1004>0x68	beshort		x		inosz %d,
1005>0x64	beshort		^0x2004		v1 dirs)
1006>0x64	beshort		&0x2004		v2 dirs)
1007
1008############################################################################
1009# Minix-ST kernel floppy
10100x800	belong		0x46fc2700	Atari-ST Minix kernel image
1011>19	string		\240\5\371\5\0\011\0\2\0	\b, 720k floppy
1012>19	string		\320\2\370\5\0\011\0\1\0	\b, 360k floppy
1013
1014############################################################################
1015# Hmmm, is this a better way of detecting _standard_ floppy images ?
101619	string		\320\2\360\3\0\011\0\1\0	DOS floppy 360k
1017>0x1FE	leshort		0xAA55		\b, x86 hard disk boot sector
101819	string		\240\5\371\3\0\011\0\2\0	DOS floppy 720k
1019>0x1FE	leshort		0xAA55		\b, x86 hard disk boot sector
102019	string		\100\013\360\011\0\022\0\2\0	DOS floppy 1440k
1021>0x1FE	leshort		0xAA55		\b, x86 hard disk boot sector
1022
102319	string		\240\5\371\5\0\011\0\2\0	DOS floppy 720k, IBM
1024>0x1FE	leshort		0xAA55		\b, x86 hard disk boot sector
102519	string		\100\013\371\5\0\011\0\2\0	DOS floppy 1440k, mkdosfs
1026>0x1FE	leshort		0xAA55		\b, x86 hard disk boot sector
1027
102819	string		\320\2\370\5\0\011\0\1\0	Atari-ST floppy 360k
102919	string		\240\5\371\5\0\011\0\2\0	Atari-ST floppy 720k
1030
1031#  Valid media descriptor bytes for MS-DOS:
1032#
1033#     Byte   Capacity   Media Size and Type
1034#     -------------------------------------------------
1035#
1036#     F0     2.88 MB    3.5-inch, 2-sided, 36-sector
1037#     F0     1.44 MB    3.5-inch, 2-sided, 18-sector
1038#     F9     720K       3.5-inch, 2-sided, 9-sector
1039#     F9     1.2 MB     5.25-inch, 2-sided, 15-sector
1040#     FD     360K       5.25-inch, 2-sided, 9-sector
1041#     FF     320K       5.25-inch, 2-sided, 8-sector
1042#     FC     180K       5.25-inch, 1-sided, 9-sector
1043#     FE     160K       5.25-inch, 1-sided, 8-sector
1044#     FE     250K       8-inch, 1-sided, single-density
1045#     FD     500K       8-inch, 2-sided, single-density
1046#     FE     1.2 MB     8-inch, 2-sided, double-density
1047#     F8     -----      Fixed disk
1048#
1049#     FC     xxxK       Apricot 70x1x9 boot disk.
1050#
1051# Originally a bitmap:
1052#  xxxxxxx0	Not two sided
1053#  xxxxxxx1	Double sided
1054#  xxxxxx0x	Not 8 SPT
1055#  xxxxxx1x	8 SPT
1056#  xxxxx0xx	Not Removable drive
1057#  xxxxx1xx	Removable drive
1058#  11111xxx	Must be one.
1059#
1060# But now it's rather random:
1061#  111111xx	Low density disk
1062#        00	SS, Not 8 SPT
1063#        01	DS, Not 8 SPT
1064#        10	SS, 8 SPT
1065#        11	DS, 8 SPT
1066#
1067#  11111001	Double density 3� floppy disk, high density 5�
1068#  11110000	High density 3� floppy disk
1069#  11111000	Hard disk any format
1070#
1071
1072# CDROM Filesystems
1073# Modified for UDF by gerardo.cacciari@gmail.com
107432769    string    CD001
1075>38913   string   !NSR0      ISO 9660 CD-ROM filesystem data
1076>38913   string    NSR01     UDF filesystem data (version 1.0)
1077>38913   string    NSR02     UDF filesystem data (version 1.5)
1078>38913   string    NSR03     UDF filesystem data (version 2.0)
1079>38913   string    >NSR03    UDF filesystem data (unknown version,
1080>>38917  byte      x         id 'NSR0%c')
1081>38913   string    <NSR01    UDF filesystem data (unknown version,
1082>>38917  byte      x         id 'NSR0%c')
1083# "application id" which appears to be used as a volume label
1084>32808	 string    >\0       '%s'
1085>34816	 string    \000CD001\001EL\ TORITO\ SPECIFICATION    (bootable)
108637633    string    CD001     ISO 9660 CD-ROM filesystem data (raw 2352 byte sectors)
108732776    string    CDROM     High Sierra CD-ROM filesystem data
1088
1089# cramfs filesystem - russell@coker.com.au
10900       lelong    0x28cd3d45      Linux Compressed ROM File System data, little endian
1091>4      lelong  x size %d
1092>8      lelong  &1 version #2
1093>8      lelong  &2 sorted_dirs
1094>8      lelong  &4 hole_support
1095>32     lelong  x CRC 0x%x,
1096>36     lelong  x edition %d,
1097>40     lelong  x %d blocks,
1098>44     lelong  x %d files
1099
11000       belong    0x28cd3d45      Linux Compressed ROM File System data, big endian
1101>4      belong  x size %d
1102>8      belong  &1 version #2
1103>8      belong  &2 sorted_dirs
1104>8      belong  &4 hole_support
1105>32     belong  x CRC 0x%x,
1106>36     belong  x edition %d,
1107>40     belong  x %d blocks,
1108>44     belong  x %d files
1109
1110# reiserfs - russell@coker.com.au
11110x10034		string	ReIsErFs	ReiserFS V3.5
11120x10034		string	ReIsEr2Fs	ReiserFS V3.6
1113>0x1002c 	leshort	x		block size %d
1114>0x10032	leshort	&2		(mounted or unclean)
1115>0x10000	lelong	x		num blocks %d
1116>0x10040	lelong	1		tea hash
1117>0x10040	lelong	2		yura hash
1118>0x10040	lelong	3		r5 hash
1119
1120# JFFS - russell@coker.com.au
11210	lelong	0x34383931	Linux Journalled Flash File system, little endian
11220	belong	0x34383931	Linux Journalled Flash File system, big endian
1123
1124# EST flat binary format (which isn't, but anyway)
1125# From: Mark Brown <broonie@sirena.org.uk>
11260	string	ESTFBINR	EST flat binary
1127
1128# Aculab VoIP firmware
1129# From: Mark Brown <broonie@sirena.org.uk>
11300	string	VoIP\ Startup\ and	Aculab VoIP firmware
1131>35	string	x	format %s
1132
1133# u-boot/PPCBoot image file
1134# From: Mark Brown <broonie@sirena.org.uk>
11350	belong	0x27051956	u-boot/PPCBoot image
1136>4	string  PPCBoot
1137>>12	string  x		version %s
1138
1139# JFFS2 file system
11400	leshort	0x1984		Linux old jffs2 filesystem data little endian
11410	leshort	0x1985		Linux jffs2 filesystem data little endian
1142
1143# Squashfs
11440	string	sqsh	Squashfs filesystem, big endian,
1145>28	beshort	x	version %d.
1146>30	beshort x	\b%d,
1147>28	beshort <3
1148>>8	belong	x	%d bytes,
1149>28	beshort >2
1150>>63	bequad x	%lld bytes,
1151#>>67	belong	x	%d bytes,
1152>4	belong	x	%d inodes,
1153>28	beshort <2
1154>>32	beshort	x	blocksize: %d bytes,
1155>28	beshort >1
1156>>51	belong	x	blocksize: %d bytes,
1157>39	bedate	x	created: %s
11580	string	hsqs	Squashfs filesystem, little endian,
1159>28	leshort	x	version %d.
1160>30	leshort	x	\b%d,
1161>28	leshort <3
1162>>8	lelong	x	%d bytes,
1163>28	leshort >2
1164>>63	lequad x	%lld bytes,
1165#>>63	lelong	x	%d bytes,
1166>4	lelong	x	%d inodes,
1167>28	leshort <2
1168>>32	leshort	x	blocksize: %d bytes,
1169>28	leshort >1
1170>>51	lelong	x	blocksize: %d bytes,
1171>39	ledate	x	created: %s
1172
11730	string		td\000		floppy image data (TeleDisk)
1174
1175# AFS Dump Magic
1176# From: Ty Sarna <tsarna@sarna.org>
11770       string                  \x01\xb3\xa1\x13\x22    AFS Dump
1178>&0     belong                  x                       (v%d)
1179>>&0    byte                    0x76
1180>>>&0   belong                  x                       Vol %d,
1181>>>>&0  byte                    0x6e
1182>>>>>&0 string                  x                       %s
1183>>>>>>&1        byte            0x74
1184>>>>>>>&0       beshort         2
1185>>>>>>>>&4      bedate          x                       on: %s
1186>>>>>>>>&0      bedate          =0                      full dump
1187>>>>>>>>&0      bedate          !0                      incremental since: %s
1188
1189#----------------------------------------------------------
1190# VMS backup savesets - gerardo.cacciari@gmail.com
1191#
11924            string  \x01\x00\x01\x00\x01\x00
1193>(0.s+16)    string  \x01\x01
1194>>&(&0.b+8)  byte    0x42       OpenVMS backup saveset data
1195>>>40        lelong  x          (block size %d,
1196>>>49        string  >\0        original name '%s',
1197>>>2         short   1024       VAX generated)
1198>>>2         short   2048       AXP generated)
1199>>>2         short   4096       I64 generated)
1200
1201# Compaq/HP RILOE floppy image
1202# From: Dirk Jagdmann <doj@cubic.org>
12030	string	CPQRFBLO	Compaq/HP RILOE floppy image
1204
1205#------------------------------------------------------------------------------
1206# Files-11 On-Disk Structure (OpenVMS file system) - gerardo.cacciari@gmail.com
1207# These bits come from LBN 1 (home block) of ODS-2 and ODS-5 volumes, which is
1208# mapped to VBN 2 of [000000]INDEXF.SYS;1
1209#
12101008    string          DECFILE11B      Files-11 On-Disk Structure
1211>525    byte            x               Level %d
1212>525    byte            x               (ODS-%d OpenVMS file system),
1213>984    string          x               volume label is '%-12.12s'
1214