filesystems 45 KB

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