filesystems 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988
  1. #------------------------------------------------------------------------------
  2. # filesystems: file(1) magic for different filesystems
  3. #
  4. 0 string \366\366\366\366 PC formatted floppy with no filesystem
  5. # Sun disk labels
  6. # From /usr/include/sun/dklabel.h:
  7. 0774 beshort 0xdabe Sun disk label
  8. >0 string x '%s
  9. >>31 string >\0 \b%s
  10. >>>63 string >\0 \b%s
  11. >>>>95 string >\0 \b%s
  12. >0 string x \b'
  13. >0734 short >0 %d rpm,
  14. >0736 short >0 %d phys cys,
  15. >0740 short >0 %d alts/cyl,
  16. >0746 short >0 %d interleave,
  17. >0750 short >0 %d data cyls,
  18. >0752 short >0 %d alt cyls,
  19. >0754 short >0 %d heads/partition,
  20. >0756 short >0 %d sectors/track,
  21. >0764 long >0 start cyl %ld,
  22. >0770 long x %ld blocks
  23. # Is there a boot block written 1 sector in?
  24. >512 belong&077777777 0600407 \b, boot block present
  25. # Joerg Jenderek: Smart Boot Manager backup file is 41 byte header + first sectors of disc
  26. # (http://btmgr.sourceforge.net/docs/user-guide-3.html)
  27. 0 string SBMBAKUP_ Smart Boot Manager backup file
  28. >9 string x \b, version %-5.5s
  29. >>14 string =_
  30. >>>15 string x %-.1s
  31. >>>>16 string =_ \b.
  32. >>>>>17 string x \b%-.1s
  33. >>>>>>18 string =_ \b.
  34. >>>>>>>19 string x \b%-.1s
  35. >>>22 ubyte 0
  36. >>>>21 ubyte x \b, from drive 0x%x
  37. >>>22 ubyte >0
  38. >>>>21 string x \b, from drive %s
  39. # Joerg Jenderek
  40. # DOS Emulator image is 128 byte, null right padded header + harddisc image
  41. 0 string DOSEMU\0
  42. >0x27E leshort 0xAA55
  43. #offset is 128
  44. >>19 ubyte 128
  45. >>>(19.b-1) ubyte 0x0 DOS Emulator image
  46. >>>>7 ulelong >0 \b, %u heads
  47. >>>>11 ulelong >0 \b, %d sectors/track
  48. >>>>15 ulelong >0 \b, %d cylinders
  49. 0x1FE leshort 0xAA55 x86 boot sector
  50. >2 string OSBS \b, OS/BS MBR
  51. # J\xf6rg Jenderek <joerg dot jenderek at web dot de>
  52. >0x8C string Invalid\ partition\ table \b, MS-DOS MBR
  53. # dr-dos with some upper-, lowercase variants
  54. >0x9D string Invalid\ partition\ table$
  55. >>181 string No\ Operating\ System$
  56. >>>201 string Operating\ System\ load\ error$ \b, DR-DOS MBR, Version 7.01 to 7.03
  57. >0x9D string Invalid\ partition\ table$
  58. >>181 string No\ operating\ system$
  59. >>>201 string Operating\ system\ load\ error$ \b, DR-DOS MBR, Version 7.01 to 7.03
  60. >342 string Invalid\ partition\ table$
  61. >>366 string No\ operating\ system$
  62. >>>386 string Operating\ system\ load\ error$ \b, DR-DOS MBR, version 7.01 to 7.03
  63. >295 string NEWLDR\0
  64. >>302 string Bad\ PT\ $
  65. >>>310 string No\ OS\ $
  66. >>>>317 string OS\ load\ err$
  67. >>>>>329 string Moved\ or\ missing\ IBMBIO.LDR\n\r
  68. >>>>>>358 string Press\ any\ key\ to\ continue.\n\r$
  69. >>>>>>>387 string Copyright\ (c)\ 1984,1998
  70. >>>>>>>>411 string Caldera\ Inc.\0 \b, DR-DOS MBR (IBMBIO.LDR)
  71. >0x10F string Ung\201ltige\ Partitionstabelle \b, MS-DOS MBR, german version 4.10.1998, 4.10.2222
  72. >>0x1B8 ubelong >0 \b, Serial 0x%-.4x
  73. >0x8B string Ung\201ltige\ Partitionstabelle \b, MS-DOS MBR, german version 5.00 to 4.00.950
  74. >271 string Invalid\ partition\ table\0
  75. >>295 string Error\ loading\ operating\ system\0
  76. >>>326 string Missing\ operating\ system\0 \b, mbr
  77. #
  78. >139 string Invalid\ partition\ table\0
  79. >>163 string Error\ loading\ operating\ system\0
  80. >>>194 string Missing\ operating\ system\0 \b, Microsoft Windows XP mbr
  81. # http://www.heise.de/ct/05/09/006/ page 184
  82. #HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices\DosDevices\?:=Serial4Bytes+8Bytes
  83. >>>>0x1B8 ulelong >0 \b,Serial 0x%-.4x
  84. >300 string Invalid\ partition\ table\0
  85. >>324 string Error\ loading\ operating\ system\0
  86. >>>355 string Missing\ operating\ system\0 \b, Microsoft Windows XP MBR
  87. #??>>>389 string Invalid\ system\ disk
  88. >>>>0x1B8 ulelong >0 \b, Serial 0x%-.4x
  89. >300 string Ung\201ltige\ Partitionstabelle
  90. #split string to avoid error: String too long
  91. >>328 string Fehler\ beim\ Laden\
  92. >>>346 string des\ Betriebssystems
  93. >>>>366 string Betriebssystem\ nicht\ vorhanden \b, Microsoft Windows XP MBR (german)
  94. >>>>>0x1B8 ulelong >0 \b, Serial 0x%-.4x
  95. >0x145 string Default:\ F \b, FREE-DOS MBR
  96. >64 string no\ active\ partition\ found
  97. >>96 string read\ error\ while\ reading\ drive \b, FREE-DOS Beta 0.9 MBR
  98. >271 string Operating\ system\ loading
  99. >>296 string error\r \b, SYSLINUX MBR (2.10)
  100. # bootloader, bootmanager
  101. >43 string SMART\ BTMGRFAT12\ \ \
  102. >>430 string SBMK\ Bad!\r
  103. >>>3 string SBM \b, Smart Boot Manager
  104. >>>>6 string >\0 \b, version %s
  105. >382 string XOSLLOADXCF \b, eXtended Operating System Loader
  106. >6 string LILO \b, LInux i386 boot LOader
  107. >>120 string LILO \b, version 22.3.4 SuSe
  108. >>172 string LILO \b, version 22.5.8 Debian
  109. >402 string Geom\0Hard\ Disk\0Read\0\ Error\0
  110. >>394 string stage1 \b, GRand Unified Bootloader (0.5.95)
  111. >343 string Geom\0Read\0\ Error\0
  112. >>321 string Loading\ stage1.5 \b, Grand Unified Bootloader
  113. >380 string Geom\0Hard\ Disk\0Read\0\ Error\0
  114. >>374 string GRUB\ \0 \b, GRand Unified Bootloader
  115. >382 string Geom\0Hard\ Disk\0Read\0\ Error\0
  116. >>376 string GRUB\ \0 \b, GRand Unified Bootloader (0.93)
  117. >383 string Geom\0Hard\ Disk\0Read\0\ Error\0
  118. >>377 string GRUB\ \0 \b, GRand Unified Bootloader (0.94)
  119. >385 string Geom\0Hard\ Disk\0Read\0\ Error\0
  120. >>379 string GRUB\ \0 \b, GRand Unified Bootloader (0.95)
  121. >480 string Boot\ failed\r
  122. >>495 string LDLINUX\ SYS \b, SYSLINUX bootloader (2.06)
  123. >395 string chksum\0\ ERROR!\0 \b, Gujin bootloader
  124. # mbr partion table entries, if not fat boot secor, activ flag 0 or 0x80 and type > 0
  125. >3 string !MS
  126. >>3 string !SYSLINUX
  127. >>>82 string !FAT32
  128. >>>>446 ubyte <0x81
  129. >>>>>446 ubyte&0x7F 0
  130. >>>>>>450 ubyte >0 \b; partition 1: ID=0x%x
  131. >>>>>>>446 ubyte 0x80 \b, active
  132. >>>>>>>447 ubyte x \b, starthead %u
  133. #>>>>>>>448 ubyte x \b, start C_S: 0x%x
  134. #>>>>>>448 ubeshort&1023 x \b, startcylinder? %d
  135. >>>>>>>454 ulelong x \b, startsector %u
  136. >>>>>>>458 ulelong x \b, %u sectors
  137. #
  138. >>>>462 ubyte <0x81
  139. >>>>>462 ubyte&0x7F 0
  140. >>>>>>466 ubyte >0 \b; partition 2: ID=0x%x
  141. >>>>>>>462 ubyte 0x80 \b, active
  142. >>>>>>>463 ubyte x \b, starthead %u
  143. #>>>>>>>464 ubyte x \b, start C_S: 0x%x
  144. #>>>>>>>464 ubeshort&1023 x \b, startcylinder? %d
  145. >>>>>>>470 ulelong x \b, startsector %u
  146. >>>>>>>474 ulelong x \b, %u sectors
  147. #
  148. >>>>478 ubyte <0x81
  149. >>>>>478 ubyte&0x7F 0
  150. >>>>>>482 ubyte >0 \b; partition 3: ID=0x%x
  151. >>>>>>>478 ubyte 0x80 \b, active
  152. >>>>>>>479 ubyte x \b, starthead %u
  153. #>>>>>>>480 ubyte x \b, start C_S: 0x%x
  154. #>>>>>>>481 ubyte x \b, start C2S: 0x%x
  155. #>>>>>>>480 ubeshort&1023 x \b, startcylinder? %d
  156. >>>>>>>486 ulelong x \b, startsector %u
  157. >>>>>>>490 ulelong x \b, %u sectors
  158. #
  159. >>>>494 ubyte <0x81
  160. >>>>>494 ubyte&0x7F 0
  161. >>>>>>498 ubyte >0 \b; partition 4: ID=0x%x
  162. >>>>>>>494 ubyte 0x80 \b, active
  163. >>>>>>>495 ubyte x \b, starthead %u
  164. #>>>>>>>496 ubyte x \b, start C_S: 0x%x
  165. #>>>>>>>496 ubeshort&1023 x \b, startcylinder? %d
  166. >>>>>>>502 ulelong x \b, startsector %u
  167. >>>>>>>506 ulelong x \b, %u sectors
  168. # mbr partion table entries end
  169. >185 string FDBOOT\ Version\
  170. >>204 string \rNo\ Systemdisk.\
  171. >>>220 string Booting\ from\ harddisk.\n\r
  172. >>>245 string Cannot\ load\ from\ harddisk.\n\r
  173. >>>>273 string Insert\ Systemdisk\
  174. >>>>>291 string and\ press\ any\ key.\n\r \b, FDBOOT harddisk Bootloader
  175. >>>>>>200 string >\0 \b, version %-3s
  176. >242 string Bootsector\ from\ C.H.\ Hochst\204
  177. >>278 string No\ Systemdisk.\
  178. >>>293 string Booting\ from\ harddisk.\n\r
  179. >>>441 string Cannot\ load\ from\ harddisk.\n\r
  180. >>>>469 string Insert\ Systemdisk\
  181. >>>>>487 string and\ press\ any\ key.\n\r \b, WinImage harddisk Bootloader
  182. >>>>>>209 string >\0 \b, version %-4.4s
  183. >(1.b+2) ubyte 0xe
  184. >>(1.b+3) ubyte 0x1f
  185. >>>(1.b+4) ubyte 0xbe
  186. >>>>(1.b+5) ubyte 0x77
  187. >>>>(1.b+6) ubyte 0x7c
  188. >>>>>(1.b+7) ubyte 0xac
  189. >>>>>>(1.b+8) ubyte 0x22
  190. >>>>>>>(1.b+9) ubyte 0xc0
  191. >>>>>>>>(1.b+10) ubyte 0x74
  192. >>>>>>>>>(1.b+11) ubyte 0xb
  193. >>>>>>>>>>(1.b+12) ubyte 0x56
  194. >>>>>>>>>>(1.b+13) ubyte 0xb4 \b, mkdosfs boot message display
  195. >103 string This\ is\ not\ a\ bootable\ disk.\
  196. >>132 string Please\ insert\ a\ bootable\
  197. >>>157 string floppy\ and\r\n
  198. >>>>169 string press\ any\ key\ to\ try\ again...\r \b, FREE-DOS message display
  199. #
  200. >66 string Solaris\ Boot\ Sector
  201. >>99 string Incomplete\ MDBoot\ load.
  202. >>>89 string Version \b, Sun Solaris Bootloader
  203. >>>>97 byte x version %c
  204. #
  205. >408 string OS/2\ !!\ SYS01475\r\0
  206. >>429 string OS/2\ !!\ SYS02025\r\0
  207. >>>450 string OS/2\ !!\ SYS02027\r\0
  208. >>>469 string OS2BOOT\ \ \ \ \b, IBM OS/2 Warp bootloader
  209. #
  210. >409 string OS/2\ !!\ SYS01475\r\0
  211. >>430 string OS/2\ !!\ SYS02025\r\0
  212. >>>451 string OS/2\ !!\ SYS02027\r\0
  213. >>>470 string OS2BOOT\ \ \ \ \b, IBM OS/2 Warp Bootloader
  214. >112 string This\ disk\ is\ not\ bootable\r
  215. >>142 string If\ you\ wish\ to\ make\ it\ bootable
  216. >>>176 string run\ the\ DOS\ program\ SYS\
  217. >>>200 string after\ the\r
  218. >>>>216 string system\ has\ been\ loaded\r\n
  219. >>>>>242 string Please\ insert\ a\ DOS\ diskette\
  220. >>>>>271 string into\r\n\ the\ drive\ and\
  221. >>>>>>292 string strike\ any\ key...\0 \b, IBM OS/2 Warp message display
  222. # XP
  223. >430 string NTLDR\ is\ missing\xFF\r\n
  224. >>449 string Disk\ error\xFF\r\n
  225. >>>462 string Press\ any\ key\ to\ restart\r \b, Microsoft Windows XP Bootloader
  226. # DOS names like NTLDR,CMLDR,$LDR$ are 8 right space padded bytes+3 bytes
  227. >>>>417 ubyte&0xDF >0
  228. >>>>>417 string x %-.5s
  229. >>>>>>422 ubyte&0xDF >0
  230. >>>>>>>422 string x \b%-.3s
  231. >>>>>425 ubyte&0xDF >0
  232. >>>>>>425 string >\ \b.%-.3s
  233. #
  234. >>>>371 ubyte >0x20
  235. >>>>>368 ubyte&0xDF >0
  236. >>>>>>368 string x %-.5s
  237. >>>>>>>373 ubyte&0xDF >0
  238. >>>>>>>>373 string x \b%-.3s
  239. >>>>>>376 ubyte&0xDF >0
  240. >>>>>>>376 string x \b.%-.3s
  241. #
  242. >430 string NTLDR\ nicht\ gefunden\xFF\r\n
  243. >>453 string Datentr\204gerfehler\xFF\r\n
  244. >>>473 string Neustart\ mit\ beliebiger\ Taste\r \b, Microsoft Windows XP Bootloader (german)
  245. >>>>417 ubyte&0xDF >0
  246. >>>>>417 string x %-.5s
  247. >>>>>>422 ubyte&0xDF >0
  248. >>>>>>>422 string x \b%-.3s
  249. >>>>>425 ubyte&0xDF >0
  250. >>>>>>425 string >\ \b.%-.3s
  251. #
  252. >>>>368 ubyte&0xDF >0
  253. >>>>>368 string x %-.5s
  254. >>>>>>373 ubyte&0xDF >0
  255. >>>>>>>373 string x \b%-.3s
  256. >>>>>376 ubyte&0xDF >0
  257. >>>>>>376 string x \b.%-.3s
  258. #
  259. >430 string NTLDR\ fehlt\xFF\r\n
  260. >>444 string Datentr\204gerfehler\xFF\r\n
  261. >>>464 string Neustart\ mit\ beliebiger\ Taste\r \b, Microsoft Windows XP Bootloader (2.german)
  262. >>>>417 ubyte&0xDF >0
  263. >>>>>417 string x %-.5s
  264. >>>>>>422 ubyte&0xDF >0
  265. >>>>>>>422 string x \b%-.3s
  266. >>>>>425 ubyte&0xDF >0
  267. >>>>>>425 string >\ \b.%-.3s
  268. # variant
  269. >>>>371 ubyte >0x20
  270. >>>>>368 ubyte&0xDF >0
  271. >>>>>>368 string x %-.5s
  272. >>>>>>>373 ubyte&0xDF >0
  273. >>>>>>>>373 string x \b%-.3s
  274. >>>>>>376 ubyte&0xDF >0
  275. >>>>>>>376 string x \b.%-.3s
  276. #
  277. >430 string NTLDR\ fehlt\xFF\r\n
  278. >>444 string Medienfehler\xFF\r\n
  279. >>>459 string Neustart:\ Taste\ dr\201cken\r \b, Microsoft Windows XP Bootloader (3.german)
  280. >>>>371 ubyte >0x20
  281. >>>>>368 ubyte&0xDF >0
  282. >>>>>>368 string x %-.5s
  283. >>>>>>>373 ubyte&0xDF >0
  284. >>>>>>>>373 string x \b%-.3s
  285. >>>>>>376 ubyte&0xDF >0
  286. >>>>>>>376 string x \b.%-.3s
  287. # variant
  288. >>>>417 ubyte&0xDF >0
  289. >>>>>417 string x %-.5s
  290. >>>>>>422 ubyte&0xDF >0
  291. >>>>>>>422 string x \b%-.3s
  292. >>>>>425 ubyte&0xDF >0
  293. >>>>>>425 string >\ \b.%-.3s
  294. #
  295. >430 string Datentr\204ger\ entfernen\xFF\r\n
  296. >>454 string Medienfehler\xFF\r\n
  297. >>>469 string Neustart:\ Taste\ dr\201cken\r \b, Microsoft Windows XP Bootloader (4.german)
  298. >>>>368 ubyte&0xDF >0
  299. >>>>>368 string x %-.5s
  300. >>>>>>373 ubyte&0xDF >0
  301. >>>>>>>373 string x \b%-.3s
  302. >>>>>376 ubyte&0xDF >0
  303. >>>>>>376 string x \b.%-.3s
  304. #>3 string NTFS\ \ \ \
  305. >389 string Fehler\ beim\ Lesen\
  306. >>407 string des\ Datentr\204gers
  307. >>>426 string NTLDR\ fehlt
  308. >>>>440 string NTLDR\ ist\ komprimiert
  309. >>>>>464 string Neustart\ mit\ Strg+Alt+Entf\r \b, Microsoft Windows XP Bootloader NTFS (german)
  310. #>3 string NTFS\ \ \ \
  311. >313 string A\ disk\ read\ error\ occurred.\r
  312. >>345 string A\ kernel\ file\ is\ missing\
  313. >>>370 string from\ the\ disk.\r
  314. >>>>484 string NTLDR\ is\ compressed
  315. >>>>>429 string Insert\ a\ system\ diskette\
  316. >>>>>>454 string and\ restart\r\nthe\ system.\r \b, Microsoft Windows XP Bootloader NTFS
  317. # DOS loader variants different languages,offsets
  318. >472 ubyte&0xDF >0
  319. >>389 string Invalid\ system\ disk\xFF\r\n
  320. >>>411 string Disk\ I/O\ error
  321. >>>>428 string Replace\ the\ disk,\ and\
  322. >>>>>455 string press\ any\ key \b, Microsoft Windows 98 Bootloader
  323. #IO.SYS
  324. >>>>>>472 ubyte&0xDF >0
  325. >>>>>>>472 string x \b %-.2s
  326. >>>>>>>>474 ubyte&0xDF >0
  327. >>>>>>>>>474 string x \b%-.5s
  328. >>>>>>>>>>479 ubyte&0xDF >0
  329. >>>>>>>>>>>479 string x \b%-.1s
  330. >>>>>>>480 ubyte&0xDF >0
  331. >>>>>>>>480 string x \b.%-.3s
  332. #MSDOS.SYS
  333. >>>>>>>483 ubyte&0xDF >0 \b+
  334. >>>>>>>>483 string x \b%-.5s
  335. >>>>>>>>>488 ubyte&0xDF >0
  336. >>>>>>>>>>488 string x \b%-.3s
  337. >>>>>>>>491 ubyte&0xDF >0
  338. >>>>>>>>>491 string x \b.%-.3s
  339. #
  340. >>390 string Invalid\ system\ disk\xFF\r\n
  341. >>>412 string Disk\ I/O\ error\xFF\r\n
  342. >>>>429 string Replace\ the\ disk,\ and\
  343. >>>>>451 string then\ press\ any\ key\r \b, Microsoft Windows 98 Bootloader
  344. >>388 string Ungueltiges\ System\ \xFF\r\n
  345. >>>410 string E/A-Fehler\ \ \ \ \xFF\r\n
  346. >>>>427 string Datentraeger\ wechseln\ und\
  347. >>>>>453 string Taste\ druecken\r \b, Microsoft Windows 95/98/ME Bootloader (german)
  348. #WINBOOT.SYS only not spaces (0xDF)
  349. >>>>>>497 ubyte&0xDF >0
  350. >>>>>>>497 string x %-.5s
  351. >>>>>>>>502 ubyte&0xDF >0
  352. >>>>>>>>>502 string x \b%-.1s
  353. >>>>>>>>>>503 ubyte&0xDF >0
  354. >>>>>>>>>>>503 string x \b%-.1s
  355. >>>>>>>>>>>>504 ubyte&0xDF >0
  356. >>>>>>>>>>>>>504 string x \b%-.1s
  357. >>>>>>505 ubyte&0xDF >0
  358. >>>>>>>505 string x \b.%-.3s
  359. #IO.SYS
  360. >>>>>>472 ubyte&0xDF >0 or
  361. >>>>>>>472 string x \b %-.2s
  362. >>>>>>>>474 ubyte&0xDF >0
  363. >>>>>>>>>474 string x \b%-.5s
  364. >>>>>>>>>>479 ubyte&0xDF >0
  365. >>>>>>>>>>>479 string x \b%-.1s
  366. >>>>>>>480 ubyte&0xDF >0
  367. >>>>>>>>480 string x \b.%-.3s
  368. #MSDOS.SYS
  369. >>>>>>>483 ubyte&0xDF >0 \b+
  370. >>>>>>>>483 string x \b%-.5s
  371. >>>>>>>>>488 ubyte&0xDF >0
  372. >>>>>>>>>>488 string x \b%-.3s
  373. >>>>>>>>491 ubyte&0xDF >0
  374. >>>>>>>>>491 string x \b.%-.3s
  375. #
  376. >>390 string Ungueltiges\ System\ \xFF\r\n
  377. >>>412 string E/A-Fehler\ \ \ \ \xFF\r\n
  378. >>>>429 string Datentraeger\ wechseln\ und\
  379. >>>>>455 string Taste\ druecken\r \b, Microsoft Windows 95/98/ME Bootloader (German)
  380. #WINBOOT.SYS only not spaces (0xDF)
  381. >>>>>>497 ubyte&0xDF >0
  382. >>>>>>>497 string x %-.7s
  383. >>>>>>>>504 ubyte&0xDF >0
  384. >>>>>>>>>504 string x \b%-.1s
  385. >>>>>>505 ubyte&0xDF >0
  386. >>>>>>>505 string x \b.%-.3s
  387. #IO.SYS
  388. >>>>>>472 ubyte&0xDF >0 or
  389. >>>>>>>472 string x \b %-.2s
  390. >>>>>>>>474 ubyte&0xDF >0
  391. >>>>>>>>>474 string x \b%-.6s
  392. >>>>>>>480 ubyte&0xDF >0
  393. >>>>>>>>480 string x \b.%-.3s
  394. #MSDOS.SYS
  395. >>>>>>>483 ubyte&0xDF >0 \b+
  396. >>>>>>>>483 string x \b%-.5s
  397. >>>>>>>>>488 ubyte&0xDF >0
  398. >>>>>>>>>>488 string x \b%-.3s
  399. >>>>>>>>491 ubyte&0xDF >0
  400. >>>>>>>>>491 string x \b.%-.3s
  401. #
  402. >>389 string Ungueltiges\ System\ \xFF\r\n
  403. >>>411 string E/A-Fehler\ \ \ \ \xFF\r\n
  404. >>>>428 string Datentraeger\ wechseln\ und\
  405. >>>>>454 string Taste\ druecken\r \b, Microsoft Windows 95/98/ME Bootloader (GERMAN)
  406. # DOS names like IO.SYS,WINBOOT.SYS,MSDOS.SYS,WINBOOT.INI are 8 right space padded bytes+3 bytes
  407. >>>>>>472 string x %-.2s
  408. >>>>>>>474 ubyte&0xDF >0
  409. >>>>>>>>474 string x \b%-.5s
  410. >>>>>>>>479 ubyte&0xDF >0
  411. >>>>>>>>>479 string x \b%-.1s
  412. >>>>>>480 ubyte&0xDF >0
  413. >>>>>>>480 string x \b.%-.3s
  414. >>>>>>483 ubyte&0xDF >0 \b+
  415. >>>>>>>483 string x \b%-.5s
  416. >>>>>>>488 ubyte&0xDF >0
  417. >>>>>>>>488 string x \b%-.2s
  418. >>>>>>>>490 ubyte&0xDF >0
  419. >>>>>>>>>490 string x \b%-.1s
  420. >>>>>>>491 ubyte&0xDF >0
  421. >>>>>>>>491 string x \b.%-.3s
  422. >479 ubyte&0xDF >0
  423. >>416 string Kein\ System\ oder\
  424. >>>433 string Laufwerksfehler
  425. >>>>450 string Wechseln\ und\ Taste\ dr\201cken \b, Microsoft DOS Bootloader (german)
  426. #IO.SYS
  427. >>>>>479 string x \b %-.2s
  428. >>>>>>481 ubyte&0xDF >0
  429. >>>>>>>481 string x \b%-.6s
  430. >>>>>487 ubyte&0xDF >0
  431. >>>>>>487 string x \b.%-.3s
  432. #MSDOS.SYS
  433. >>>>>>490 ubyte&0xDF >0 \b+
  434. >>>>>>>490 string x \b%-.5s
  435. >>>>>>>>495 ubyte&0xDF >0
  436. >>>>>>>>>495 string x \b%-.3s
  437. >>>>>>>498 ubyte&0xDF >0
  438. >>>>>>>>498 string x \b.%-.3s
  439. #
  440. >486 ubyte&0xDF >0
  441. >>416 string Non-System\ disk\ or\
  442. >>>435 string disk\ error\r
  443. >>>>447 string Replace\ and\ press\ any\ key\
  444. >>>>>473 string when\ ready\r \b, Microsoft DOS Bootloader
  445. >480 ubyte&0xDF >0
  446. >>393 string Non-System\ disk\ or\
  447. >>>412 string disk\ error\r
  448. >>>>424 string Replace\ and\ press\ any\ key\
  449. >>>>>450 string when\ ready\r \b, Microsoft DOS bootloader
  450. #IO.SYS
  451. >>>>>480 string x \b %-.2s
  452. >>>>>>482 ubyte&0xDF >0
  453. >>>>>>>48 string x \b%-.6s
  454. >>>>>488 ubyte&0xDF >0
  455. >>>>>>488 string x \b.%-.3s
  456. #MSDOS.SYS
  457. >>>>>>491 ubyte&0xDF >0 \b+
  458. >>>>>>>491 string x \b%-.5s
  459. >>>>>>>>496 ubyte&0xDF >0
  460. >>>>>>>>>496 string x \b%-.3s
  461. >>>>>>>499 ubyte&0xDF >0
  462. >>>>>>>>499 string x \b.%-.3s
  463. #>43 string \224R-LOADER\ \ SYS =label
  464. >54 string SYS
  465. >>324 string VASKK
  466. >>>495 string NEWLDR\0 \b, DR-DOS Bootloader (LOADER.SYS)
  467. #
  468. >70 string IBMBIO\ \ COM
  469. >>472 string Cannot\ load\ DOS!\
  470. >>>489 string Any\ key\ to\ retry \b, DR-DOS Bootloader
  471. >>471 string Cannot\ load\ DOS\
  472. >>487 string press\ key\ to\ retry \b, Open-DOS Bootloader
  473. >444 string KERNEL\ \ SYS
  474. >>314 string BOOT\ error! \b, FREE-DOS Bootloader
  475. >499 string KERNEL\ \ SYS
  476. >>305 string BOOT\ err!\0 \b, Free-DOS Bootloader
  477. >449 string KERNEL\ \ SYS
  478. >>319 string BOOT\ error! \b, FREE-DOS 0.5 Bootloader
  479. >125 string Loading\ FreeDOS...\r
  480. >>311 string BOOT\ error!\r \b, FREE-DOS bootloader
  481. >>>441 ubyte&0xDF >0
  482. >>>>441 string x \b %-.6s
  483. >>>>>447 ubyte&0xDF >0
  484. >>>>>>447 string x \b%-.1s
  485. >>>>>>>448 ubyte&0xDF >0
  486. >>>>>>>>448 string x \b%-.1s
  487. >>>>449 ubyte&0xDF >0
  488. >>>>>449 string x \b.%-.3s
  489. >124 string FreeDOS\0
  490. >>331 string \ err\0 \b, FREE-DOS BETa 0.9 Bootloader
  491. # DOS names like KERNEL.SYS,KERNEL16.SYS,KERNEL32.SYS,METAKERN.SYS are 8 right space padded bytes+3 bytes
  492. >>>497 ubyte&0xDF >0
  493. >>>>497 string x \b %-.6s
  494. >>>>>503 ubyte&0xDF >0
  495. >>>>>>503 string x \b%-.1s
  496. >>>>>>>504 ubyte&0xDF >0
  497. >>>>>>>>504 string x \b%-.1s
  498. >>>>505 ubyte&0xDF >0
  499. >>>>>505 string x \b.%-.3s
  500. >>333 string \ err\0 \b, FREE-DOS BEta 0.9 Bootloader
  501. >>>497 ubyte&0xDF >0
  502. >>>>497 string x \b %-.6s
  503. >>>>>503 ubyte&0xDF >0
  504. >>>>>>503 string x \b%-.1s
  505. >>>>>>>504 ubyte&0xDF >0
  506. >>>>>>>>504 string x \b%-.1s
  507. >>>>505 ubyte&0xDF >0
  508. >>>>>505 string x \b.%-.3s
  509. >>334 string \ err\0 \b, FREE-DOS Beta 0.9 Bootloader
  510. >>>497 ubyte&0xDF >0
  511. >>>>497 string x \b %-.6s
  512. >>>>>503 ubyte&0xDF >0
  513. >>>>>>503 string x \b%-.1s
  514. >>>>>>>504 ubyte&0xDF >0
  515. >>>>>>>>504 string x \b%-.1s
  516. >>>>505 ubyte&0xDF >0
  517. >>>>>505 string x \b.%-.3s
  518. >336 string Error!\
  519. >>343 string Hit\ a\ key\ to\ reboot. \b, FREE-DOS Beta 0.9sr1 Bootloader
  520. >>>497 ubyte&0xDF >0
  521. >>>>497 string x \b %-.6s
  522. >>>>>503 ubyte&0xDF >0
  523. >>>>>>503 string x \b%-.1s
  524. >>>>>>>504 ubyte&0xDF >0
  525. >>>>>>>>504 string x \b%-.1s
  526. >>>>505 ubyte&0xDF >0
  527. >>>>>505 string x \b.%-.3s
  528. # loader end
  529. # Joerg Jenderek
  530. >446 ubyte 0
  531. >>450 ubyte >0
  532. >>>482 ubyte 0
  533. >>>>498 ubyte 0
  534. >>>>466 ubyte 0x05 \b, extended partition table
  535. >>>>466 ubyte 0x0F \b, extended partition table (LBA)
  536. >>>>466 ubyte 0x0 \b, extended partition table (last)
  537. # JuMP short bootcodeoffset NOP assembler instructions will usually be EB xx 90
  538. # older drives may use E9 xx xx
  539. >0 lelong&0x009000EB 0x009000EB
  540. >0 lelong&0x000000E9 0x000000E9
  541. >>1 ubyte >37 \b, code offset 0x%x
  542. # mtools-3.9.8/msdos.h
  543. # usual values are marked with comments to get only informations of strange FAT systems
  544. # valid sectorsize are from 32 to 2048
  545. >>>11 uleshort <2049
  546. >>>>11 uleshort >31
  547. >>>>>3 string >\0 \b, OEM-ID "%8.8s"
  548. >>>>>11 uleshort >512 \b, Bytes/sector %u
  549. #>>>>>11 uleshort =512 \b, Bytes/sector %u=512 (usual)
  550. >>>>>11 uleshort <512 \b, Bytes/sector %u
  551. >>>>>13 ubyte >1 \b, sectors/cluster %u
  552. #>>>>>13 ubyte =1 \b, sectors/cluster %u (usual on Floppies)
  553. >>>>>14 uleshort >32 \b, reserved sectors %u
  554. #>>>>>14 uleshort =32 \b, reserved sectors %u (usual Fat32)
  555. #>>>>>14 uleshort >1 \b, reserved sectors %u
  556. #>>>>>14 uleshort =1 \b, reserved sectors %u (usual FAT12,FAT16)
  557. >>>>>14 uleshort <1 \b, reserved sectors %u
  558. >>>>>16 ubyte >2 \b, FATs %u
  559. #>>>>>16 ubyte =2 \b, FATs %u (usual)
  560. >>>>>16 ubyte =1 \b, FAT %u
  561. >>>>>16 ubyte >0
  562. >>>>>17 uleshort >0 \b, root entries %u
  563. #>>>>>17 uleshort =0 \b, root entries %u=0 (usual Fat32)
  564. >>>>>19 uleshort >0 \b, sectors %u (volumes <=32 MB)
  565. #>>>>>19 uleshort =0 \b, sectors %u=0 (usual Fat32)
  566. >>>>>21 ubyte >0xF0 \b, Media descriptor 0x%x
  567. #>>>>>21 ubyte =0xF0 \b, Media descriptor 0x%x (usual floppy)
  568. >>>>>21 ubyte <0xF0 \b, Media descriptor 0x%x
  569. >>>>>22 uleshort >0 \b, sectors/FAT %u
  570. #>>>>>22 uleshort =0 \b, sectors/FAT %u=0 (usual Fat32)
  571. >>>>>26 ubyte >2 \b, heads %u
  572. #>>>>>26 ubyte =2 \b, heads %u (usual floppy)
  573. >>>>>26 ubyte =1 \b, heads %u
  574. >>>>>28 ulelong >0 \b, hidden sectors %u
  575. #>>>>>28 ulelong =0 \b, hidden sectors %u (usual floppy)
  576. >>>>>32 ulelong >0 \b, sectors %u (volumes > 32 MB)
  577. #>>>>>32 ulelong =0 \b, sectors %u (volumes > 32 MB)
  578. # FAT<32 specific
  579. # NOT le FAT3=NOT 3TAF=0xCCABBEB9
  580. >>>>>82 ulelong&0xCCABBEB9 >0
  581. >>>>>>36 ubyte >0x80 \b, physical drive 0x%x
  582. #>>>>>>36 ubyte =0x80 \b, physical drive 0x%x=0x80 (usual harddisk)
  583. >>>>>>36 ubyte&0x7F >0 \b, physical drive 0x%x
  584. #>>>>>>36 ubyte =0 \b, physical drive 0x%x=0 (usual floppy)
  585. >>>>>>37 ubyte >0 \b, reserved 0x%x
  586. #>>>>>>37 ubyte =0 \b, reserved 0x%x
  587. >>>>>>38 ubyte >0x29 \b, dos < 4.0 BootSector (0x%x)
  588. >>>>>>38 ubyte <0x29 \b, dos < 4.0 BootSector (0x%x)
  589. >>>>>>38 ubyte =0x29
  590. >>>>>>>39 ulelong x \b, serial number 0x%x
  591. >>>>>>>43 string <NO\ NAME \b, label: "%11.11s"
  592. >>>>>>>43 string >NO\ NAME \b, label: "%11.11s"
  593. >>>>>>>43 string =NO\ NAME \b, unlabeled
  594. >>>>>>54 string FAT \b, FAT
  595. >>>>>>>54 string FAT12 \b (12 bit)
  596. >>>>>>>54 string FAT16 \b (16 bit)
  597. # FAT32 specific
  598. >>>>>82 string FAT32 \b, FAT (32 bit)
  599. >>>>>>36 ulelong x \b, sectors/FAT %u
  600. >>>>>>40 uleshort >0 \b, extension flags %u
  601. #>>>>>>40 uleshort =0 \b, extension flags %u
  602. >>>>>>42 uleshort >0 \b, fsVersion %u
  603. #>>>>>>42 uleshort =0 \b, fsVersion %u (usual)
  604. >>>>>>44 ulelong >2 \b, rootdir cluster %u
  605. #>>>>>>44 ulelong =2 \b, rootdir cluster %u
  606. #>>>>>>44 ulelong =1 \b, rootdir cluster %u
  607. >>>>>>48 uleshort >1 \b, infoSector %u
  608. #>>>>>>48 uleshort =1 \b, infoSector %u (usual)
  609. >>>>>>48 uleshort <1 \b, infoSector %u
  610. >>>>>>50 uleshort >6 \b, Backup boot sector %u
  611. #>>>>>>50 uleshort =6 \b, Backup boot sector %u (usual)
  612. >>>>>>50 uleshort <6 \b, Backup boot sector %u
  613. >>>>>>54 ulelong >0 \b, reserved1 0x%x
  614. >>>>>>58 ulelong >0 \b, reserved2 0x%x
  615. >>>>>>62 ulelong >0 \b, reserved3 0x%x
  616. # same structure as FAT1X
  617. >>>>>>64 ubyte >0x80 \b, physical drive 0x%x
  618. #>>>>>>64 ubyte =0x80 \b, physical drive 0x%x=80 (usual harddisk)
  619. >>>>>>64 ubyte&0x7F >0 \b, physical drive 0x%x
  620. #>>>>>>64 ubyte =0 \b, physical drive 0x%x=0 (usual floppy)
  621. >>>>>>65 ubyte >0 \b, reserved 0x%x
  622. >>>>>>66 ubyte >0x29 \b, dos < 4.0 BootSector (0x%x)
  623. >>>>>>66 ubyte <0x29 \b, dos < 4.0 BootSector (0x%x)
  624. >>>>>>66 ubyte =0x29
  625. >>>>>>>67 ulelong x \b, serial number 0x%x
  626. >>>>>>>71 string <NO\ NAME \b, label: "%11.11s"
  627. >>>>>>71 string >NO\ NAME \b, label: "%11.11s"
  628. >>>>>>71 string =NO\ NAME \b, unlabeled
  629. ### FATs end
  630. >0x200 lelong 0x82564557 \b, BSD disklabel
  631. # FATX
  632. 0 string FATX FATX filesystem data
  633. # Minix filesystems - Juan Cespedes <cespedes@debian.org>
  634. 0x410 leshort 0x137f Minix filesystem
  635. 0x410 beshort 0x137f Minix filesystem (big endian),
  636. >0x402 beshort !0 \b, %d zones
  637. >0x1e string minix \b, bootable
  638. 0x410 leshort 0x138f Minix filesystem, 30 char names
  639. 0x410 leshort 0x2468 Minix filesystem, version 2
  640. 0x410 leshort 0x2478 Minix filesystem, version 2, 30 char names
  641. # romfs filesystems - Juan Cespedes <cespedes@debian.org>
  642. 0 string -rom1fs-\0 romfs filesystem, version 1
  643. >8 belong x %d bytes,
  644. >16 string x named %s.
  645. # netboot image - Juan Cespedes <cespedes@debian.org>
  646. 0 lelong 0x1b031336L Netboot image,
  647. >4 lelong&0xFFFFFF00 0
  648. >>4 lelong&0x100 0x000 mode 2
  649. >>4 lelong&0x100 0x100 mode 3
  650. >4 lelong&0xFFFFFF00 !0 unknown mode
  651. 0x18b string OS/2 OS/2 Boot Manager
  652. 9564 lelong 0x00011954 Unix Fast File system [v1] (little-endian),
  653. >8404 string x last mounted on %s,
  654. #>9504 ledate x last checked at %s,
  655. >8224 ledate x last written at %s,
  656. >8401 byte x clean flag %d,
  657. >8228 lelong x number of blocks %d,
  658. >8232 lelong x number of data blocks %d,
  659. >8236 lelong x number of cylinder groups %d,
  660. >8240 lelong x block size %d,
  661. >8244 lelong x fragment size %d,
  662. >8252 lelong x minimum percentage of free blocks %d,
  663. >8256 lelong x rotational delay %dms,
  664. >8260 lelong x disk rotational speed %drps,
  665. >8320 lelong 0 TIME optimization
  666. >8320 lelong 1 SPACE optimization
  667. 42332 lelong 0x19540119 Unix Fast File system [v2] (little-endian)
  668. >&-1164 string x last mounted on %s,
  669. >&-696 string >\0 volume name %s,
  670. >&-304 leqldate x last written at %s,
  671. >&-1167 byte x clean flag %d,
  672. >&-1168 byte x readonly flag %d,
  673. >&-296 lequad x number of blocks %lld,
  674. >&-288 lequad x number of data blocks %lld,
  675. >&-1332 lelong x number of cylinder groups %d,
  676. >&-1328 lelong x block size %d,
  677. >&-1324 lelong x fragment size %d,
  678. >&-180 lelong x average file size %d,
  679. >&-176 lelong x average number of files in dir %d,
  680. >&-272 lequad x pending blocks to free %lld,
  681. >&-264 lelong x pending inodes to free %ld,
  682. >&-664 lequad x system-wide uuid %0llx,
  683. >&-1316 lelong x minimum percentage of free blocks %d,
  684. >&-1248 lelong 0 TIME optimization
  685. >&-1248 lelong 1 SPACE optimization
  686. 66908 lelong 0x19540119 Unix Fast File system [v2] (little-endian)
  687. >&-1164 string x last mounted on %s,
  688. >&-696 string >\0 volume name %s,
  689. >&-304 leqldate x last written at %s,
  690. >&-1167 byte x clean flag %d,
  691. >&-1168 byte x readonly flag %d,
  692. >&-296 lequad x number of blocks %lld,
  693. >&-288 lequad x number of data blocks %lld,
  694. >&-1332 lelong x number of cylinder groups %d,
  695. >&-1328 lelong x block size %d,
  696. >&-1324 lelong x fragment size %d,
  697. >&-180 lelong x average file size %d,
  698. >&-176 lelong x average number of files in dir %d,
  699. >&-272 lequad x pending blocks to free %lld,
  700. >&-264 lelong x pending inodes to free %ld,
  701. >&-664 lequad x system-wide uuid %0llx,
  702. >&-1316 lelong x minimum percentage of free blocks %d,
  703. >&-1248 lelong 0 TIME optimization
  704. >&-1248 lelong 1 SPACE optimization
  705. 9564 belong 0x00011954 Unix Fast File system [v1] (big-endian),
  706. >7168 belong 0x4c41424c Apple UFS Volume
  707. >>7186 string x named %s,
  708. >>7176 belong x volume label version %d,
  709. >>7180 bedate x created on %s,
  710. >8404 string x last mounted on %s,
  711. #>9504 bedate x last checked at %s,
  712. >8224 bedate x last written at %s,
  713. >8401 byte x clean flag %d,
  714. >8228 belong x number of blocks %d,
  715. >8232 belong x number of data blocks %d,
  716. >8236 belong x number of cylinder groups %d,
  717. >8240 belong x block size %d,
  718. >8244 belong x fragment size %d,
  719. >8252 belong x minimum percentage of free blocks %d,
  720. >8256 belong x rotational delay %dms,
  721. >8260 belong x disk rotational speed %drps,
  722. >8320 belong 0 TIME optimization
  723. >8320 belong 1 SPACE optimization
  724. 42332 belong 0x19540119 Unix Fast File system [v2] (big-endian)
  725. >&-1164 string x last mounted on %s,
  726. >&-696 string >\0 volume name %s,
  727. >&-304 beqldate x last written at %s,
  728. >&-1167 byte x clean flag %d,
  729. >&-1168 byte x readonly flag %d,
  730. >&-296 bequad x number of blocks %lld,
  731. >&-288 bequad x number of data blocks %lld,
  732. >&-1332 belong x number of cylinder groups %d,
  733. >&-1328 belong x block size %d,
  734. >&-1324 belong x fragment size %d,
  735. >&-180 belong x average file size %d,
  736. >&-176 belong x average number of files in dir %d,
  737. >&-272 bequad x pending blocks to free %lld,
  738. >&-264 belong x pending inodes to free %ld,
  739. >&-664 bequad x system-wide uuid %0llx,
  740. >&-1316 belong x minimum percentage of free blocks %d,
  741. >&-1248 belong 0 TIME optimization
  742. >&-1248 belong 1 SPACE optimization
  743. 66908 belong 0x19540119 Unix Fast File system [v2] (big-endian)
  744. >&-1164 string x last mounted on %s,
  745. >&-696 string >\0 volume name %s,
  746. >&-304 beqldate x last written at %s,
  747. >&-1167 byte x clean flag %d,
  748. >&-1168 byte x readonly flag %d,
  749. >&-296 bequad x number of blocks %lld,
  750. >&-288 bequad x number of data blocks %lld,
  751. >&-1332 belong x number of cylinder groups %d,
  752. >&-1328 belong x block size %d,
  753. >&-1324 belong x fragment size %d,
  754. >&-180 belong x average file size %d,
  755. >&-176 belong x average number of files in dir %d,
  756. >&-272 bequad x pending blocks to free %lld,
  757. >&-264 belong x pending inodes to free %ld,
  758. >&-664 bequad x system-wide uuid %0llx,
  759. >&-1316 belong x minimum percentage of free blocks %d,
  760. >&-1248 belong 0 TIME optimization
  761. >&-1248 belong 1 SPACE optimization
  762. # ext2/ext3 filesystems - Andreas Dilger <adilger@turbolabs.com>
  763. 0x438 leshort 0xEF53 Linux
  764. >0x44c lelong x rev %d
  765. >0x43e leshort x \b.%d
  766. >0x45c lelong ^0x0000004 ext2 filesystem data
  767. >>0x43a leshort ^0x0000001 (mounted or unclean)
  768. >0x45c lelong &0x0000004 ext3 filesystem data
  769. >>0x460 lelong &0x0000004 (needs journal recovery)
  770. >0x43a leshort &0x0000002 (errors)
  771. >0x460 lelong &0x0000001 (compressed)
  772. #>0x460 lelong &0x0000002 (filetype)
  773. #>0x464 lelong &0x0000001 (sparse_super)
  774. >0x464 lelong &0x0000002 (large files)
  775. # SGI disk labels - Nathan Scott <nathans@debian.org>
  776. 0 belong 0x0BE5A941 SGI disk label (volume header)
  777. # SGI XFS filesystem - Nathan Scott <nathans@debian.org>
  778. 0 belong 0x58465342 SGI XFS filesystem data
  779. >0x4 belong x (blksz %d,
  780. >0x68 beshort x inosz %d,
  781. >0x64 beshort ^0x2004 v1 dirs)
  782. >0x64 beshort &0x2004 v2 dirs)
  783. ############################################################################
  784. # Minix-ST kernel floppy
  785. 0x800 belong 0x46fc2700 Atari-ST Minix kernel image
  786. >19 string \240\5\371\5\0\011\0\2\0 \b, 720k floppy
  787. >19 string \320\2\370\5\0\011\0\1\0 \b, 360k floppy
  788. ############################################################################
  789. # Hmmm, is this a better way of detecting _standard_ floppy images ?
  790. 19 string \320\2\360\3\0\011\0\1\0 DOS floppy 360k
  791. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  792. 19 string \240\5\371\3\0\011\0\2\0 DOS floppy 720k
  793. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  794. 19 string \100\013\360\011\0\022\0\2\0 DOS floppy 1440k
  795. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  796. 19 string \240\5\371\5\0\011\0\2\0 DOS floppy 720k, IBM
  797. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  798. 19 string \100\013\371\5\0\011\0\2\0 DOS floppy 1440k, mkdosfs
  799. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  800. 19 string \320\2\370\5\0\011\0\1\0 Atari-ST floppy 360k
  801. 19 string \240\5\371\5\0\011\0\2\0 Atari-ST floppy 720k
  802. # Valid media descriptor bytes for MS-DOS:
  803. #
  804. # Byte Capacity Media Size and Type
  805. # -------------------------------------------------
  806. #
  807. # F0 2.88 MB 3.5-inch, 2-sided, 36-sector
  808. # F0 1.44 MB 3.5-inch, 2-sided, 18-sector
  809. # F9 720K 3.5-inch, 2-sided, 9-sector
  810. # F9 1.2 MB 5.25-inch, 2-sided, 15-sector
  811. # FD 360K 5.25-inch, 2-sided, 9-sector
  812. # FF 320K 5.25-inch, 2-sided, 8-sector
  813. # FC 180K 5.25-inch, 1-sided, 9-sector
  814. # FE 160K 5.25-inch, 1-sided, 8-sector
  815. # FE 250K 8-inch, 1-sided, single-density
  816. # FD 500K 8-inch, 2-sided, single-density
  817. # FE 1.2 MB 8-inch, 2-sided, double-density
  818. # F8 ----- Fixed disk
  819. #
  820. # FC xxxK Apricot 70x1x9 boot disk.
  821. #
  822. # Originally a bitmap:
  823. # xxxxxxx0 Not two sided
  824. # xxxxxxx1 Double sided
  825. # xxxxxx0x Not 8 SPT
  826. # xxxxxx1x 8 SPT
  827. # xxxxx0xx Not Removable drive
  828. # xxxxx1xx Removable drive
  829. # 11111xxx Must be one.
  830. #
  831. # But now it's rather random:
  832. # 111111xx Low density disk
  833. # 00 SS, Not 8 SPT
  834. # 01 DS, Not 8 SPT
  835. # 10 SS, 8 SPT
  836. # 11 DS, 8 SPT
  837. #
  838. # 11111001 Double density 3½ floppy disk, high density 5¼
  839. # 11110000 High density 3½ floppy disk
  840. # 11111000 Hard disk any format
  841. #
  842. # CDROM Filesystems
  843. # Modified for UDF by gerardo.cacciari@gmail.com
  844. 32769 string CD001
  845. >38913 string !NSR0 ISO 9660 CD-ROM filesystem data
  846. >38913 string NSR01 UDF filesystem data (version 1.0)
  847. >38913 string NSR02 UDF filesystem data (version 1.5)
  848. >38913 string NSR03 UDF filesystem data (version 2.0)
  849. >38913 string >NSR03 UDF filesystem data (unknown version,
  850. >>38917 byte x id 'NSR0%c')
  851. >38913 string <NSR01 UDF filesystem data (unknown version,
  852. >>38917 byte x id 'NSR0%c')
  853. # "application id" which appears to be used as a volume label
  854. >32808 string >\0 '%s'
  855. >34816 string \000CD001\001EL\ TORITO\ SPECIFICATION (bootable)
  856. 37633 string CD001 ISO 9660 CD-ROM filesystem data (raw 2352 byte sectors)
  857. 32776 string CDROM High Sierra CD-ROM filesystem data
  858. # cramfs filesystem - russell@coker.com.au
  859. 0 lelong 0x28cd3d45 Linux Compressed ROM File System data, little endian
  860. >4 lelong x size %d
  861. >8 lelong &1 version #2
  862. >8 lelong &2 sorted_dirs
  863. >8 lelong &4 hole_support
  864. >32 lelong x CRC 0x%x,
  865. >36 lelong x edition %d,
  866. >40 lelong x %d blocks,
  867. >44 lelong x %d files
  868. 0 belong 0x28cd3d45 Linux Compressed ROM File System data, big endian
  869. >4 belong x size %d
  870. >8 belong &1 version #2
  871. >8 belong &2 sorted_dirs
  872. >8 belong &4 hole_support
  873. >32 belong x CRC 0x%x,
  874. >36 belong x edition %d,
  875. >40 belong x %d blocks,
  876. >44 belong x %d files
  877. # reiserfs - russell@coker.com.au
  878. 0x10034 string ReIsErFs ReiserFS V3.5
  879. 0x10034 string ReIsEr2Fs ReiserFS V3.6
  880. >0x1002c leshort x block size %d
  881. >0x10032 leshort &2 (mounted or unclean)
  882. >0x10000 lelong x num blocks %d
  883. >0x10040 lelong 1 tea hash
  884. >0x10040 lelong 2 yura hash
  885. >0x10040 lelong 3 r5 hash
  886. # JFFS - russell@coker.com.au
  887. 0 lelong 0x34383931 Linux Journalled Flash File system, little endian
  888. 0 belong 0x34383931 Linux Journalled Flash File system, big endian
  889. # EST flat binary format (which isn't, but anyway)
  890. # From: Mark Brown <broonie@sirena.org.uk>
  891. 0 string ESTFBINR EST flat binary
  892. # Aculab VoIP firmware
  893. # From: Mark Brown <broonie@sirena.org.uk>
  894. 0 string VoIP\ Startup\ and Aculab VoIP firmware
  895. >35 string x format %s
  896. # u-boot/PPCBoot image file
  897. # From: Mark Brown <broonie@sirena.org.uk>
  898. 0 belong 0x27051956 u-boot/PPCBoot image
  899. >4 string PPCBoot
  900. >>12 string x version %s
  901. # JFFS2 file system
  902. 0 leshort 0x1984 Linux old jffs2 filesystem data little endian
  903. 0 leshort 0x1985 Linux jffs2 filesystem data little endian
  904. # Squashfs
  905. 0 string sqsh Squashfs filesystem, big endian,
  906. >28 beshort x version %d.
  907. >30 beshort x \b%d,
  908. >28 beshort <3
  909. >>8 belong x %d bytes,
  910. >28 beshort >2
  911. >>63 bequad x %lld bytes,
  912. #>>67 belong x %d bytes,
  913. >4 belong x %d inodes,
  914. >28 beshort <2
  915. >>32 beshort x blocksize: %d bytes,
  916. >28 beshort >1
  917. >>51 belong x blocksize: %d bytes,
  918. >39 bedate x created: %s
  919. 0 string hsqs Squashfs filesystem, little endian,
  920. >28 leshort x version %d.
  921. >30 leshort x \b%d,
  922. >28 leshort <3
  923. >>8 lelong x %d bytes,
  924. >28 leshort >2
  925. >>63 lequad x %lld bytes,
  926. #>>63 lelong x %d bytes,
  927. >4 lelong x %d inodes,
  928. >28 leshort <2
  929. >>32 leshort x blocksize: %d bytes,
  930. >28 leshort >1
  931. >>51 lelong x blocksize: %d bytes,
  932. >39 ledate x created: %s
  933. 0 string td\000 floppy image data (TeleDisk)
  934. # AFS Dump Magic
  935. # From: Ty Sarna <tsarna@sarna.org>
  936. 0 string \x01\xb3\xa1\x13\x22 AFS Dump
  937. >&0 belong x (v%d)
  938. >>&0 byte 0x76
  939. >>>&0 belong x Vol %d,
  940. >>>>&0 byte 0x6e
  941. >>>>>&0 string x %s
  942. >>>>>>&1 byte 0x74
  943. >>>>>>>&0 beshort 2
  944. >>>>>>>>&4 bedate x on: %s
  945. >>>>>>>>&0 bedate =0 full dump
  946. >>>>>>>>&0 bedate !0 incremental since: %s
  947. # VMS backup savesets - gerardo.cacciari@gmail.com
  948. # had to comment out GEM Image and G3 raw data entries due to conflict
  949. #0 byte x
  950. #>(0.s+16) string \x01\x01
  951. #>>&(&0.b+8) byte 0x42 OpenVMS backup saveset data
  952. #>>>40 lelong x (block size %d
  953. #>>>49 string >\0 original name '%s')