summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/file
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/file')
-rw-r--r--meta/recipes-devtools/file/file/dump81
-rw-r--r--meta/recipes-devtools/file/file/filesystems812
-rw-r--r--meta/recipes-devtools/file/file_5.16.bb36
3 files changed, 929 insertions, 0 deletions
diff --git a/meta/recipes-devtools/file/file/dump b/meta/recipes-devtools/file/file/dump
new file mode 100644
index 0000000000..628ead86c6
--- /dev/null
+++ b/meta/recipes-devtools/file/file/dump
@@ -0,0 +1,81 @@
1
2#------------------------------------------------------------------------------
3# dump: file(1) magic for dump file format--for new and old dump filesystems
4#
5# We specify both byte orders in order to recognize byte-swapped dumps.
6#
724 belong 60012 new-fs dump file (big endian),
8>4 bedate x Previous dump %s,
9>8 bedate x This dump %s,
10>12 belong >0 Volume %ld,
11>692 belong 0 Level zero, type:
12>692 belong >0 Level %d, type:
13>0 belong 1 tape header,
14>0 belong 2 beginning of file record,
15>0 belong 3 map of inodes on tape,
16>0 belong 4 continuation of file record,
17>0 belong 5 end of volume,
18>0 belong 6 map of inodes deleted,
19>0 belong 7 end of medium (for floppy),
20>676 string >\0 Label %s,
21>696 string >\0 Filesystem %s,
22>760 string >\0 Device %s,
23>824 string >\0 Host %s,
24>888 belong >0 Flags %x
25
2624 belong 60011 old-fs dump file (big endian),
27#>4 bedate x Previous dump %s,
28#>8 bedate x This dump %s,
29>12 belong >0 Volume %ld,
30>692 belong 0 Level zero, type:
31>692 belong >0 Level %d, type:
32>0 belong 1 tape header,
33>0 belong 2 beginning of file record,
34>0 belong 3 map of inodes on tape,
35>0 belong 4 continuation of file record,
36>0 belong 5 end of volume,
37>0 belong 6 map of inodes deleted,
38>0 belong 7 end of medium (for floppy),
39>676 string >\0 Label %s,
40>696 string >\0 Filesystem %s,
41>760 string >\0 Device %s,
42>824 string >\0 Host %s,
43>888 belong >0 Flags %x
44
4524 lelong 60012 new-fs dump file (little endian),
46>4 ledate x This dump %s,
47>8 ledate x Previous dump %s,
48>12 lelong >0 Volume %ld,
49>692 lelong 0 Level zero, type:
50>692 lelong >0 Level %d, type:
51>0 lelong 1 tape header,
52>0 lelong 2 beginning of file record,
53>0 lelong 3 map of inodes on tape,
54>0 lelong 4 continuation of file record,
55>0 lelong 5 end of volume,
56>0 lelong 6 map of inodes deleted,
57>0 lelong 7 end of medium (for floppy),
58>676 string >\0 Label %s,
59>696 string >\0 Filesystem %s,
60>760 string >\0 Device %s,
61>824 string >\0 Host %s,
62>888 lelong >0 Flags %x
63
6424 lelong 60011 old-fs dump file (little endian),
65#>4 ledate x Previous dump %s,
66#>8 ledate x This dump %s,
67>12 lelong >0 Volume %ld,
68>692 lelong 0 Level zero, type:
69>692 lelong >0 Level %d, type:
70>0 lelong 1 tape header,
71>0 lelong 2 beginning of file record,
72>0 lelong 3 map of inodes on tape,
73>0 lelong 4 continuation of file record,
74>0 lelong 5 end of volume,
75>0 lelong 6 map of inodes deleted,
76>0 lelong 7 end of medium (for floppy),
77>676 string >\0 Label %s,
78>696 string >\0 Filesystem %s,
79>760 string >\0 Device %s,
80>824 string >\0 Host %s,
81>888 lelong >0 Flags %x
diff --git a/meta/recipes-devtools/file/file/filesystems b/meta/recipes-devtools/file/file/filesystems
new file mode 100644
index 0000000000..fd5073334c
--- /dev/null
+++ b/meta/recipes-devtools/file/file/filesystems
@@ -0,0 +1,812 @@
1
2#------------------------------------------------------------------------------
3# filesystems: file(1) magic for different filesystems
4#
50 string \366\366\366\366 PC formatted floppy with no filesystem
6# Sun disk labels
7# From /usr/include/sun/dklabel.h:
80774 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# Smart Boot Manager backup file is 41 byte header + first sectors of disc
27# (http://btmgr.sourceforge.net/docs/user-guide-3.html)
280 string SBMBAKUP_ Smart Boot Manager backup file
29>9 string x \b, version %-5.5s
30>>14 string =_
31>>>15 string x %-.1s
32>>>>16 string =_ \b.
33>>>>>17 string x \b%-.1s
34>>>>>>18 string =_ \b.
35>>>>>>>19 string x \b%-.1s
36# DOS Emulator image is 128 byte header + harddisc image
370 string DOSEMU\0
38>0x27E leshort 0xAA55 DOS Emulator image
390x1FE leshort 0xAA55 x86 boot sector
40>2 string OSBS \b, OS/BS MBR
41# J\xf6rg Jenderek <joerg dot jenderek at web dot de>
42>0x8C string Invalid\ partition\ table \b, MS-DOS MBR
43# dr-dos with some upper-, lowercase variants
44>0x9D string Invalid\ partition\ table$
45>>181 string No\ Operating\ System$
46>>>201 string Operating\ System\ load\ error$ \b, DR-DOS MBR, Version 7.01 to 7.03
47>0x9D string Invalid\ partition\ table$
48>>181 string No\ operating\ system$
49>>>201 string Operating\ system\ load\ error$ \b, DR-DOS MBR, Version 7.01 to 7.03
50>342 string Invalid\ partition\ table$
51>>366 string No\ operating\ system$
52>>>386 string Operating\ system\ load\ error$ \b, DR-DOS MBR, version 7.01 to 7.03
53>295 string NEWLDR\0
54>>302 string Bad\ PT\ $
55>>>310 string No\ OS\ $
56>>>>317 string OS\ load\ err$
57>>>>>329 string Moved\ or\ missing\ IBMBIO.LDR\n\r
58>>>>>>358 string Press\ any\ key\ to\ continue.\n\r$
59>>>>>>>387 string Copyright\ (c)\ 1984,1998
60>>>>>>>>411 string Caldera\ Inc.\0 \b, DR-DOS MBR (IBMBIO.LDR)
61>0x10F string Ung\201ltige\ Partitionstabelle \b, MS-DOS MBR, german version 4.10.1998, 4.10.2222
62>>0x1B8 ubelong >0 \b, Serial 0x%-.4x
63>0x8B string Ung\201ltige\ Partitionstabelle \b, MS-DOS MBR, german version 5.00 to 4.00.950
64>271 string Invalid\ partition\ table\0
65>>295 string Error\ loading\ operating\ system\0
66>>>326 string Missing\ operating\ system\0 \b, mbr
67#
68>139 string Invalid\ partition\ table\0
69>>163 string Error\ loading\ operating\ system\0
70>>>194 string Missing\ operating\ system\0 \b, Microsoft Windows XP mbr
71# http://www.heise.de/ct/05/09/006/ page 184
72#HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices\DosDevices\?:=Serial4Bytes+8Bytes
73>>>>0x1B8 ulelong >0 \b,Serial 0x%-.4x
74>300 string Invalid\ partition\ table\0
75>>324 string Error\ loading\ operating\ system\0
76>>>355 string Missing\ operating\ system\0 \b, Microsoft Windows XP MBR
77#??>>>389 string Invalid\ system\ disk
78>>>>0x1B8 ulelong >0 \b, Serial 0x%-.4x
79>300 string Ung\201ltige\ Partitionstabelle
80#split string to avoid error: String too long
81>>328 string Fehler\ beim\ Laden\
82>>>346 string des\ Betriebssystems
83>>>>366 string Betriebssystem\ nicht\ vorhanden \b, Microsoft Windows XP MBR (german)
84>>>>>0x1B8 ulelong >0 \b, Serial 0x%-.4x
85>0x145 string Default:\ F \b, FREE-DOS MBR
86>64 string no\ active\ partition\ found
87>>96 string read\ error\ while\ reading\ drive \b, FREE-DOS Beta 0.9 MBR
88>271 string Operating\ system\ loading
89>>296 string error\r \b, SYSLINUX MBR (2.10)
90# bootloader, bootmanager
91>43 string SMART\ BTMGRFAT12\ \ \
92>>430 string SBMK\ Bad!\r
93>>>3 string SBM \b, Smart Boot Manager
94>>>>6 string >\0 \b, version %s
95>382 string XOSLLOADXCF \b, eXtended Operating System Loader
96>6 string LILO \b, LInux i386 boot LOader
97>>120 string LILO \b, version 22.3.4 SuSe
98>>172 string LILO \b, version 22.5.8 Debian
99>402 string Geom\0Hard\ Disk\0Read\0\ Error\0
100>>394 string stage1 \b, GRand Unified Bootloader (0.5.95)
101>343 string Geom\0Read\0\ Error\0
102>>321 string Loading\ stage1.5 \b, Grand Unified Bootloader
103>380 string Geom\0Hard\ Disk\0Read\0\ Error\0
104>>374 string GRUB\ \0 \b, GRand Unified Bootloader
105>382 string Geom\0Hard\ Disk\0Read\0\ Error\0
106>>376 string GRUB\ \0 \b, GRand Unified Bootloader (0.93)
107>383 string Geom\0Hard\ Disk\0Read\0\ Error\0
108>>377 string GRUB\ \0 \b, GRand Unified Bootloader (0.94)
109>385 string Geom\0Hard\ Disk\0Read\0\ Error\0
110>>379 string GRUB\ \0 \b, GRand Unified Bootloader (0.95)
111>480 string Boot\ failed\r
112>>495 string LDLINUX\ SYS \b, SYSLINUX bootloader (2.06)
113>395 string chksum\0\ ERROR!\0 \b, Gujin bootloader
114>185 string FDBOOT\ Version\
115>>204 string \rNo\ Systemdisk.\
116>>>220 string Booting\ from\ harddisk.\n\r
117>>>245 string Cannot\ load\ from\ harddisk.\n\r
118>>>>273 string Insert\ Systemdisk\
119>>>>>291 string and\ press\ any\ key.\n\r \b, FDBOOT harddisk Bootloader
120>>>>>>200 string >\0 \b, version %-3s
121>242 string Bootsector\ from\ C.H.\ Hochst\204
122>>278 string No\ Systemdisk.\
123>>>293 string Booting\ from\ harddisk.\n\r
124>>>441 string Cannot\ load\ from\ harddisk.\n\r
125>>>>469 string Insert\ Systemdisk\
126>>>>>487 string and\ press\ any\ key.\n\r \b, WinImage harddisk Bootloader
127>>>>>>209 string >\0 \b, version %-4.4s
128>(1.b+2) ubyte 0xe
129>>(1.b+3) ubyte 0x1f
130>>>(1.b+4) ubyte 0xbe
131>>>>(1.b+5) ubyte 0x77
132>>>>(1.b+6) ubyte 0x7c
133>>>>>(1.b+7) ubyte 0xac
134>>>>>>(1.b+8) ubyte 0x22
135>>>>>>>(1.b+9) ubyte 0xc0
136>>>>>>>>(1.b+10) ubyte 0x74
137>>>>>>>>>(1.b+11) ubyte 0xb
138>>>>>>>>>>(1.b+12) ubyte 0x56
139>>>>>>>>>>(1.b+13) ubyte 0xb4 \b, mkdosfs boot message display
140#
141>66 string Solaris\ Boot\ Sector
142>>99 string Incomplete\ MDBoot\ load.
143>>>89 string Version \b, Sun Solaris Bootloader
144>>>>97 byte x version %c
145#
146>408 string OS/2\ !!\ SYS01475\r\0
147>>429 string OS/2\ !!\ SYS02025\r\0
148>>>450 string OS/2\ !!\ SYS02027\r\0
149>>>469 string OS2BOOT\ \ \ \ \b, IBM OS/2 Warp bootloader
150#
151>409 string OS/2\ !!\ SYS01475\r\0
152>>430 string OS/2\ !!\ SYS02025\r\0
153>>>451 string OS/2\ !!\ SYS02027\r\0
154>>>470 string OS2BOOT\ \ \ \ \b, IBM OS/2 Warp Bootloader
155>112 string This\ disk\ is\ not\ bootable\r
156>>142 string If\ you\ wish\ to\ make\ it\ bootable
157>>>176 string run\ the\ DOS\ program\ SYS\
158>>>200 string after\ the\r
159>>>>216 string system\ has\ been\ loaded\r\n
160>>>>>242 string Please\ insert\ a\ DOS\ diskette\
161>>>>>271 string into\r\n\ the\ drive\ and\
162>>>>>>292 string strike\ any\ key...\0 \b, IBM OS/2 Warp message display
163# XP
164>430 string NTLDR\ is\ missing\xFF\r\n
165>>449 string Disk\ error\xFF\r\n
166>>>462 string Press\ any\ key\ to\ restart\r \b, Microsoft Windows XP Bootloader
167# DOS names like NTLDR,CMLDR,$LDR$ are 8 right space padded bytes+3 bytes
168>>>>417 ubyte&0xDF >0
169>>>>>417 string x %-.5s
170>>>>>>422 ubyte&0xDF >0
171>>>>>>>422 string x \b%-.3s
172>>>>>425 ubyte&0xDF >0
173>>>>>>425 string >\ \b.%-.3s
174#
175>>>>371 ubyte >0x20
176>>>>>368 ubyte&0xDF >0
177>>>>>>368 string x %-.5s
178>>>>>>>373 ubyte&0xDF >0
179>>>>>>>>373 string x \b%-.3s
180>>>>>>376 ubyte&0xDF >0
181>>>>>>>376 string x \b.%-.3s
182#
183>430 string NTLDR\ nicht\ gefunden\xFF\r\n
184>>453 string Datentr\204gerfehler\xFF\r\n
185>>>473 string Neustart\ mit\ beliebiger\ Taste\r \b, Microsoft Windows XP Bootloader (german)
186>>>>417 ubyte&0xDF >0
187>>>>>417 string x %-.5s
188>>>>>>422 ubyte&0xDF >0
189>>>>>>>422 string x \b%-.3s
190>>>>>425 ubyte&0xDF >0
191>>>>>>425 string >\ \b.%-.3s
192#
193>>>>368 ubyte&0xDF >0
194>>>>>368 string x %-.5s
195>>>>>>373 ubyte&0xDF >0
196>>>>>>>373 string x \b%-.3s
197>>>>>376 ubyte&0xDF >0
198>>>>>>376 string x \b.%-.3s
199#
200>430 string NTLDR\ fehlt\xFF\r\n
201>>444 string Datentr\204gerfehler\xFF\r\n
202>>>464 string Neustart\ mit\ beliebiger\ Taste\r \b, Microsoft Windows XP Bootloader (2.german)
203>>>>417 ubyte&0xDF >0
204>>>>>417 string x %-.5s
205>>>>>>422 ubyte&0xDF >0
206>>>>>>>422 string x \b%-.3s
207>>>>>425 ubyte&0xDF >0
208>>>>>>425 string >\ \b.%-.3s
209# variant
210>>>>371 ubyte >0x20
211>>>>>368 ubyte&0xDF >0
212>>>>>>368 string x %-.5s
213>>>>>>>373 ubyte&0xDF >0
214>>>>>>>>373 string x \b%-.3s
215>>>>>>376 ubyte&0xDF >0
216>>>>>>>376 string x \b.%-.3s
217#
218>430 string NTLDR\ fehlt\xFF\r\n
219>>444 string Medienfehler\xFF\r\n
220>>>459 string Neustart:\ Taste\ dr\201cken\r \b, Microsoft Windows XP Bootloader (3.german)
221>>>>371 ubyte >0x20
222>>>>>368 ubyte&0xDF >0
223>>>>>>368 string x %-.5s
224>>>>>>>373 ubyte&0xDF >0
225>>>>>>>>373 string x \b%-.3s
226>>>>>>376 ubyte&0xDF >0
227>>>>>>>376 string x \b.%-.3s
228# variant
229>>>>417 ubyte&0xDF >0
230>>>>>417 string x %-.5s
231>>>>>>422 ubyte&0xDF >0
232>>>>>>>422 string x \b%-.3s
233>>>>>425 ubyte&0xDF >0
234>>>>>>425 string >\ \b.%-.3s
235#
236>430 string Datentr\204ger\ entfernen\xFF\r\n
237>>454 string Medienfehler\xFF\r\n
238>>>469 string Neustart:\ Taste\ dr\201cken\r \b, Microsoft Windows XP Bootloader (4.german)
239>>>>368 ubyte&0xDF >0
240>>>>>368 string x %-.5s
241>>>>>>373 ubyte&0xDF >0
242>>>>>>>373 string x \b%-.3s
243>>>>>376 ubyte&0xDF >0
244>>>>>>376 string x \b.%-.3s
245#>3 string NTFS\ \ \ \
246>389 string Fehler\ beim\ Lesen\
247>>407 string des\ Datentr\204gers
248>>>426 string NTLDR\ fehlt
249>>>>440 string NTLDR\ ist\ komprimiert
250>>>>>464 string Neustart\ mit\ Strg+Alt+Entf\r \b, Microsoft Windows XP Bootloader NTFS (german)
251#>3 string NTFS\ \ \ \
252>313 string A\ disk\ read\ error\ occurred.\r
253>>345 string A\ kernel\ file\ is\ missing\
254>>>370 string from\ the\ disk.\r
255>>>>484 string NTLDR\ is\ compressed
256>>>>>429 string Insert\ a\ system\ diskette\
257>>>>>>454 string and\ restart\r\nthe\ system.\r \b, Microsoft Windows XP Bootloader NTFS
258# DOS loader variants different languages,offsets
259>472 ubyte&0xDF >0
260>>389 string Invalid\ system\ disk\xFF\r\n
261>>>411 string Disk\ I/O\ error
262>>>>428 string Replace\ the\ disk,\ and\
263>>>>>455 string press\ any\ key \b, Microsoft Windows 98 Bootloader
264#IO.SYS
265>>>>>>472 ubyte&0xDF >0
266>>>>>>>472 string x \b %-.2s
267>>>>>>>>474 ubyte&0xDF >0
268>>>>>>>>>474 string x \b%-.5s
269>>>>>>>>>>479 ubyte&0xDF >0
270>>>>>>>>>>>479 string x \b%-.1s
271>>>>>>>480 ubyte&0xDF >0
272>>>>>>>>480 string x \b.%-.3s
273#MSDOS.SYS
274>>>>>>>483 ubyte&0xDF >0 \b+
275>>>>>>>>483 string x \b%-.5s
276>>>>>>>>>488 ubyte&0xDF >0
277>>>>>>>>>>488 string x \b%-.3s
278>>>>>>>>491 ubyte&0xDF >0
279>>>>>>>>>491 string x \b.%-.3s
280#
281>>390 string Invalid\ system\ disk\xFF\r\n
282>>>412 string Disk\ I/O\ error\xFF\r\n
283>>>>429 string Replace\ the\ disk,\ and\
284>>>>>451 string then\ press\ any\ key\r \b, Microsoft Windows 98 Bootloader
285>>388 string Ungueltiges\ System\ \xFF\r\n
286>>>410 string E/A-Fehler\ \ \ \ \xFF\r\n
287>>>>427 string Datentraeger\ wechseln\ und\
288>>>>>453 string Taste\ druecken\r \b, Microsoft Windows 95/98/ME Bootloader (german)
289#WINBOOT.SYS only not spaces (0xDF)
290>>>>>>497 ubyte&0xDF >0
291>>>>>>>497 string x %-.5s
292>>>>>>>>502 ubyte&0xDF >0
293>>>>>>>>>502 string x \b%-.1s
294>>>>>>>>>>503 ubyte&0xDF >0
295>>>>>>>>>>>503 string x \b%-.1s
296>>>>>>>>>>>>504 ubyte&0xDF >0
297>>>>>>>>>>>>>504 string x \b%-.1s
298>>>>>>505 ubyte&0xDF >0
299>>>>>>>505 string x \b.%-.3s
300#IO.SYS
301>>>>>>472 ubyte&0xDF >0 or
302>>>>>>>472 string x \b %-.2s
303>>>>>>>>474 ubyte&0xDF >0
304>>>>>>>>>474 string x \b%-.5s
305>>>>>>>>>>479 ubyte&0xDF >0
306>>>>>>>>>>>479 string x \b%-.1s
307>>>>>>>480 ubyte&0xDF >0
308>>>>>>>>480 string x \b.%-.3s
309#MSDOS.SYS
310>>>>>>>483 ubyte&0xDF >0 \b+
311>>>>>>>>483 string x \b%-.5s
312>>>>>>>>>488 ubyte&0xDF >0
313>>>>>>>>>>488 string x \b%-.3s
314>>>>>>>>491 ubyte&0xDF >0
315>>>>>>>>>491 string x \b.%-.3s
316#
317>>390 string Ungueltiges\ System\ \xFF\r\n
318>>>412 string E/A-Fehler\ \ \ \ \xFF\r\n
319>>>>429 string Datentraeger\ wechseln\ und\
320>>>>>455 string Taste\ druecken\r \b, Microsoft Windows 95/98/ME Bootloader (German)
321#WINBOOT.SYS only not spaces (0xDF)
322>>>>>>497 ubyte&0xDF >0
323>>>>>>>497 string x %-.7s
324>>>>>>>>504 ubyte&0xDF >0
325>>>>>>>>>504 string x \b%-.1s
326>>>>>>505 ubyte&0xDF >0
327>>>>>>>505 string x \b.%-.3s
328#IO.SYS
329>>>>>>472 ubyte&0xDF >0 or
330>>>>>>>472 string x \b %-.2s
331>>>>>>>>474 ubyte&0xDF >0
332>>>>>>>>>474 string x \b%-.6s
333>>>>>>>480 ubyte&0xDF >0
334>>>>>>>>480 string x \b.%-.3s
335#MSDOS.SYS
336>>>>>>>483 ubyte&0xDF >0 \b+
337>>>>>>>>483 string x \b%-.5s
338>>>>>>>>>488 ubyte&0xDF >0
339>>>>>>>>>>488 string x \b%-.3s
340>>>>>>>>491 ubyte&0xDF >0
341>>>>>>>>>491 string x \b.%-.3s
342#
343>>389 string Ungueltiges\ System\ \xFF\r\n
344>>>411 string E/A-Fehler\ \ \ \ \xFF\r\n
345>>>>428 string Datentraeger\ wechseln\ und\
346>>>>>454 string Taste\ druecken\r \b, Microsoft Windows 95/98/ME Bootloader (GERMAN)
347# DOS names like IO.SYS,WINBOOT.SYS,MSDOS.SYS,WINBOOT.INI are 8 right space padded bytes+3 bytes
348>>>>>>472 string x %-.2s
349>>>>>>>474 ubyte&0xDF >0
350>>>>>>>>474 string x \b%-.5s
351>>>>>>>>479 ubyte&0xDF >0
352>>>>>>>>>479 string x \b%-.1s
353>>>>>>480 ubyte&0xDF >0
354>>>>>>>480 string x \b.%-.3s
355>>>>>>483 ubyte&0xDF >0 \b+
356>>>>>>>483 string x \b%-.5s
357>>>>>>>488 ubyte&0xDF >0
358>>>>>>>>488 string x \b%-.2s
359>>>>>>>>490 ubyte&0xDF >0
360>>>>>>>>>490 string x \b%-.1s
361>>>>>>>491 ubyte&0xDF >0
362>>>>>>>>491 string x \b.%-.3s
363>479 ubyte&0xDF >0
364>>416 string Kein\ System\ oder\
365>>>433 string Laufwerksfehler
366>>>>450 string Wechseln\ und\ Taste\ dr\201cken \b, Microsoft DOS Bootloader (german)
367#IO.SYS
368>>>>>479 string x \b %-.2s
369>>>>>>481 ubyte&0xDF >0
370>>>>>>>481 string x \b%-.6s
371>>>>>487 ubyte&0xDF >0
372>>>>>>487 string x \b.%-.3s
373#MSDOS.SYS
374>>>>>>490 ubyte&0xDF >0 \b+
375>>>>>>>490 string x \b%-.5s
376>>>>>>>>495 ubyte&0xDF >0
377>>>>>>>>>495 string x \b%-.3s
378>>>>>>>498 ubyte&0xDF >0
379>>>>>>>>498 string x \b.%-.3s
380#
381>486 ubyte&0xDF >0
382>>416 string Non-System\ disk\ or\
383>>>435 string disk\ error\r
384>>>>447 string Replace\ and\ press\ any\ key\
385>>>>>473 string when\ ready\r \b, Microsoft DOS Bootloader
386>480 ubyte&0xDF >0
387>>393 string Non-System\ disk\ or\
388>>>412 string disk\ error\r
389>>>>424 string Replace\ and\ press\ any\ key\
390>>>>>450 string when\ ready\r \b, Microsoft DOS bootloader
391#IO.SYS
392>>>>>480 string x \b %-.2s
393>>>>>>482 ubyte&0xDF >0
394>>>>>>>48 string x \b%-.6s
395>>>>>488 ubyte&0xDF >0
396>>>>>>488 string x \b.%-.3s
397#MSDOS.SYS
398>>>>>>491 ubyte&0xDF >0 \b+
399>>>>>>>491 string x \b%-.5s
400>>>>>>>>496 ubyte&0xDF >0
401>>>>>>>>>496 string x \b%-.3s
402>>>>>>>499 ubyte&0xDF >0
403>>>>>>>>499 string x \b.%-.3s
404#>43 string \224R-LOADER\ \ SYS =label
405>54 string SYS
406>>324 string VASKK
407>>>495 string NEWLDR\0 \b, DR-DOS Bootloader (LOADER.SYS)
408#
409>70 string IBMBIO\ \ COM
410>>472 string Cannot\ load\ DOS!\
411>>>489 string Any\ key\ to\ retry \b, DR-DOS Bootloader
412>>471 string Cannot\ load\ DOS\
413>>487 string press\ key\ to\ retry \b, Open-DOS Bootloader
414>444 string KERNEL\ \ SYS
415>>314 string BOOT\ error! \b, FREE-DOS Bootloader
416>499 string KERNEL\ \ SYS
417>>305 string BOOT\ err!\0 \b, Free-DOS Bootloader
418>449 string KERNEL\ \ SYS
419>>319 string BOOT\ error! \b, FREE-DOS 0.5 Bootloader
420>125 string Loading\ FreeDOS...\r
421>>311 string BOOT\ error!\r \b, FREE-DOS bootloader
422>>>441 ubyte&0xDF >0
423>>>>441 string x \b %-.6s
424>>>>>447 ubyte&0xDF >0
425>>>>>>447 string x \b%-.1s
426>>>>>>>448 ubyte&0xDF >0
427>>>>>>>>448 string x \b%-.1s
428>>>>449 ubyte&0xDF >0
429>>>>>449 string x \b.%-.3s
430>124 string FreeDOS\0
431>>331 string \ err\0 \b, FREE-DOS BETa 0.9 Bootloader
432# DOS names like KERNEL.SYS,KERNEL16.SYS,KERNEL32.SYS,METAKERN.SYS are 8 right space padded bytes+3 bytes
433>>>497 ubyte&0xDF >0
434>>>>497 string x \b %-.6s
435>>>>>503 ubyte&0xDF >0
436>>>>>>503 string x \b%-.1s
437>>>>>>>504 ubyte&0xDF >0
438>>>>>>>>504 string x \b%-.1s
439>>>>505 ubyte&0xDF >0
440>>>>>505 string x \b.%-.3s
441>>333 string \ err\0 \b, FREE-DOS BEta 0.9 Bootloader
442>>>497 ubyte&0xDF >0
443>>>>497 string x \b %-.6s
444>>>>>503 ubyte&0xDF >0
445>>>>>>503 string x \b%-.1s
446>>>>>>>504 ubyte&0xDF >0
447>>>>>>>>504 string x \b%-.1s
448>>>>505 ubyte&0xDF >0
449>>>>>505 string x \b.%-.3s
450>>334 string \ err\0 \b, FREE-DOS Beta 0.9 Bootloader
451>>>497 ubyte&0xDF >0
452>>>>497 string x \b %-.6s
453>>>>>503 ubyte&0xDF >0
454>>>>>>503 string x \b%-.1s
455>>>>>>>504 ubyte&0xDF >0
456>>>>>>>>504 string x \b%-.1s
457>>>>505 ubyte&0xDF >0
458>>>>>505 string x \b.%-.3s
459>336 string Error!\
460>>343 string Hit\ a\ key\ to\ reboot. \b, FREE-DOS Beta 0.9sr1 Bootloader
461>>>497 ubyte&0xDF >0
462>>>>497 string x \b %-.6s
463>>>>>503 ubyte&0xDF >0
464>>>>>>503 string x \b%-.1s
465>>>>>>>504 ubyte&0xDF >0
466>>>>>>>>504 string x \b%-.1s
467>>>>505 ubyte&0xDF >0
468>>>>>505 string x \b.%-.3s
469# loader end
470>0 string \0\0\0\0 \b, extended partition table
471# JuMP short bootcodeoffset NOP assembler instructions will usually be EB xx 90
472# older drives may use E9 xx xx
473>0 lelong&0x009000EB 0x009000EB
474>0 lelong&0x000000E9 0x000000E9
475>>1 ubyte >37 \b, code offset 0x%x
476# mtools-3.9.8/msdos.h
477# usual values are marked with comments to get only informations of strange FAT systems
478# valid sectorsize are from 32 to 2048
479>>>11 uleshort <2049
480>>>>11 uleshort >31
481>>>>>3 string >\0 \b, OEM-ID "%8.8s"
482>>>>>11 uleshort >512 \b, Bytes/sector %u
483#>>>>>11 uleshort =512 \b, Bytes/sector %u=512 (usual)
484>>>>>11 uleshort <512 \b, Bytes/sector %u
485>>>>>13 ubyte >1 \b, sectors/cluster %u
486#>>>>>13 ubyte =1 \b, sectors/cluster %u (usual on Floppies)
487>>>>>14 uleshort >32 \b, reserved sectors %u
488#>>>>>14 uleshort =32 \b, reserved sectors %u (usual Fat32)
489#>>>>>14 uleshort >1 \b, reserved sectors %u
490#>>>>>14 uleshort =1 \b, reserved sectors %u (usual FAT12,FAT16)
491>>>>>14 uleshort <1 \b, reserved sectors %u
492>>>>>16 ubyte >2 \b, FATs %u
493#>>>>>16 ubyte =2 \b, FATs %u (usual)
494>>>>>16 ubyte =1 \b, FAT %u
495>>>>>16 ubyte >0
496>>>>>17 uleshort >0 \b, root entries %u
497#>>>>>17 uleshort =0 \b, root entries %u=0 (usual Fat32)
498>>>>>19 uleshort >0 \b, sectors %u (volumes <=32 MB)
499#>>>>>19 uleshort =0 \b, sectors %u=0 (usual Fat32)
500>>>>>21 ubyte >0xF0 \b, Media descriptor 0x%x
501#>>>>>21 ubyte =0xF0 \b, Media descriptor 0x%x (usual floppy)
502>>>>>21 ubyte <0xF0 \b, Media descriptor 0x%x
503>>>>>22 uleshort >0 \b, sectors/FAT %u
504#>>>>>22 uleshort =0 \b, sectors/FAT %u=0 (usual Fat32)
505>>>>>26 ubyte >2 \b, heads %u
506#>>>>>26 ubyte =2 \b, heads %u (usual floppy)
507>>>>>26 ubyte =1 \b, heads %u
508>>>>>28 ulelong >0 \b, hidden sectors %u
509#>>>>>28 ulelong =0 \b, hidden sectors %u (usual floppy)
510>>>>>32 ulelong >0 \b, sectors %u (volumes > 32 MB)
511#>>>>>32 ulelong =0 \b, sectors %u (volumes > 32 MB)
512# FAT<32 specific
513# NOT le FAT3=NOT 3TAF=0xCCABBEB9
514>>>>>82 ulelong&0xCCABBEB9 >0
515>>>>>>36 ubyte >0x80 \b, physical drive 0x%x
516#>>>>>>36 ubyte =0x80 \b, physical drive 0x%x=0x80 (usual harddisk)
517>>>>>>36 ubyte&0x7F >0 \b, physical drive 0x%x
518#>>>>>>36 ubyte =0 \b, physical drive 0x%x=0 (usual floppy)
519>>>>>>37 ubyte >0 \b, reserved 0x%x
520#>>>>>>37 ubyte =0 \b, reserved 0x%x
521>>>>>>38 ubyte >0x29 \b, dos < 4.0 BootSector (0x%x)
522>>>>>>38 ubyte <0x29 \b, dos < 4.0 BootSector (0x%x)
523>>>>>>38 ubyte =0x29
524>>>>>>>39 ulelong x \b, serial number 0x%x
525>>>>>>>43 string <NO\ NAME \b, label: "%11.11s"
526>>>>>>>43 string >NO\ NAME \b, label: "%11.11s"
527>>>>>>>43 string =NO\ NAME \b, unlabeled
528>>>>>>54 string FAT \b, FAT
529>>>>>>>54 string FAT12 \b (12 bit)
530>>>>>>>54 string FAT16 \b (16 bit)
531# FAT32 specific
532>>>>>82 string FAT32 \b, FAT (32 bit)
533>>>>>>36 ulelong x \b, sectors/FAT %u
534>>>>>>40 uleshort >0 \b, extension flags %u
535#>>>>>>40 uleshort =0 \b, extension flags %u
536>>>>>>42 uleshort >0 \b, fsVersion %u
537#>>>>>>42 uleshort =0 \b, fsVersion %u (usual)
538>>>>>>44 ulelong >2 \b, rootdir cluster %u
539#>>>>>>44 ulelong =2 \b, rootdir cluster %u
540#>>>>>>44 ulelong =1 \b, rootdir cluster %u
541>>>>>>48 uleshort >1 \b, infoSector %u
542#>>>>>>48 uleshort =1 \b, infoSector %u (usual)
543>>>>>>48 uleshort <1 \b, infoSector %u
544>>>>>>50 uleshort >6 \b, Backup boot sector %u
545#>>>>>>50 uleshort =6 \b, Backup boot sector %u (usual)
546>>>>>>50 uleshort <6 \b, Backup boot sector %u
547>>>>>>54 ulelong >0 \b, reserved1 0x%x
548>>>>>>58 ulelong >0 \b, reserved2 0x%x
549>>>>>>62 ulelong >0 \b, reserved3 0x%x
550# same structure as FAT1X
551>>>>>>64 ubyte >0x80 \b, physical drive 0x%x
552#>>>>>>64 ubyte =0x80 \b, physical drive 0x%x=80 (usual harddisk)
553>>>>>>64 ubyte&0x7F >0 \b, physical drive 0x%x
554#>>>>>>64 ubyte =0 \b, physical drive 0x%x=0 (usual floppy)
555>>>>>>65 ubyte >0 \b, reserved 0x%x
556>>>>>>66 ubyte >0x29 \b, dos < 4.0 BootSector (0x%x)
557>>>>>>66 ubyte <0x29 \b, dos < 4.0 BootSector (0x%x)
558>>>>>>66 ubyte =0x29
559>>>>>>>67 ulelong x \b, serial number 0x%x
560>>>>>>>71 string <NO\ NAME \b, label: "%11.11s"
561>>>>>>71 string >NO\ NAME \b, label: "%11.11s"
562>>>>>>71 string =NO\ NAME \b, unlabeled
563### FATs end
564>0x200 lelong 0x82564557 \b, BSD disklabel
565# FATX
5660 string FATX FATX filesystem data
567
568
569# Minix filesystems - Juan Cespedes <cespedes@debian.org>
5700x410 leshort 0x137f Minix filesystem
5710x410 beshort 0x137f Minix filesystem (big endian),
572>0x402 beshort !0 \b, %d zones
573>0x1e string minix \b, bootable
5740x410 leshort 0x138f Minix filesystem, 30 char names
5750x410 leshort 0x2468 Minix filesystem, version 2
5760x410 leshort 0x2478 Minix filesystem, version 2, 30 char names
577
578# romfs filesystems - Juan Cespedes <cespedes@debian.org>
5790 string -rom1fs-\0 romfs filesystem, version 1
580>8 belong x %d bytes,
581>16 string x named %s.
582
583# netboot image - Juan Cespedes <cespedes@debian.org>
5840 lelong 0x1b031336L Netboot image,
585>4 lelong&0xFFFFFF00 0
586>>4 lelong&0x100 0x000 mode 2
587>>4 lelong&0x100 0x100 mode 3
588>4 lelong&0xFFFFFF00 !0 unknown mode
589
5900x18b string OS/2 OS/2 Boot Manager
591
5929564 lelong 0x00011954 Unix Fast File system (little-endian),
593>8404 string x last mounted on %s,
594#>9504 ledate x last checked at %s,
595>8224 ledate x last written at %s,
596>8401 byte x clean flag %d,
597>8228 lelong x number of blocks %d,
598>8232 lelong x number of data blocks %d,
599>8236 lelong x number of cylinder groups %d,
600>8240 lelong x block size %d,
601>8244 lelong x fragment size %d,
602>8252 lelong x minimum percentage of free blocks %d,
603>8256 lelong x rotational delay %dms,
604>8260 lelong x disk rotational speed %drps,
605>8320 lelong 0 TIME optimization
606>8320 lelong 1 SPACE optimization
607
6089564 belong 0x00011954 Unix Fast File system (big-endian),
609>7168 long 0x4c41424c Apple UFS Volume
610>>7186 string x named %s,
611>>7176 belong x volume label version %d,
612>>7180 bedate x created on %s,
613>8404 string x last mounted on %s,
614#>9504 bedate x last checked at %s,
615>8224 bedate x last written at %s,
616>8401 byte x clean flag %d,
617>8228 belong x number of blocks %d,
618>8232 belong x number of data blocks %d,
619>8236 belong x number of cylinder groups %d,
620>8240 belong x block size %d,
621>8244 belong x fragment size %d,
622>8252 belong x minimum percentage of free blocks %d,
623>8256 belong x rotational delay %dms,
624>8260 belong x disk rotational speed %drps,
625>8320 belong 0 TIME optimization
626>8320 belong 1 SPACE optimization
627
628# ext2/ext3 filesystems - Andreas Dilger <adilger@turbolabs.com>
6290x438 leshort 0xEF53 Linux
630>0x44c lelong x rev %d
631>0x43e leshort x \b.%d
632>0x45c lelong ^0x0000004 ext2 filesystem data
633>>0x43a leshort ^0x0000001 (mounted or unclean)
634>0x45c lelong &0x0000004 ext3 filesystem data
635>>0x460 lelong &0x0000004 (needs journal recovery)
636>0x43a leshort &0x0000002 (errors)
637>0x460 lelong &0x0000001 (compressed)
638#>0x460 lelong &0x0000002 (filetype)
639#>0x464 lelong &0x0000001 (sparse_super)
640>0x464 lelong &0x0000002 (large files)
641
642# SGI disk labels - Nathan Scott <nathans@debian.org>
6430 belong 0x0BE5A941 SGI disk label (volume header)
644
645# SGI XFS filesystem - Nathan Scott <nathans@debian.org>
6460 belong 0x58465342 SGI XFS filesystem data
647>0x4 belong x (blksz %d,
648>0x68 beshort x inosz %d,
649>0x64 beshort ^0x2004 v1 dirs)
650>0x64 beshort &0x2004 v2 dirs)
651
652############################################################################
653# Minix-ST kernel floppy
6540x800 belong 0x46fc2700 Atari-ST Minix kernel image
655>19 string \240\5\371\5\0\011\0\2\0 \b, 720k floppy
656>19 string \320\2\370\5\0\011\0\1\0 \b, 360k floppy
657
658############################################################################
659# Hmmm, is this a better way of detecting _standard_ floppy images ?
66019 string \320\2\360\3\0\011\0\1\0 DOS floppy 360k
661>0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
66219 string \240\5\371\3\0\011\0\2\0 DOS floppy 720k
663>0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
66419 string \100\013\360\011\0\022\0\2\0 DOS floppy 1440k
665>0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
666
66719 string \240\5\371\5\0\011\0\2\0 DOS floppy 720k, IBM
668>0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
66919 string \100\013\371\5\0\011\0\2\0 DOS floppy 1440k, mkdosfs
670>0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
671
67219 string \320\2\370\5\0\011\0\1\0 Atari-ST floppy 360k
67319 string \240\5\371\5\0\011\0\2\0 Atari-ST floppy 720k
674
675# Valid media descriptor bytes for MS-DOS:
676#
677# Byte Capacity Media Size and Type
678# -------------------------------------------------
679#
680# F0 2.88 MB 3.5-inch, 2-sided, 36-sector
681# F0 1.44 MB 3.5-inch, 2-sided, 18-sector
682# F9 720K 3.5-inch, 2-sided, 9-sector
683# F9 1.2 MB 5.25-inch, 2-sided, 15-sector
684# FD 360K 5.25-inch, 2-sided, 9-sector
685# FF 320K 5.25-inch, 2-sided, 8-sector
686# FC 180K 5.25-inch, 1-sided, 9-sector
687# FE 160K 5.25-inch, 1-sided, 8-sector
688# FE 250K 8-inch, 1-sided, single-density
689# FD 500K 8-inch, 2-sided, single-density
690# FE 1.2 MB 8-inch, 2-sided, double-density
691# F8 ----- Fixed disk
692#
693# FC xxxK Apricot 70x1x9 boot disk.
694#
695# Originally a bitmap:
696# xxxxxxx0 Not two sided
697# xxxxxxx1 Double sided
698# xxxxxx0x Not 8 SPT
699# xxxxxx1x 8 SPT
700# xxxxx0xx Not Removable drive
701# xxxxx1xx Removable drive
702# 11111xxx Must be one.
703#
704# But now it's rather random:
705# 111111xx Low density disk
706# 00 SS, Not 8 SPT
707# 01 DS, Not 8 SPT
708# 10 SS, 8 SPT
709# 11 DS, 8 SPT
710#
711# 11111001 Double density 3½ floppy disk, high density 5¼
712# 11110000 High density 3½ floppy disk
713# 11111000 Hard disk any format
714#
715
716# CDROM Filesystems
71732769 string CD001 ISO 9660 CD-ROM filesystem data
718# "application id" which appears to be used as a volume label
719>32808 string >\0 '%s'
720>34816 string \000CD001\001EL\ TORITO\ SPECIFICATION (bootable)
72137633 string CD001 ISO 9660 CD-ROM filesystem data (raw 2352 byte sectors)
72232776 string CDROM High Sierra CD-ROM filesystem data
723
724# cramfs filesystem - russell@coker.com.au
7250 lelong 0x28cd3d45 Linux Compressed ROM File System data, little endian
726>4 lelong x size %d
727>8 lelong &1 version #2
728>8 lelong &2 sorted_dirs
729>8 lelong &4 hole_support
730>32 lelong x CRC 0x%x,
731>36 lelong x edition %d,
732>40 lelong x %d blocks,
733>44 lelong x %d files
734
7350 belong 0x28cd3d45 Linux Compressed ROM File System data, big endian
736>4 belong x size %d
737>8 belong &1 version #2
738>8 belong &2 sorted_dirs
739>8 belong &4 hole_support
740>32 belong x CRC 0x%x,
741>36 belong x edition %d,
742>40 belong x %d blocks,
743>44 belong x %d files
744
745# reiserfs - russell@coker.com.au
7460x10034 string ReIsErFs ReiserFS V3.5
7470x10034 string ReIsEr2Fs ReiserFS V3.6
748>0x1002c leshort x block size %d
749>0x10032 leshort &2 (mounted or unclean)
750>0x10000 lelong x num blocks %d
751>0x10040 lelong 1 tea hash
752>0x10040 lelong 2 yura hash
753>0x10040 lelong 3 r5 hash
754
755# JFFS - russell@coker.com.au
7560 lelong 0x34383931 Linux Journalled Flash File system, little endian
7570 belong 0x34383931 Linux Journalled Flash File system, big endian
758
759# EST flat binary format (which isn't, but anyway)
760# From: Mark Brown <broonie@sirena.org.uk>
7610 string ESTFBINR EST flat binary
762
763# Aculab VoIP firmware
764# From: Mark Brown <broonie@sirena.org.uk>
7650 string VoIP\ Startup\ and Aculab VoIP firmware
766>35 string x format %s
767
768# PPCBoot image file
769# From: Mark Brown <broonie@sirena.org.uk>
7700 belong 0x27051956 PPCBoot image
771>4 string PPCBoot
772>>12 string x version %s
773
774# JFFS2 file system
7750 leshort 0x1984 Linux old jffs2 filesystem data little endian
7760 lelong 0xe0011985 Linux jffs2 filesystem data little endian
777
778# Squashfs
7790 string sqsh Squashfs filesystem, big endian,
780>28 beshort x version %d.
781>30 beshort x \b%d,
782>8 belong x %d bytes,
783>4 belong x %d inodes,
784>28 beshort <2
785>>32 beshort x blocksize: %d bytes,
786>28 beshort >1
787>>51 belong x blocksize: %d bytes,
788>39 bedate x created: %s
7890 string hsqs Squashfs filesystem, little endian,
790>28 leshort x version %d.
791>30 leshort x \b%d,
792>8 lelong x %d bytes,
793>4 lelong x %d inodes,
794>28 leshort <2
795>>32 leshort x blocksize: %d bytes,
796>28 leshort >1
797>>51 lelong x blocksize: %d bytes,
798>39 ledate x created: %s
799
800# AFS Dump Magic
801# From: Ty Sarna <tsarna@sarna.org>
8020 string \x01\xb3\xa1\x13\x22 AFS Dump
803>&0 belong x (v%d)
804>>&0 byte 0x76
805>>>&0 belong x Vol %d,
806>>>>&0 byte 0x6e
807>>>>>&0 string x %s
808>>>>>>&1 byte 0x74
809>>>>>>>&0 beshort 2
810>>>>>>>>&4 bedate x on: %s
811>>>>>>>>&0 bedate =0 full dump
812>>>>>>>>&0 bedate !0 incremental since: %s
diff --git a/meta/recipes-devtools/file/file_5.16.bb b/meta/recipes-devtools/file/file_5.16.bb
new file mode 100644
index 0000000000..46dbf88f8d
--- /dev/null
+++ b/meta/recipes-devtools/file/file_5.16.bb
@@ -0,0 +1,36 @@
1SUMMARY = "File classification tool"
2DESCRIPTION = "File attempts to classify files depending \
3on their contents and prints a description if a match is found."
4HOMEPAGE = "http://www.darwinsys.com/file/"
5SECTION = "console/utils"
6
7# two clause BSD
8LICENSE = "BSD"
9LIC_FILES_CHKSUM = "file://COPYING;beginline=2;md5=6a7382872edb68d33e1a9398b6e03188"
10
11DEPENDS = "zlib file-native"
12DEPENDS_class-native = "zlib-native"
13
14SRC_URI = "ftp://ftp.astron.com/pub/file/file-${PV}.tar.gz \
15 file://dump \
16 file://filesystems"
17
18SRC_URI[md5sum] = "359c0cf41c3d438d17b4d293f3b950dc"
19SRC_URI[sha256sum] = "48bcac7726c37a8a0bc7ffa16b58993575657dd7b382039380fb3b74ab389261"
20
21inherit autotools
22
23do_configure_prepend() {
24 cp ${WORKDIR}/dump ${S}/magic/Magdir/
25 cp ${WORKDIR}/filesystems ${S}/magic/Magdir/
26}
27
28FILES_${PN} += "${datadir}/misc/*.mgc"
29
30do_install_append_class-native() {
31 create_cmdline_wrapper ${D}/${bindir}/file \
32 --magic-file ${datadir}/misc/magic.mgc
33}
34
35
36BBCLASSEXTEND = "native nativesdk"