filesystems 77 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990
  1. #------------------------------------------------------------------------------
  2. # $File: filesystems,v 1.77 2013/03/14 01:38:30 christos Exp $
  3. # filesystems: file(1) magic for different filesystems
  4. #
  5. 0 string \366\366\366\366 PC formatted floppy with no filesystem
  6. # Sun disk labels
  7. # From /usr/include/sun/dklabel.h:
  8. 0774 beshort 0xdabe
  9. # modified by Joerg Jenderek, because original test
  10. # succeeds for Cabinet archive dao360.dl_ with negative blocks
  11. >0770 long >0 Sun disk label
  12. >>0 string x '%s
  13. >>>31 string >\0 \b%s
  14. >>>>63 string >\0 \b%s
  15. >>>>>95 string >\0 \b%s
  16. >>0 string x \b'
  17. >>0734 short >0 %d rpm,
  18. >>0736 short >0 %d phys cys,
  19. >>0740 short >0 %d alts/cyl,
  20. >>0746 short >0 %d interleave,
  21. >>0750 short >0 %d data cyls,
  22. >>0752 short >0 %d alt cyls,
  23. >>0754 short >0 %d heads/partition,
  24. >>0756 short >0 %d sectors/track,
  25. >>0764 long >0 start cyl %ld,
  26. >>0770 long x %ld blocks
  27. # Is there a boot block written 1 sector in?
  28. >512 belong&077777777 0600407 \b, boot block present
  29. # Joerg Jenderek: Smart Boot Manager backup file is 25 (MSDOS) or 41 (LINUX) byte header + first sectors of disk
  30. # (http://btmgr.sourceforge.net/docs/user-guide-3.html)
  31. 0 string SBMBAKUP_ Smart Boot Manager backup file
  32. >9 string x \b, version %-5.5s
  33. >>14 string =_
  34. >>>15 string x %-.1s
  35. >>>>16 string =_ \b.
  36. >>>>>17 string x \b%-.1s
  37. >>>>>>18 string =_ \b.
  38. >>>>>>>19 string x \b%-.1s
  39. >>>22 ubyte 0
  40. >>>>21 ubyte x \b, from drive 0x%x
  41. >>>22 ubyte >0
  42. >>>>21 string x \b, from drive %s
  43. >>>535 search/17 \x55\xAA
  44. >>>>&-512 indirect x \b; contains
  45. # updated by Joerg Jenderek at Nov 2012
  46. # DOS Emulator image is 128 byte, null right padded header + harddisc image
  47. 0 string DOSEMU\0
  48. >0x27E leshort 0xAA55
  49. #offset is 128
  50. >>19 ubyte 128
  51. >>>(19.b-1) ubyte 0x0 DOS Emulator image
  52. >>>>7 ulelong >0 \b, %u heads
  53. >>>>11 ulelong >0 \b, %d sectors/track
  54. >>>>15 ulelong >0 \b, %d cylinders
  55. >>>>128 indirect x \b; contains
  56. # x86 boot sector updated by Joerg Jenderek at Sep 2007,May 2011
  57. # for any allowed sector sizes
  58. 30 search/481 \x55\xAA
  59. # to display x86 boot sector (40) before old one (strength=50+21),Syslinux bootloader (71),SYSLINUX MBR (37+36),NetBSD mbr (110),AdvanceMAME mbr (111)
  60. # DOS BPB information (70) and after DOS floppy (120) like in previous file version
  61. !:strength +72
  62. # for sector sizes < 512 Bytes
  63. >11 uleshort <512
  64. >>(11.s-2) uleshort 0xAA55 x86 boot sector
  65. # for sector sizes with 512 or more Bytes
  66. >0x1FE leshort 0xAA55 x86 boot sector
  67. # keep old x86 boot sector as dummy for mbr and bootloader displaying
  68. # only for sector sizes with 512 or more Bytes
  69. 0x1FE leshort 0xAA55
  70. # to display information (50) before DOS BPB (strength=70) and after DOS floppy (120) like in old file version
  71. !:strength +21
  72. >2 string OSBS \b, OS/BS MBR
  73. # added by Joerg Jenderek at Feb 2013 according to http://thestarman.pcministry.com/asm/mbr/
  74. # and http://en.wikipedia.org/wiki/Master_Boot_Record
  75. # test for nearly all MS-DOS Master Boot Record initial program loader (IPL) is now done by
  76. # characteristic assembler instructions: xor ax,ax;mov ss,ax;mov sp,7c00
  77. >0 search/2 \x33\xc0\x8e\xd0\xbc\x00\x7c MS-MBR
  78. # Microsoft Windows 95A and early ( http://thestarman.pcministry.com/asm/mbr/STDMBR.htm )
  79. # assembler instructions: mov si,sp;push ax;pop es;push ax;pop ds;sti;cld
  80. >>8 ubequad 0x8bf45007501ffbfc
  81. # http://thestarman.pcministry.com/asm/mbr/200MBR.htm
  82. >>>0x16 ubyte 0xF3 \b,DOS 2
  83. >>>>219 regex Author\ -\ Author:
  84. # found "David Litton" , "A Pehrsson "
  85. >>>>>&0 string x "%s"
  86. >>>0x16 ubyte 0xF2
  87. # NEC MS-DOS 3.30 Rev. 3 . See http://thestarman.pcministry.com/asm/mbr/DOS33MBR.htm
  88. # assembler instructions: mov di,077c;cmp word ptrl[di],a55a;jnz
  89. >>>>0x22 ubequad 0xbf7c07813d5aa575 \b,NEC 3.3
  90. # version MS-DOS 3.30 til MS-Windows 95A (WinVer=4.00.1111)
  91. >>>>0x22 default x \b,D0S version 3.3-7.0
  92. # error messages are printed by assembler instructions: mov si,06nn;...;int 10 (0xBEnn06;...)
  93. # where nn is string offset varying for different languages
  94. # "Invalid partition table" nn=0x8b for english version
  95. >>>>>(0x49.b) string Invalid\ partition\ table english
  96. >>>>>(0x49.b) string Ung\201ltige\ Partitionstabelle german
  97. >>>>>(0x49.b) string Table\ de\ partition\ invalide french
  98. >>>>>(0x49.b) string Tabela\ de\ parti\207ao\ inv\240lida portuguese
  99. >>>>>(0x49.b) string Tabla\ de\ partici\242n\ no\ v\240lida spanish
  100. >>>>>(0x49.b) string Tavola\ delle\ partizioni\ non\ valida italian
  101. >>>>>0x49 ubyte >0 at offset 0x%x
  102. >>>>>>(0x49.b) string >\0 "%s"
  103. # "Error loading operating system" nn=0xa3 for english version
  104. # "Fehler beim Laden des Betriebssystems" nn=0xa7 for german version
  105. # "Erreur en chargeant syst\212me d'exploitation" nn=0xa7 for french version
  106. # "Erro na inicializa\207ao do sistema operacional" nn=0xa7 for portuguese Brazilian version
  107. # "Error al cargar sistema operativo" nn=0xa8 for spanish version
  108. # "Errore durante il caricamento del sistema operativo" nn=0xae for italian version
  109. >>>>>0x74 ubyte >0 at offset 0x%x
  110. >>>>>>(0x74.b) string >\0 "%s"
  111. # "Missing operating system" nn=0xc2 for english version
  112. # "Betriebssystem fehlt" nn=0xcd for german version
  113. # "Syst\212me d'exploitation absent" nn=0xd2 for french version
  114. # "Sistema operacional nao encontrado" nn=0xd4 for portuguese Brazilian version
  115. # "Falta sistema operativo" nn=0xca for spanish version
  116. # "Sistema operativo mancante" nn=0xe2 for italian version
  117. >>>>>0x79 ubyte >0 at offset 0x%x
  118. >>>>>>(0x79.b) string >\0 "%s"
  119. # Microsoft Windows 95B to XP (http://thestarman.pcministry.com/asm/mbr/95BMEMBR.htm)
  120. # assembler instructions: push ax;pop es;push ax;pop ds;cld;mov si,7c1b
  121. >>8 ubequad 0x5007501ffcbe1b7c
  122. # assembler instructions: rep;movsb;retf;mov si,07be;mov cl,04
  123. >>>24 ubequad 0xf3a4cbbebe07b104 9M
  124. # "Invalid partition table" nn=0x10F for english version
  125. # "Ungültige Partitionstabelle" nn=0x10F for german version
  126. # "Table de partition erronée" nn=0x10F for french version
  127. # "\216\257\245\340\240\346\250\256\255\255\240\357 \341\250\341\342\245\254\240 \255\245 \255\240\251\244\245\255\240" nn=0x10F for russian version
  128. >>>>(0x3C.b+0x0FF) string Invalid\ partition\ table english
  129. >>>>(0x3C.b+0x0FF) string Ung\201ltige\ Partitionstabelle german
  130. >>>>(0x3C.b+0x0FF) string Table\ de\ partition\ erron\202e french
  131. >>>>(0x3C.b+0x0FF) string \215\245\257\340\240\242\250\253\354\255\240\357\ \342\240\241\253\250\346\240 russian
  132. >>>>0x3C ubyte x at offset 0x%x+0xFF
  133. >>>>(0x3C.b+0x0FF) string >\0 "%s"
  134. # "Error loading operating system" nn=0x127 for english version
  135. # "Fehler beim Laden des Betriebssystems" nn=0x12b for german version
  136. # "Erreur lors du chargement du système d'exploitation" nn=0x12a for french version
  137. # "\216\350\250\241\252\240 \257\340\250 \247\240\243\340\343\247\252\245 \256\257\245\340\240\346\250\256\255\255\256\251 \341\250\341\342\245\254\353" nn=0x12d for russian version
  138. >>>>0xBD ubyte x at offset 0x1%x
  139. >>>>(0xBD.b+0x100) string >\0 "%s"
  140. # "Missing operating system" nn=0x146 for english version
  141. # "Betriebssystem fehlt" nn=0x151 for german version
  142. # "Système d'exploitation manquant" nn=0x15e for french version
  143. # "\216\257\245\340\240\346\250\256\255\255\240\357 \341\250\341\342\245\254\240 \255\245 \255\240\251\244\245\255\240" nn=0x156 for russian version
  144. >>>>0xA9 ubyte x at offset 0x1%x
  145. >>>>(0xA9.b+0x100) string >\0 "%s"
  146. # http://thestarman.pcministry.com/asm/mbr/Win2kmbr.htm
  147. # assembler instructions: rep;movsb;retf;mov BP,07be;mov cl,04
  148. >>>24 ubequad 0xf3a4cbbdbe07b104 XP
  149. # where xxyyzz are lower bits from offsets of error messages varying for different languages
  150. >>>>0x1B4 ubelong&0x00FFFFFF 0x002c4463 english
  151. >>>>0x1B4 ubelong&0x00FFFFFF 0x002c486e german
  152. # "Invalid partition table" xx=0x12C for english version
  153. # "Ungültige Partitionstabelle" xx=0x12C for german version
  154. >>>>0x1b5 ubyte >0 at offset 0x1%x
  155. >>>>(0x1b5.b+0x100) string >\0 "%s"
  156. # "Error loading operating system" yy=0x144 for english version
  157. # "Fehler beim Laden des Betriebssystems" yy=0x148 for german version
  158. >>>>0x1b6 ubyte >0 at offset 0x1%x
  159. >>>>(0x1b6.b+0x100) string >\0 "%s"
  160. # "Missing operating system" zz=0x163 for english version
  161. # "Betriebssystem nicht vorhanden" zz=0x16e for german version
  162. >>>>0x1b7 ubyte >0 at offset 0x1%x
  163. >>>>(0x1b7.b+0x100) string >\0 "%s"
  164. # Microsoft Windows Vista or 7
  165. # assembler instructions: ..;mov ds,ax;mov si,7c00;mov di,..00
  166. >>8 ubequad 0xc08ed8be007cbf00
  167. # Microsoft Windows Vista (http://thestarman.pcministry.com/asm/mbr/VistaMBR.htm)
  168. # assembler instructions: jnz 0729;cmp ebx,"TCPA"
  169. >>>0xEC ubequad 0x753b6681fb544350 Vista
  170. # where xxyyzz are lower bits from offsets of error messages varying for different languages
  171. >>>>0x1B4 ubelong&0x00FFFFFF 0x00627a99 english
  172. #>>>>0x1B4 ubelong&0x00FFFFFF ? german
  173. # "Invalid partition table" xx=0x162 for english version
  174. # "Ungültige Partitionstabelle" xx=0x1?? for german version
  175. >>>>0x1b5 ubyte >0 at offset 0x1%x
  176. >>>>(0x1b5.b+0x100) string >\0 "%s"
  177. # "Error loading operating system" yy=0x17a for english version
  178. # "Fehler beim Laden des Betriebssystems" yy= 0x1?? for german version
  179. >>>>0x1b6 ubyte >0 at offset 0x1%x
  180. >>>>(0x1b6.b+0x100) string >\0 "%s"
  181. # "Missing operating system" zz=0x199 for english version
  182. # "Betriebssystem nicht vorhanden" zz=0x1?? for german version
  183. >>>>0x1b7 ubyte >0 at offset 0x1%x
  184. >>>>(0x1b7.b+0x100) string >\0 "%s"
  185. # Microsoft Windows 7 (http://thestarman.pcministry.com/asm/mbr/W7MBR.htm)
  186. # assembler instructions: cmp ebx,"TCPA";cmp
  187. >>>0xEC ubequad 0x6681fb5443504175 Windows 7
  188. # where xxyyzz are lower bits from offsets of error messages varying for different languages
  189. >>>>0x1B4 ubelong&0x00FFFFFF 0x00637b9a english
  190. #>>>>0x1B4 ubelong&0x00FFFFFF ? german
  191. # "Invalid partition table" xx=0x163 for english version
  192. # "Ungültige Partitionstabelle" xx=0x1?? for german version
  193. >>>>0x1b5 ubyte >0 at offset 0x1%x
  194. >>>>(0x1b5.b+0x100) string >\0 "%s"
  195. # "Error loading operating system" yy=0x17b for english version
  196. # "Fehler beim Laden des Betriebssystems" yy=0x1?? for german version
  197. >>>>0x1b6 ubyte >0 at offset 0x1%x
  198. >>>>(0x1b6.b+0x100) string >\0 "%s"
  199. # "Missing operating system" zz=0x19a for english version
  200. # "Betriebssystem nicht vorhanden" zz=0x1?? for german version
  201. >>>>0x1b7 ubyte >0 at offset 0x1%x
  202. >>>>(0x1b7.b+0x100) string >\0 "%s"
  203. # http://thestarman.pcministry.com/asm/mbr/Win2kmbr.htm#DiskSigs
  204. # http://en.wikipedia.org/wiki/MBR_disk_signature#ID
  205. >>0x1b8 ulelong >0 \b, disk signature 0x%-.4x
  206. # driveID/timestamp for Win 95B,98,98SE and ME. See http://thestarman.pcministry.com/asm/mbr/mystery.htm
  207. >>0xDA uleshort 0
  208. >>>0xDC ulelong >0 \b, created
  209. # physical drive number (0x80-0xFF) when the Windows wrote that byte to the drive
  210. >>>>0xDC ubyte x with driveID 0x%x
  211. # hours, minutes and seconds
  212. >>>>0xDf ubyte x at %x
  213. >>>>0xDe ubyte x \b:%x
  214. >>>>0xDd ubyte x \b:%x
  215. # special case for Microsoft MS-DOS 3.21 spanish
  216. # assembler instructions: cli;mov $0x30,%ax;mov %ax,%ss;mov
  217. >0 ubequad 0xfab830008ed0bc00
  218. # assembler instructions: $0x1f00,%sp;mov $0x80cb,%di;add %cl,(%bx,%si);in (%dx),%ax;mov
  219. >>8 ubequad 0x1fbfcb800008ed8 MS-MBR,D0S version 3.21 spanish
  220. # Microsoft MBR IPL end
  221. # dr-dos with some upper-, lowercase variants
  222. >0x9D string Invalid\ partition\ table$
  223. >>181 string No\ Operating\ System$
  224. >>>201 string Operating\ System\ load\ error$ \b, DR-DOS MBR, Version 7.01 to 7.03
  225. >0x9D string Invalid\ partition\ table$
  226. >>181 string No\ operating\ system$
  227. >>>201 string Operating\ system\ load\ error$ \b, DR-DOS MBR, Version 7.01 to 7.03
  228. >342 string Invalid\ partition\ table$
  229. >>366 string No\ operating\ system$
  230. >>>386 string Operating\ system\ load\ error$ \b, DR-DOS MBR, version 7.01 to 7.03
  231. >295 string NEWLDR\0
  232. >>302 string Bad\ PT\ $
  233. >>>310 string No\ OS\ $
  234. >>>>317 string OS\ load\ err$
  235. >>>>>329 string Moved\ or\ missing\ IBMBIO.LDR\n\r
  236. >>>>>>358 string Press\ any\ key\ to\ continue.\n\r$
  237. >>>>>>>387 string Copyright\ (c)\ 1984,1998
  238. >>>>>>>>411 string Caldera\ Inc.\0 \b, DR-DOS MBR (IBMBIO.LDR)
  239. #
  240. # tests for different MS-DOS Master Boot Records (MBR) moved and merged
  241. #
  242. #>0x145 string Default:\ F \b, FREE-DOS MBR
  243. #>0x14B string Default:\ F \b, FREE-DOS 1.0 MBR
  244. >0x145 search/7 Default:\ F \b, FREE-DOS MBR
  245. #>>313 string F0\ .\ .\ .
  246. #>>>322 string disk\ 1
  247. #>>>>382 string FAT3
  248. >64 string no\ active\ partition\ found
  249. >>96 string read\ error\ while\ reading\ drive \b, FREE-DOS Beta 0.9 MBR
  250. # Ranish Partition Manager http://www.ranish.com/part/
  251. >387 search/4 \0\ Error!\r
  252. >>378 search/7 Virus!
  253. >>>397 search/4 Booting\
  254. >>>>408 search/4 HD1/\0 \b, Ranish MBR (
  255. >>>>>416 string Writing\ changes... \b2.37
  256. >>>>>>438 ubyte x \b,0x%x dots
  257. >>>>>>440 ubyte >0 \b,virus check
  258. >>>>>>441 ubyte >0 \b,partition %c
  259. #2.38,2.42,2.44
  260. >>>>>416 string !Writing\ changes... \b
  261. >>>>>>418 ubyte 1 \bvirus check,
  262. >>>>>>419 ubyte x \b0x%x seconds
  263. >>>>>>420 ubyte&0x0F >0 \b,partition
  264. >>>>>>>420 ubyte&0x0F <5 \b %x
  265. >>>>>>>420 ubyte&0x0F 0Xf \b ask
  266. >>>>>420 ubyte x \b)
  267. #
  268. # SYSLINUX MBR moved
  269. # http://www.acronis.de/
  270. >362 string MBR\ Error\ \0\r
  271. >>376 string ress\ any\ key\ to\
  272. >>>392 string boot\ from\ floppy...\0 \b, Acronis MBR
  273. # added by Joerg Jenderek
  274. # http://www.visopsys.org/
  275. # http://partitionlogic.org.uk/
  276. >309 string No\ bootable\ partition\ found\r
  277. >>339 string I/O\ Error\ reading\ boot\ sector\r \b, Visopsys MBR
  278. >349 string No\ bootable\ partition\ found\r
  279. >>379 string I/O\ Error\ reading\ boot\ sector\r \b, simple Visopsys MBR
  280. # bootloader, bootmanager
  281. >0x40 string SBML
  282. # label with 11 characters of FAT 12 bit filesystem
  283. >>43 string SMART\ BTMGR
  284. >>>430 string SBMK\ Bad!\r \b, Smart Boot Manager
  285. # OEM-ID not always "SBM"
  286. #>>>>3 strings SBM
  287. >>>>6 string >\0 \b, version %s
  288. >382 string XOSLLOADXCF \b, eXtended Operating System Loader
  289. >6 string LILO \b, LInux i386 boot LOader
  290. >>120 string LILO \b, version 22.3.4 SuSe
  291. >>172 string LILO \b, version 22.5.8 Debian
  292. # updated by Joerg Jenderek at Oct 2008
  293. # variables according to grub-0.97/stage1/stage1.S or
  294. # http://www.gnu.org/software/grub/manual/grub.html#Embedded-data
  295. # usual values are marked with comments to get only informations of strange GRUB loaders
  296. >342 search/60 \0Geom\0
  297. #>0 ulelong x %x=0x009048EB , 0x2a9048EB 0
  298. >>0x41 ubyte <2
  299. >>>0x3E ubyte >2 \b; GRand Unified Bootloader
  300. # 0x3 for 0.5.95,0.93,0.94,0.96 0x4 for 1.90
  301. >>>>0x3E ubyte x \b, stage1 version 0x%x
  302. #If it is 0xFF, use a drive passed by BIOS
  303. >>>>0x40 ubyte <0xFF \b, boot drive 0x%x
  304. # in most case 0,1,0x2e for GRUB 0.5.95
  305. >>>>0x41 ubyte >0 \b, LBA flag 0x%x
  306. >>>>0x42 uleshort <0x8000 \b, stage2 address 0x%x
  307. #>>>>0x42 uleshort =0x8000 \b, stage2 address 0x%x (usual)
  308. >>>>0x42 uleshort >0x8000 \b, stage2 address 0x%x
  309. #>>>>0x44 ulelong =1 \b, 1st sector stage2 0x%x (default)
  310. >>>>0x44 ulelong >1 \b, 1st sector stage2 0x%x
  311. >>>>0x48 uleshort <0x800 \b, stage2 segment 0x%x
  312. #>>>>0x48 uleshort =0x800 \b, stage2 segment 0x%x (usual)
  313. >>>>0x48 uleshort >0x800 \b, stage2 segment 0x%x
  314. >>>>402 string Geom\0Hard\ Disk\0Read\0\ Error\0
  315. >>>>>394 string stage1 \b, GRUB version 0.5.95
  316. >>>>382 string Geom\0Hard\ Disk\0Read\0\ Error\0
  317. >>>>>376 string GRUB\ \0 \b, GRUB version 0.93 or 1.94
  318. >>>>383 string Geom\0Hard\ Disk\0Read\0\ Error\0
  319. >>>>>377 string GRUB\ \0 \b, GRUB version 0.94
  320. >>>>385 string Geom\0Hard\ Disk\0Read\0\ Error\0
  321. >>>>>379 string GRUB\ \0 \b, GRUB version 0.95 or 0.96
  322. >>>>391 string Geom\0Hard\ Disk\0Read\0\ Error\0
  323. >>>>>385 string GRUB\ \0 \b, GRUB version 0.97
  324. #unkown version
  325. >>>343 string Geom\0Read\0\ Error\0
  326. >>>>321 string Loading\ stage1.5 \b, GRUB version x.y
  327. >>>380 string Geom\0Hard\ Disk\0Read\0\ Error\0
  328. >>>>374 string GRUB\ \0 \b, GRUB version n.m
  329. # SYSLINUX bootloader moved
  330. >395 string chksum\0\ ERROR!\0 \b, Gujin bootloader
  331. # http://www.bcdwb.de/bcdw/index_e.htm
  332. >3 string BCDL
  333. >>498 string BCDL\ \ \ \ BIN \b, Bootable CD Loader (1.50Z)
  334. # mbr partition table entries
  335. # OEM-ID does not contain MicroSoft,NEWLDR,DOS,SYSLINUX,or MTOOLs
  336. >3 string !MS
  337. >>3 string !SYSLINUX
  338. >>>3 string !MTOOL
  339. >>>>3 string !NEWLDR
  340. >>>>>5 string !DOS
  341. # not FAT (32 bit)
  342. >>>>>>82 string !FAT32
  343. #not Linux kernel
  344. >>>>>>>514 string !HdrS
  345. #not BeOS
  346. >>>>>>>>422 string !Be\ Boot\ Loader
  347. # active flag 0 or 0x80 and type > 0
  348. >>>>>>>>>446 ubyte <0x81
  349. >>>>>>>>>>446 ubyte&0x7F 0
  350. >>>>>>>>>>>450 ubyte >0 \b; partition 1: ID=0x%x
  351. >>>>>>>>>>>>446 ubyte 0x80 \b, active
  352. >>>>>>>>>>>>447 ubyte x \b, starthead %u
  353. #>>>>>>>>>>>>448 ubyte x \b, start C_S: 0x%x
  354. #>>>>>>>>>>>>448 ubeshort&1023 x \b, startcylinder? %d
  355. >>>>>>>>>>>>454 ulelong x \b, startsector %u
  356. >>>>>>>>>>>>458 ulelong x \b, %u sectors
  357. #
  358. >>>>>>>>>462 ubyte <0x81
  359. >>>>>>>>>>462 ubyte&0x7F 0
  360. >>>>>>>>>>>466 ubyte >0 \b; partition 2: ID=0x%x
  361. >>>>>>>>>>>>462 ubyte 0x80 \b, active
  362. >>>>>>>>>>>>463 ubyte x \b, starthead %u
  363. #>>>>>>>>>>>>464 ubyte x \b, start C_S: 0x%x
  364. #>>>>>>>>>>>>464 ubeshort&1023 x \b, startcylinder? %d
  365. >>>>>>>>>>>>470 ulelong x \b, startsector %u
  366. >>>>>>>>>>>>474 ulelong x \b, %u sectors
  367. #
  368. >>>>>>>>>478 ubyte <0x81
  369. >>>>>>>>>>478 ubyte&0x7F 0
  370. >>>>>>>>>>>482 ubyte >0 \b; partition 3: ID=0x%x
  371. >>>>>>>>>>>>478 ubyte 0x80 \b, active
  372. >>>>>>>>>>>>479 ubyte x \b, starthead %u
  373. #>>>>>>>>>>>>480 ubyte x \b, start C_S: 0x%x
  374. #>>>>>>>>>>>>481 ubyte x \b, start C2S: 0x%x
  375. #>>>>>>>>>>>>480 ubeshort&1023 x \b, startcylinder? %d
  376. >>>>>>>>>>>>486 ulelong x \b, startsector %u
  377. >>>>>>>>>>>>490 ulelong x \b, %u sectors
  378. #
  379. >>>>>>>>>494 ubyte <0x81
  380. >>>>>>>>>>494 ubyte&0x7F 0
  381. >>>>>>>>>>>498 ubyte >0 \b; partition 4: ID=0x%x
  382. >>>>>>>>>>>>494 ubyte 0x80 \b, active
  383. >>>>>>>>>>>>495 ubyte x \b, starthead %u
  384. #>>>>>>>>>>>>496 ubyte x \b, start C_S: 0x%x
  385. #>>>>>>>>>>>>496 ubeshort&1023 x \b, startcylinder? %d
  386. >>>>>>>>>>>>502 ulelong x \b, startsector %u
  387. >>>>>>>>>>>>506 ulelong x \b, %u sectors
  388. # mbr partition table entries end
  389. # http://www.acronis.de/
  390. #FAT label=ACRONIS\ SZ
  391. #OEM-ID=BOOTWIZ0
  392. >442 string Non-system\ disk,\
  393. >>459 string press\ any\ key...\x7\0 \b, Acronis Startup Recovery Loader
  394. # updated by Joerg Jenderek at Nov 2012
  395. # DOS names like F11.SYS or BOOTWIZ.SYS are 8 right space padded bytes+3 bytes
  396. >>>477 ubyte&0xDF >0
  397. >>>>477 string x \b %-.3s
  398. >>>>>480 ubyte&0xDF >0
  399. >>>>>>480 string x \b%-.4s
  400. >>>>>>>484 ubyte&0xDF >0
  401. >>>>>>>>484 string x \b%-.1s
  402. >>>>485 ubyte&0xDF >0
  403. >>>>>485 string x \b.%-.3s
  404. #
  405. >185 string FDBOOT\ Version\
  406. >>204 string \rNo\ Systemdisk.\
  407. >>>220 string Booting\ from\ harddisk.\n\r
  408. >>>245 string Cannot\ load\ from\ harddisk.\n\r
  409. >>>>273 string Insert\ Systemdisk\
  410. >>>>>291 string and\ press\ any\ key.\n\r \b, FDBOOT harddisk Bootloader
  411. >>>>>>200 string >\0 \b, version %-3s
  412. >242 string Bootsector\ from\ C.H.\ Hochst\204
  413. # http://freecode.com/projects/dosfstools dosfstools-n.m/src/mkdosfs.c
  414. # updated by Joerg Jenderek at Nov 2012. Use search directive with offset instead of string
  415. # skip name "C.H. Hochstaetter" partly because it is sometimes written without umlaut
  416. >242 search/127 Bootsector\ from\ C.H.\ Hochst
  417. >>278 search/127 No\ Systemdisk.\ Booting\ from\ harddisk
  418. # followed by variants with point,CR-NL or NL-CR
  419. >>>208 search/261 Cannot\ load\ from\ harddisk.
  420. # followed by variants CR-NL or NL-CR
  421. >>>>236 search/235 Insert\ Systemdisk\ and\ press\ any\ key.
  422. # followed by variants with point,CR-NL or NL-CR
  423. >>>>>180 search/96 Disk\ formatted\ with\ WinImage\ \b, WinImage harddisk Bootloader
  424. # followed by string like "6.50 (c) 1993-2004 Gilles Vollant"
  425. >>>>>>&0 string x \b, version %-4.4s
  426. >(1.b+2) ubyte 0xe
  427. >>(1.b+3) ubyte 0x1f
  428. >>>(1.b+4) ubyte 0xbe
  429. # message offset found at (1.b+5) is 0x77 for FAT32 or 0x5b for others
  430. >>>>(1.b+5) ubyte&0xd3 0x53
  431. >>>>>(1.b+6) ubyte 0x7c
  432. # assembler instructions: lodsb;and al,al;jz 0xb;push si;mov ah,
  433. >>>>>>(1.b+7) ubyte 0xac
  434. >>>>>>>(1.b+8) ubyte 0x22
  435. >>>>>>>>(1.b+9) ubyte 0xc0
  436. >>>>>>>>>(1.b+10) ubyte 0x74
  437. >>>>>>>>>>(1.b+11) ubyte 0x0b
  438. >>>>>>>>>>>(1.b+12) ubyte 0x56
  439. >>>>>>>>>>>>(1.b+13) ubyte 0xb4 \b, mkdosfs boot message display
  440. # FAT1X version
  441. >>>>>>>>>>>>>(1.b+5) ubyte 0x5b
  442. >>>>>>>>>>>>>>0x5b string >\0 "%-s"
  443. # FAT32 version
  444. >>>>>>>>>>>>>(1.b+5) ubyte 0x77
  445. >>>>>>>>>>>>>>0x77 string >\0 "%-s"
  446. >214 string Please\ try\ to\ install\ FreeDOS\ \b, DOS Emulator boot message display
  447. #>>244 string from\ dosemu-freedos-*-bin.tgz\r
  448. #>>>170 string Sorry,\ could\ not\ load\ an\
  449. #>>>>195 string operating\ system.\r\n
  450. #
  451. >103 string This\ is\ not\ a\ bootable\ disk.\
  452. >>132 string Please\ insert\ a\ bootable\
  453. >>>157 string floppy\ and\r\n
  454. >>>>169 string press\ any\ key\ to\ try\ again...\r \b, FREE-DOS message display
  455. #
  456. >66 string Solaris\ Boot\ Sector
  457. >>99 string Incomplete\ MDBoot\ load.
  458. >>>89 string Version \b, Sun Solaris Bootloader
  459. >>>>97 byte x version %c
  460. #
  461. >408 string OS/2\ !!\ SYS01475\r\0
  462. >>429 string OS/2\ !!\ SYS02025\r\0
  463. >>>450 string OS/2\ !!\ SYS02027\r\0
  464. >>>469 string OS2BOOT\ \ \ \ \b, IBM OS/2 Warp bootloader
  465. #
  466. >409 string OS/2\ !!\ SYS01475\r\0
  467. >>430 string OS/2\ !!\ SYS02025\r\0
  468. >>>451 string OS/2\ !!\ SYS02027\r\0
  469. >>>470 string OS2BOOT\ \ \ \ \b, IBM OS/2 Warp Bootloader
  470. >112 string This\ disk\ is\ not\ bootable\r
  471. >>142 string If\ you\ wish\ to\ make\ it\ bootable
  472. >>>176 string run\ the\ DOS\ program\ SYS\
  473. >>>200 string after\ the\r
  474. >>>>216 string system\ has\ been\ loaded\r\n
  475. >>>>>242 string Please\ insert\ a\ DOS\ diskette\
  476. >>>>>271 string into\r\n\ the\ drive\ and\
  477. >>>>>>292 string strike\ any\ key...\0 \b, IBM OS/2 Warp message display
  478. # XP
  479. >430 string NTLDR\ is\ missing\xFF\r\n
  480. >>449 string Disk\ error\xFF\r\n
  481. >>>462 string Press\ any\ key\ to\ restart\r \b, Microsoft Windows XP Bootloader
  482. # DOS names like NTLDR,CMLDR,$LDR$ are 8 right space padded bytes+3 bytes
  483. >>>>417 ubyte&0xDF >0
  484. >>>>>417 string x %-.5s
  485. >>>>>>422 ubyte&0xDF >0
  486. >>>>>>>422 string x \b%-.3s
  487. >>>>>425 ubyte&0xDF >0
  488. >>>>>>425 string >\ \b.%-.3s
  489. #
  490. >>>>371 ubyte >0x20
  491. >>>>>368 ubyte&0xDF >0
  492. >>>>>>368 string x %-.5s
  493. >>>>>>>373 ubyte&0xDF >0
  494. >>>>>>>>373 string x \b%-.3s
  495. >>>>>>376 ubyte&0xDF >0
  496. >>>>>>>376 string x \b.%-.3s
  497. #
  498. >430 string NTLDR\ nicht\ gefunden\xFF\r\n
  499. >>453 string Datentr\204gerfehler\xFF\r\n
  500. >>>473 string Neustart\ mit\ beliebiger\ Taste\r \b, Microsoft Windows XP Bootloader (german)
  501. >>>>417 ubyte&0xDF >0
  502. >>>>>417 string x %-.5s
  503. >>>>>>422 ubyte&0xDF >0
  504. >>>>>>>422 string x \b%-.3s
  505. >>>>>425 ubyte&0xDF >0
  506. >>>>>>425 string >\ \b.%-.3s
  507. # offset variant
  508. >>>>379 string \0
  509. >>>>>368 ubyte&0xDF >0
  510. >>>>>>368 string x %-.5s
  511. >>>>>>>373 ubyte&0xDF >0
  512. >>>>>>>>373 string x \b%-.3s
  513. #
  514. >430 string NTLDR\ fehlt\xFF\r\n
  515. >>444 string Datentr\204gerfehler\xFF\r\n
  516. >>>464 string Neustart\ mit\ beliebiger\ Taste\r \b, Microsoft Windows XP Bootloader (2.german)
  517. >>>>417 ubyte&0xDF >0
  518. >>>>>417 string x %-.5s
  519. >>>>>>422 ubyte&0xDF >0
  520. >>>>>>>422 string x \b%-.3s
  521. >>>>>425 ubyte&0xDF >0
  522. >>>>>>425 string >\ \b.%-.3s
  523. # variant
  524. >>>>371 ubyte >0x20
  525. >>>>>368 ubyte&0xDF >0
  526. >>>>>>368 string x %-.5s
  527. >>>>>>>373 ubyte&0xDF >0
  528. >>>>>>>>373 string x \b%-.3s
  529. >>>>>>376 ubyte&0xDF >0
  530. >>>>>>>376 string x \b.%-.3s
  531. #
  532. >430 string NTLDR\ fehlt\xFF\r\n
  533. >>444 string Medienfehler\xFF\r\n
  534. >>>459 string Neustart:\ Taste\ dr\201cken\r \b, Microsoft Windows XP Bootloader (3.german)
  535. >>>>371 ubyte >0x20
  536. >>>>>368 ubyte&0xDF >0
  537. >>>>>>368 string x %-.5s
  538. >>>>>>>373 ubyte&0xDF >0
  539. >>>>>>>>373 string x \b%-.3s
  540. >>>>>>376 ubyte&0xDF >0
  541. >>>>>>>376 string x \b.%-.3s
  542. # variant
  543. >>>>417 ubyte&0xDF >0
  544. >>>>>417 string x %-.5s
  545. >>>>>>422 ubyte&0xDF >0
  546. >>>>>>>422 string x \b%-.3s
  547. >>>>>425 ubyte&0xDF >0
  548. >>>>>>425 string >\ \b.%-.3s
  549. #
  550. >430 string Datentr\204ger\ entfernen\xFF\r\n
  551. >>454 string Medienfehler\xFF\r\n
  552. >>>469 string Neustart:\ Taste\ dr\201cken\r \b, Microsoft Windows XP Bootloader (4.german)
  553. >>>>379 string \0
  554. >>>>>368 ubyte&0xDF >0
  555. >>>>>>368 string x %-.5s
  556. >>>>>>>373 ubyte&0xDF >0
  557. >>>>>>>>373 string x \b%-.3s
  558. >>>>>>376 ubyte&0xDF >0
  559. >>>>>>>376 string x \b.%-.3s
  560. # variant
  561. >>>>417 ubyte&0xDF >0
  562. >>>>>417 string x %-.5s
  563. >>>>>>422 ubyte&0xDF >0
  564. >>>>>>>422 string x \b%-.3s
  565. >>>>>425 ubyte&0xDF >0
  566. >>>>>>425 string >\ \b.%-.3s
  567. #
  568. #>3 string NTFS\ \ \ \
  569. >389 string Fehler\ beim\ Lesen\
  570. >>407 string des\ Datentr\204gers
  571. >>>426 string NTLDR\ fehlt
  572. >>>>440 string NTLDR\ ist\ komprimiert
  573. >>>>>464 string Neustart\ mit\ Strg+Alt+Entf\r \b, Microsoft Windows XP Bootloader NTFS (german)
  574. #>3 string NTFS\ \ \ \
  575. >313 string A\ disk\ read\ error\ occurred.\r
  576. >>345 string A\ kernel\ file\ is\ missing\
  577. >>>370 string from\ the\ disk.\r
  578. >>>>484 string NTLDR\ is\ compressed
  579. >>>>>429 string Insert\ a\ system\ diskette\
  580. >>>>>>454 string and\ restart\r\nthe\ system.\r \b, Microsoft Windows XP Bootloader NTFS
  581. # DOS loader variants different languages,offsets
  582. >472 ubyte&0xDF >0
  583. >>389 string Invalid\ system\ disk\xFF\r\n
  584. >>>411 string Disk\ I/O\ error
  585. >>>>428 string Replace\ the\ disk,\ and\
  586. >>>>>455 string press\ any\ key \b, Microsoft Windows 98 Bootloader
  587. #IO.SYS
  588. >>>>>>472 ubyte&0xDF >0
  589. >>>>>>>472 string x \b %-.2s
  590. >>>>>>>>474 ubyte&0xDF >0
  591. >>>>>>>>>474 string x \b%-.5s
  592. >>>>>>>>>>479 ubyte&0xDF >0
  593. >>>>>>>>>>>479 string x \b%-.1s
  594. >>>>>>>480 ubyte&0xDF >0
  595. >>>>>>>>480 string x \b.%-.3s
  596. #MSDOS.SYS
  597. >>>>>>>483 ubyte&0xDF >0 \b+
  598. >>>>>>>>483 string x \b%-.5s
  599. >>>>>>>>>488 ubyte&0xDF >0
  600. >>>>>>>>>>488 string x \b%-.3s
  601. >>>>>>>>491 ubyte&0xDF >0
  602. >>>>>>>>>491 string x \b.%-.3s
  603. #
  604. >>390 string Invalid\ system\ disk\xFF\r\n
  605. >>>412 string Disk\ I/O\ error\xFF\r\n
  606. >>>>429 string Replace\ the\ disk,\ and\
  607. >>>>>451 string then\ press\ any\ key\r \b, Microsoft Windows 98 Bootloader
  608. >>388 string Ungueltiges\ System\ \xFF\r\n
  609. >>>410 string E/A-Fehler\ \ \ \ \xFF\r\n
  610. >>>>427 string Datentraeger\ wechseln\ und\
  611. >>>>>453 string Taste\ druecken\r \b, Microsoft Windows 95/98/ME Bootloader (german)
  612. #WINBOOT.SYS only not spaces (0xDF)
  613. >>>>>>497 ubyte&0xDF >0
  614. >>>>>>>497 string x %-.5s
  615. >>>>>>>>502 ubyte&0xDF >0
  616. >>>>>>>>>502 string x \b%-.1s
  617. >>>>>>>>>>503 ubyte&0xDF >0
  618. >>>>>>>>>>>503 string x \b%-.1s
  619. >>>>>>>>>>>>504 ubyte&0xDF >0
  620. >>>>>>>>>>>>>504 string x \b%-.1s
  621. >>>>>>505 ubyte&0xDF >0
  622. >>>>>>>505 string x \b.%-.3s
  623. #IO.SYS
  624. >>>>>>472 ubyte&0xDF >0 or
  625. >>>>>>>472 string x \b %-.2s
  626. >>>>>>>>474 ubyte&0xDF >0
  627. >>>>>>>>>474 string x \b%-.5s
  628. >>>>>>>>>>479 ubyte&0xDF >0
  629. >>>>>>>>>>>479 string x \b%-.1s
  630. >>>>>>>480 ubyte&0xDF >0
  631. >>>>>>>>480 string x \b.%-.3s
  632. #MSDOS.SYS
  633. >>>>>>>483 ubyte&0xDF >0 \b+
  634. >>>>>>>>483 string x \b%-.5s
  635. >>>>>>>>>488 ubyte&0xDF >0
  636. >>>>>>>>>>488 string x \b%-.3s
  637. >>>>>>>>491 ubyte&0xDF >0
  638. >>>>>>>>>491 string x \b.%-.3s
  639. #
  640. >>390 string Ungueltiges\ System\ \xFF\r\n
  641. >>>412 string E/A-Fehler\ \ \ \ \xFF\r\n
  642. >>>>429 string Datentraeger\ wechseln\ und\
  643. >>>>>455 string Taste\ druecken\r \b, Microsoft Windows 95/98/ME Bootloader (German)
  644. #WINBOOT.SYS only not spaces (0xDF)
  645. >>>>>>497 ubyte&0xDF >0
  646. >>>>>>>497 string x %-.7s
  647. >>>>>>>>504 ubyte&0xDF >0
  648. >>>>>>>>>504 string x \b%-.1s
  649. >>>>>>505 ubyte&0xDF >0
  650. >>>>>>>505 string x \b.%-.3s
  651. #IO.SYS
  652. >>>>>>472 ubyte&0xDF >0 or
  653. >>>>>>>472 string x \b %-.2s
  654. >>>>>>>>474 ubyte&0xDF >0
  655. >>>>>>>>>474 string x \b%-.6s
  656. >>>>>>>480 ubyte&0xDF >0
  657. >>>>>>>>480 string x \b.%-.3s
  658. #MSDOS.SYS
  659. >>>>>>>483 ubyte&0xDF >0 \b+
  660. >>>>>>>>483 string x \b%-.5s
  661. >>>>>>>>>488 ubyte&0xDF >0
  662. >>>>>>>>>>488 string x \b%-.3s
  663. >>>>>>>>491 ubyte&0xDF >0
  664. >>>>>>>>>491 string x \b.%-.3s
  665. #
  666. >>389 string Ungueltiges\ System\ \xFF\r\n
  667. >>>411 string E/A-Fehler\ \ \ \ \xFF\r\n
  668. >>>>428 string Datentraeger\ wechseln\ und\
  669. >>>>>454 string Taste\ druecken\r \b, Microsoft Windows 95/98/ME Bootloader (GERMAN)
  670. # DOS names like IO.SYS,WINBOOT.SYS,MSDOS.SYS,WINBOOT.INI are 8 right space padded bytes+3 bytes
  671. >>>>>>472 string x %-.2s
  672. >>>>>>>474 ubyte&0xDF >0
  673. >>>>>>>>474 string x \b%-.5s
  674. >>>>>>>>479 ubyte&0xDF >0
  675. >>>>>>>>>479 string x \b%-.1s
  676. >>>>>>480 ubyte&0xDF >0
  677. >>>>>>>480 string x \b.%-.3s
  678. >>>>>>483 ubyte&0xDF >0 \b+
  679. >>>>>>>483 string x \b%-.5s
  680. >>>>>>>488 ubyte&0xDF >0
  681. >>>>>>>>488 string x \b%-.2s
  682. >>>>>>>>490 ubyte&0xDF >0
  683. >>>>>>>>>490 string x \b%-.1s
  684. >>>>>>>491 ubyte&0xDF >0
  685. >>>>>>>>491 string x \b.%-.3s
  686. >479 ubyte&0xDF >0
  687. >>416 string Kein\ System\ oder\
  688. >>>433 string Laufwerksfehler
  689. >>>>450 string Wechseln\ und\ Taste\ dr\201cken \b, Microsoft DOS Bootloader (german)
  690. #IO.SYS
  691. >>>>>479 string x \b %-.2s
  692. >>>>>>481 ubyte&0xDF >0
  693. >>>>>>>481 string x \b%-.6s
  694. >>>>>487 ubyte&0xDF >0
  695. >>>>>>487 string x \b.%-.3s
  696. #MSDOS.SYS
  697. >>>>>>490 ubyte&0xDF >0 \b+
  698. >>>>>>>490 string x \b%-.5s
  699. >>>>>>>>495 ubyte&0xDF >0
  700. >>>>>>>>>495 string x \b%-.3s
  701. >>>>>>>498 ubyte&0xDF >0
  702. >>>>>>>>498 string x \b.%-.3s
  703. #
  704. >376 search/41 Non-System\ disk\ or\
  705. >>395 search/41 disk\ error\r
  706. >>>407 search/41 Replace\ and\
  707. >>>>419 search/41 press\ \b,
  708. >>>>419 search/41 strike\ \b, old
  709. >>>>426 search/41 any\ key\ when\ ready\r MS or PC-DOS bootloader
  710. #449 Disk\ Boot\ failure\r MS 3.21
  711. #466 Boot\ Failure\r MS 3.30
  712. >>>>>468 search/18 \0
  713. #IO.SYS,IBMBIO.COM
  714. >>>>>>&0 string x \b %-.2s
  715. >>>>>>>&-20 ubyte&0xDF >0
  716. >>>>>>>>&-1 string x \b%-.4s
  717. >>>>>>>>>&-16 ubyte&0xDF >0
  718. >>>>>>>>>>&-1 string x \b%-.2s
  719. >>>>>>&8 ubyte&0xDF >0 \b.
  720. >>>>>>>&-1 string x \b%-.3s
  721. #MSDOS.SYS,IBMDOS.COM
  722. >>>>>>&11 ubyte&0xDF >0 \b+
  723. >>>>>>>&-1 string x \b%-.5s
  724. >>>>>>>>&-6 ubyte&0xDF >0
  725. >>>>>>>>>&-1 string x \b%-.1s
  726. >>>>>>>>>>&-5 ubyte&0xDF >0
  727. >>>>>>>>>>>&-1 string x \b%-.2s
  728. >>>>>>>&7 ubyte&0xDF >0 \b.
  729. >>>>>>>>&-1 string x \b%-.3s
  730. >441 string Cannot\ load\ from\ harddisk.\n\r
  731. >>469 string Insert\ Systemdisk\
  732. >>>487 string and\ press\ any\ key.\n\r \b, MS (2.11) DOS bootloader
  733. #>43 string \224R-LOADER\ \ SYS =label
  734. >54 string SYS
  735. >>324 string VASKK
  736. >>>495 string NEWLDR\0 \b, DR-DOS Bootloader (LOADER.SYS)
  737. #
  738. >98 string Press\ a\ key\ to\ retry\0\r
  739. >>120 string Cannot\ find\ file\ \0\r
  740. >>>139 string Disk\ read\ error\0\r
  741. >>>>156 string Loading\ ...\0 \b, DR-DOS (3.41) Bootloader
  742. #DRBIOS.SYS
  743. >>>>>44 ubyte&0xDF >0
  744. >>>>>>44 string x \b %-.6s
  745. >>>>>>>50 ubyte&0xDF >0
  746. >>>>>>>>50 string x \b%-.2s
  747. >>>>>>52 ubyte&0xDF >0
  748. >>>>>>>52 string x \b.%-.3s
  749. #
  750. >70 string IBMBIO\ \ COM
  751. >>472 string Cannot\ load\ DOS!\
  752. >>>489 string Any\ key\ to\ retry \b, DR-DOS Bootloader
  753. >>471 string Cannot\ load\ DOS\
  754. >>487 string press\ key\ to\ retry \b, Open-DOS Bootloader
  755. #??
  756. >444 string KERNEL\ \ SYS
  757. >>314 string BOOT\ error! \b, FREE-DOS Bootloader
  758. >499 string KERNEL\ \ SYS
  759. >>305 string BOOT\ err!\0 \b, Free-DOS Bootloader
  760. >449 string KERNEL\ \ SYS
  761. >>319 string BOOT\ error! \b, FREE-DOS 0.5 Bootloader
  762. #
  763. >449 string Loading\ FreeDOS
  764. >>0x1AF ulelong >0 \b, FREE-DOS 0.95,1.0 Bootloader
  765. >>>497 ubyte&0xDF >0
  766. >>>>497 string x \b %-.6s
  767. >>>>>503 ubyte&0xDF >0
  768. >>>>>>503 string x \b%-.1s
  769. >>>>>>>504 ubyte&0xDF >0
  770. >>>>>>>>504 string x \b%-.1s
  771. >>>>505 ubyte&0xDF >0
  772. >>>>>505 string x \b.%-.3s
  773. #
  774. >331 string Error!.0 \b, FREE-DOS 1.0 bootloader
  775. #
  776. >125 string Loading\ FreeDOS...\r
  777. >>311 string BOOT\ error!\r \b, FREE-DOS bootloader
  778. >>>441 ubyte&0xDF >0
  779. >>>>441 string x \b %-.6s
  780. >>>>>447 ubyte&0xDF >0
  781. >>>>>>447 string x \b%-.1s
  782. >>>>>>>448 ubyte&0xDF >0
  783. >>>>>>>>448 string x \b%-.1s
  784. >>>>449 ubyte&0xDF >0
  785. >>>>>449 string x \b.%-.3s
  786. >124 string FreeDOS\0
  787. >>331 string \ err\0 \b, FREE-DOS BETa 0.9 Bootloader
  788. # DOS names like KERNEL.SYS,KERNEL16.SYS,KERNEL32.SYS,METAKERN.SYS are 8 right space padded bytes+3 bytes
  789. >>>497 ubyte&0xDF >0
  790. >>>>497 string x \b %-.6s
  791. >>>>>503 ubyte&0xDF >0
  792. >>>>>>503 string x \b%-.1s
  793. >>>>>>>504 ubyte&0xDF >0
  794. >>>>>>>>504 string x \b%-.1s
  795. >>>>505 ubyte&0xDF >0
  796. >>>>>505 string x \b.%-.3s
  797. >>333 string \ err\0 \b, FREE-DOS BEta 0.9 Bootloader
  798. >>>497 ubyte&0xDF >0
  799. >>>>497 string x \b %-.6s
  800. >>>>>503 ubyte&0xDF >0
  801. >>>>>>503 string x \b%-.1s
  802. >>>>>>>504 ubyte&0xDF >0
  803. >>>>>>>>504 string x \b%-.1s
  804. >>>>505 ubyte&0xDF >0
  805. >>>>>505 string x \b.%-.3s
  806. >>334 string \ err\0 \b, FREE-DOS Beta 0.9 Bootloader
  807. >>>497 ubyte&0xDF >0
  808. >>>>497 string x \b %-.6s
  809. >>>>>503 ubyte&0xDF >0
  810. >>>>>>503 string x \b%-.1s
  811. >>>>>>>504 ubyte&0xDF >0
  812. >>>>>>>>504 string x \b%-.1s
  813. >>>>505 ubyte&0xDF >0
  814. >>>>>505 string x \b.%-.3s
  815. >336 string Error!\
  816. >>343 string Hit\ a\ key\ to\ reboot. \b, FREE-DOS Beta 0.9sr1 Bootloader
  817. >>>497 ubyte&0xDF >0
  818. >>>>497 string x \b %-.6s
  819. >>>>>503 ubyte&0xDF >0
  820. >>>>>>503 string x \b%-.1s
  821. >>>>>>>504 ubyte&0xDF >0
  822. >>>>>>>>504 string x \b%-.1s
  823. >>>>505 ubyte&0xDF >0
  824. >>>>>505 string x \b.%-.3s
  825. # added by Joerg Jenderek
  826. # http://www.visopsys.org/
  827. # http://partitionlogic.org.uk/
  828. # OEM-ID=Visopsys
  829. >478 ulelong 0
  830. >>(1.b+326) string I/O\ Error\ reading\
  831. >>>(1.b+344) string Visopsys\ loader\r
  832. >>>>(1.b+361) string Press\ any\ key\ to\ continue.\r \b, Visopsys loader
  833. # http://alexfru.chat.ru/epm.html#bootprog
  834. >494 ubyte >0x4D
  835. >>495 string >E
  836. >>>495 string <S
  837. #OEM-ID is not reliable
  838. >>>>3 string BootProg
  839. # It just looks for a program file name at the root directory
  840. # and loads corresponding file with following execution.
  841. # DOS names like STARTUP.BIN,STARTUPC.COM,STARTUPE.EXE are 8 right space padded bytes+3 bytes
  842. >>>>499 ubyte&0xDF >0 \b, COM/EXE Bootloader
  843. >>>>>499 string x \b %-.1s
  844. >>>>>>500 ubyte&0xDF >0
  845. >>>>>>>500 string x \b%-.1s
  846. >>>>>>>>501 ubyte&0xDF >0
  847. >>>>>>>>>501 string x \b%-.1s
  848. >>>>>>>>>>502 ubyte&0xDF >0
  849. >>>>>>>>>>>502 string x \b%-.1s
  850. >>>>>>>>>>>>503 ubyte&0xDF >0
  851. >>>>>>>>>>>>>503 string x \b%-.1s
  852. >>>>>>>>>>>>>>504 ubyte&0xDF >0
  853. >>>>>>>>>>>>>>>504 string x \b%-.1s
  854. >>>>>>>>>>>>>>>>505 ubyte&0xDF >0
  855. >>>>>>>>>>>>>>>>>505 string x \b%-.1s
  856. >>>>>>>>>>>>>>>>>>506 ubyte&0xDF >0
  857. >>>>>>>>>>>>>>>>>>>506 string x \b%-.1s
  858. #name extension
  859. >>>>>507 ubyte&0xDF >0 \b.
  860. >>>>>>507 string x \b%-.1s
  861. >>>>>>>508 ubyte&0xDF >0
  862. >>>>>>>>508 string x \b%-.1s
  863. >>>>>>>>>509 ubyte&0xDF >0
  864. >>>>>>>>>>509 string x \b%-.1s
  865. #If the boot sector fails to read any other sector,
  866. #it prints a very short message ("RE") to the screen and hangs the computer.
  867. #If the boot sector fails to find needed program in the root directory,
  868. #it also hangs with another message ("NF").
  869. >>>>>492 string RENF \b, FAT (12 bit)
  870. >>>>>495 string RENF \b, FAT (16 bit)
  871. # http://alexfru.chat.ru/epm.html#bootprog
  872. >494 ubyte >0x4D
  873. >>495 string >E
  874. >>>495 string <S
  875. #OEM-ID is not reliable
  876. >>>>3 string BootProg
  877. # It just looks for a program file name at the root directory
  878. # and loads corresponding file with following execution.
  879. # DOS names like STARTUP.BIN,STARTUPC.COM,STARTUPE.EXE are 8 right space padded bytes+3 bytes
  880. >>>>499 ubyte&0xDF >0 \b, COM/EXE Bootloader
  881. >>>>>499 string x \b %-.1s
  882. >>>>>>500 ubyte&0xDF >0
  883. >>>>>>>500 string x \b%-.1s
  884. >>>>>>>>501 ubyte&0xDF >0
  885. >>>>>>>>>501 string x \b%-.1s
  886. >>>>>>>>>>502 ubyte&0xDF >0
  887. >>>>>>>>>>>502 string x \b%-.1s
  888. >>>>>>>>>>>>503 ubyte&0xDF >0
  889. >>>>>>>>>>>>>503 string x \b%-.1s
  890. >>>>>>>>>>>>>>504 ubyte&0xDF >0
  891. >>>>>>>>>>>>>>>504 string x \b%-.1s
  892. >>>>>>>>>>>>>>>>505 ubyte&0xDF >0
  893. >>>>>>>>>>>>>>>>>505 string x \b%-.1s
  894. >>>>>>>>>>>>>>>>>>506 ubyte&0xDF >0
  895. >>>>>>>>>>>>>>>>>>>506 string x \b%-.1s
  896. #name extension
  897. >>>>>507 ubyte&0xDF >0 \b.
  898. >>>>>>507 string x \b%-.1s
  899. >>>>>>>508 ubyte&0xDF >0
  900. >>>>>>>>508 string x \b%-.1s
  901. >>>>>>>>>509 ubyte&0xDF >0
  902. >>>>>>>>>>509 string x \b%-.1s
  903. #If the boot sector fails to read any other sector,
  904. #it prints a very short message ("RE") to the screen and hangs the computer.
  905. #If the boot sector fails to find needed program in the root directory,
  906. #it also hangs with another message ("NF").
  907. >>>>>492 string RENF \b, FAT (12 bit)
  908. >>>>>495 string RENF \b, FAT (16 bit)
  909. # x86 bootloader end
  910. # added by Joerg Jenderek at Feb 2013 according to http://thestarman.pcministry.com/asm/mbr/MSWIN41.htm#FSINFO
  911. # and http://en.wikipedia.org/wiki/File_Allocation_Table#FS_Information_Sector
  912. >0 string RRaA
  913. >>0x1E4 string rrAa \b, FSInfosector
  914. #>>0x1FC uleshort =0 SHOULD BE ZERO
  915. >>>0x1E8 ulelong <0xffffffff \b, %u free clusters
  916. >>>0x1EC ulelong <0xffffffff \b, last allocated cluster %u
  917. # added by Joerg Jenderek at Nov 2012
  918. # http://www.thenakedpc.com/articles/v04/08/0408-05.html
  919. # Symantec (Peter Norton) Image.dat file consists of variable header, bootrecord, part of FAT and root directory data
  920. 0 string PNCIHISK\0 Norton Utilities disc image data
  921. # real x86 boot sector with jump instruction
  922. >509 search/1026 \x55\xAA\xeb
  923. >>&-1 indirect x \b; contains
  924. # http://file-extension.net/seeker/file_extension_dat
  925. 0 string PNCIUNDO Norton Disk Doctor UnDo file
  926. #
  927. # updated by Joerg Jenderek at Sep 2007
  928. >3 ubyte 0
  929. #no active flag
  930. >>446 ubyte 0
  931. # partition 1 not empty
  932. >>>450 ubyte >0
  933. # partitions 3,4 empty
  934. >>>>482 ubyte 0
  935. >>>>>498 ubyte 0
  936. # partition 2 ID=0,5,15
  937. >>>>>>466 ubyte <0x10
  938. >>>>>>>466 ubyte 0x05 \b, extended partition table
  939. >>>>>>>466 ubyte 0x0F \b, extended partition table (LBA)
  940. >>>>>>>466 ubyte 0x0 \b, extended partition table (last)
  941. # DOS x86 sector separated and moved from "x86 boot sector" by Joerg Jenderek at May 2011
  942. >0x200 lelong 0x82564557 \b, BSD disklabel
  943. # FATX
  944. 0 string FATX FATX filesystem data
  945. # romfs filesystems - Juan Cespedes <cespedes@debian.org>
  946. 0 string -rom1fs- romfs filesystem, version 1
  947. >8 belong x %d bytes,
  948. >16 string x named %s.
  949. # netboot image - Juan Cespedes <cespedes@debian.org>
  950. 0 lelong 0x1b031336L Netboot image,
  951. >4 lelong&0xFFFFFF00 0
  952. >>4 lelong&0x100 0x000 mode 2
  953. >>4 lelong&0x100 0x100 mode 3
  954. >4 lelong&0xFFFFFF00 !0 unknown mode
  955. 0x18b string OS/2 OS/2 Boot Manager
  956. # updated by Joerg Jenderek at Oct 2008 and Sep 2012
  957. # http://syslinux.zytor.com/iso.php
  958. # tested with versions 1.47,1.48,1.49,1.50,1.62,1.76,2.00,2.10;3.00,3.11,3.31,;3.70,3.71,3.73,3.75,3.80,3.82,3.84,3.86,4.01,4.03 and 4.05
  959. # assembler instructions: cli;jmp 0:7Cyy (yy=0x40,0x5e,0x6c,0x6e,0x77);nop;nop
  960. 0 ulequad&0x909000007cc0eafa 0x909000007c40eafa
  961. >631 search/689 ISOLINUX\ isolinux Loader
  962. >>&0 string x (version %-4.4s)
  963. # http://syslinux.zytor.com/pxe.php
  964. # assembler instructions: jmp 7C05
  965. 0 ulelong 0x007c05ea pxelinux loader (version 2.13 or older)
  966. # assembler instructions: pushfd;pushad
  967. 0 ulelong 0x60669c66 pxelinux loader
  968. # assembler instructions: jmp 05
  969. 0 ulelong 0xc00005ea pxelinux loader (version 3.70 or newer)
  970. # http://syslinux.zytor.com/wiki/index.php/SYSLINUX
  971. 0 string LDLINUX\ SYS\ SYSLINUX loader
  972. >12 string x (older version %-4.4s)
  973. 0 string \r\nSYSLINUX\ SYSLINUX loader
  974. >11 string x (version %-4.4s)
  975. # syslinux updated and separated from "x86 boot sector" by Joerg Jenderek at Sep 2012
  976. # assembler instructions: jmp yy (yy=0x3c,0x58);nop;"SYSLINUX"
  977. 0 ulelong&0x80909bEB 0x009018EB
  978. # OEM-ID not always "SYSLINUX"
  979. >434 search/47 Boot\ failed
  980. # followed by \r\n\0 or :\
  981. >>482 search/132 \0LDLINUX\ SYS Syslinux bootloader (version 2.13 or older)
  982. >>1 ubyte 0x58 Syslinux bootloader (version 3.0-3.9)
  983. >459 search/30 Boot\ error\r\n\0
  984. >>1 ubyte 0x58 Syslinux bootloader (version 3.10 or newer)
  985. # SYSLINUX MBR updated and separated from "x86 boot sector" by Joerg Jenderek at Sep 2012
  986. # assembler instructions: mov di,0600h;mov cx,0100h
  987. 16 search/4 \xbf\x00\x06\xb9\x00\x01
  988. # to display SYSLINUX MBR (36) before old x86 boot sector one with partition table (strength=50+21)
  989. !:strength +36
  990. >94 search/249 Missing\ operating\ system
  991. # followed by \r for versions older 3.35 , .\r for versions newer 3.52 and point for other
  992. # skip Ranish MBR
  993. >>408 search/4 HD1/\0
  994. >>408 default x
  995. >>>250 search/118 \0Operating\ system\ load SYSLINUX MBR
  996. # followed by "ing " or space
  997. >>>>292 search/98 error
  998. >>>>>&0 string \r (version 3.35 or older)
  999. >>>>>&0 string .\r (version 3.52 or newer)
  1000. >>>>>&0 default x (version 3.36-3.51 )
  1001. >368 search/106 \0Disk\ error\ on\ boot\r\n SYSLINUX GPT-MBR
  1002. >>156 search/10 \0Boot\ partition\ not\ found\r\n
  1003. >>>270 search/10 \0OS\ not\ bootable\r\n (version 3.86 or older)
  1004. >>174 search/10 \0Missing\ OS\r\n
  1005. >>>189 search/10 \0Multiple\ active\ partitions\r\n (version 4.00 or newer)
  1006. # SYSLINUX END
  1007. # NetBSD mbr variants (master-boot-code version 1.22) added by Joerg Jenderek at Nov 2012
  1008. # assembler instructions: xor ax,ax;mov ax,ss;mov sp,0x7c00;mov ax,
  1009. 0 ubequad 0x31c08ed0bc007c8e
  1010. # mbr_bootsel magic before partition table not reliable with small ipl fragments
  1011. #>444 uleshort 0xb5e1
  1012. >0004 uleshort x
  1013. # ERRorTeXT
  1014. >>181 search/166 Error\ \0\r\n NetBSD mbr
  1015. # NT Drive Serial Number http://thestarman.pcministry.com/asm/mbr/Win2kmbr.htm#DS
  1016. >>>0x1B8 ubelong >0 \b,Serial 0x%-.8x
  1017. # BOOTSEL definitions contains assembler instructions: int 0x13;pop dx;push dx;push dx
  1018. >>>0xbb search/71 \xcd\x13\x5a\x52\x52 \b,bootselector
  1019. # BOOT_EXTENDED definitions contains assembler instructions:
  1020. # xchg ecx,edx;addl ecx,edx;movw lba_info,si;movb 0x42,ah;pop dx;push dx;int 0x13
  1021. >>>0x96 search/1 \x66\x87\xca\x66\x01\xca\x66\x89\x16\x3a\x07\xbe\x32\x07\xb4\x42\x5a\x52\xcd\x13 \b,boot extended
  1022. # COM_PORT_VAL definitions contains assembler instructions: outb al,dx;add 5,dl;inb %dx;test 0x40,al
  1023. >>>0x130 search/55 \xee\x80\xc2\x05\xec\xa8\x40 \b,serial IO
  1024. # not TERSE_ERROR
  1025. >>>196 search/106 No\ active\ partition\0
  1026. >>>>&0 string Disk\ read\ error\0
  1027. >>>>>&0 string No\ operating\ system\0 \b,verbose
  1028. # not NO_CHS definitions contains assembler instructions: pop dx;push dx;movb $8,ah;int0x13
  1029. >>>0x7d search/7 \x5a\x52\xb4\x08\xcd\x13 \b,CHS
  1030. # not NO_LBA_CHECK definitions contains assembler instructions: movw 0x55aa,bx;movb 0x41,ah;pop dx;push dx;int 0x13
  1031. >>>0xa4 search/84 \xbb\xaa\x55\xb4\x41\x5a\x52\xcd\x13 \b,LBA-check
  1032. # assembler instructions: movw nametab,bx
  1033. >>>0x26 search/21 \xBB\x94\x07
  1034. # not NO_BANNER definitions contains assembler instructions: mov banner,si;call message_crlf
  1035. >>>>&-9 ubequad&0xBE00f0E800febb94 0xBE0000E80000bb94
  1036. >>>>>181 search/166 Error\ \0
  1037. # "a: disk" , "Fn: diskn" or "NetBSD MBR boot"
  1038. >>>>>>&3 string x \b,"%s"
  1039. # Andrea Mazzoleni AdvanceCD mbr loader of http://advancemame.sourceforge.net/boot-readme.html
  1040. # added by Joerg Jenderek at Nov 2012 for versions 1.3 - 1.4
  1041. # assembler instructions: jmp short 0x58;nop;ASCII
  1042. 0 ubequad&0xeb58908000000000 0xeb58900000000000
  1043. # assembler instructions: cli;xor ax,ax;mov ds,ax;mov es,ax;mov ss,
  1044. >(1.b+2) ubequad 0xfa31c08ed88ec08e
  1045. # Error messages at end of code
  1046. >>376 string No\ operating\ system\r\n\0
  1047. >>>398 string Disk\ error\r\n\0FDD\0HDD\0
  1048. >>>>419 string \ EBIOS\r\n\0 AdvanceMAME mbr
  1049. # Neil Turton mbr loader variant of http://www.chiark.greenend.org.uk/~neilt/mbr/
  1050. # added by Joerg Jenderek at Mar 2011 for versions 1.0.0 - 1.1.11
  1051. # for 1st version assembler instructions: cld;xor ax,ax;mov DS,ax;MOV ES,AX;mov SI,
  1052. # or cld;xor ax,ax;mov SS,ax;XOR SP,SP;mov DS,
  1053. 0 ulequad&0xcE1b40D48EC031FC 0x8E0000D08EC031FC
  1054. # pointer to the data starting with Neil Turton signature string
  1055. >(0x1BC.s) string NDTmbr
  1056. >>&-14 string 1234F\0 Turton mbr (
  1057. # parameters also viewed by install-mbr --list
  1058. >>>(0x1BC.s+7) ubyte x \b%u<=
  1059. >>>(0x1BC.s+9) ubyte x \bVersion<=%u
  1060. #>>>(0x1BC.s+8) ubyte x asm_flag_%x
  1061. >>>(0x1BC.s+8) ubyte&1 1 \b,Y2K-Fix
  1062. # variant used by testdisk of http://www.cgsecurity.org/wiki/Menu_MBRCode
  1063. >>>(0x1BC.s+8) ubyte&2 2 \b,TestDisk
  1064. #0x1~1,..,0x8~4,0x10~F,0x80~A enabled
  1065. #>>>(0x1BC.s+10) ubyte x \b,flags 0x%x
  1066. #0x0~1,0x1~2,...,0x3~4,0x4~F,0x7~D default boot
  1067. #>>>(0x1BC.s+11) ubyte x \b,cfg_def 0x%x
  1068. # for older versions
  1069. >>>(0x1BC.s+9) ubyte <2
  1070. #>>>>(0x1BC.s+12) ubyte 18 \b,%u/18 seconds
  1071. >>>>(0x1BC.s+12) ubyte !18 \b,%u/18 seconds
  1072. # floppy A: or B:
  1073. >>>>(0x1BC.s+13) ubyte <2 \b,floppy 0x%x
  1074. >>>>(0x1BC.s+13) ubyte >1
  1075. # 1st hard disc
  1076. #>>>>>(0x1BC.s+13) ubyte 0x80 \b,drive 0x%x
  1077. # not 1st hard disc
  1078. >>>>>(0x1BC.s+13) ubyte !0x80 \b,drive 0x%x
  1079. # for version >= 2 maximal timeout can be 65534
  1080. >>>(0x1BC.s+9) ubyte >1
  1081. #>>>>(0x1BC.s+12) uleshort 18 \b,%u/18 seconds
  1082. >>>>(0x1BC.s+12) uleshort !18 \b,%u/18 seconds
  1083. # floppy A: or B:
  1084. >>>>(0x1BC.s+14) ubyte <2 \b,floppy 0x%x
  1085. >>>>(0x1BC.s+14) ubyte >1
  1086. # 1st hard disc
  1087. #>>>>>(0x1BC.s+14) ubyte 0x80 \b,drive 0x%x
  1088. # not 1st hard disc
  1089. >>>>>(0x1BC.s+14) ubyte !0x80 \b,drive 0x%x
  1090. >>>0 ubyte x \b)
  1091. # added by Joerg Jenderek
  1092. # In the second sector (+0x200) are variables according to grub-0.97/stage2/asm.S or
  1093. # grub-1.94/kern/i386/pc/startup.S
  1094. # http://www.gnu.org/software/grub/manual/grub.html#Embedded-data
  1095. # usual values are marked with comments to get only informations of strange GRUB loaders
  1096. 0x200 uleshort 0x70EA
  1097. # found only version 3.{1,2}
  1098. >0x206 ubeshort >0x0300
  1099. # GRUB version (0.5.)95,0.93,0.94,0.96,0.97 > "00"
  1100. >>0x212 ubyte >0x29
  1101. >>>0x213 ubyte >0x29
  1102. # not iso9660_stage1_5
  1103. #>>>0 ulelong&0x00BE5652 0x00BE5652
  1104. >>>>0x213 ubyte >0x29 GRand Unified Bootloader
  1105. # config_file for stage1_5 is 0xffffffff + default "/boot/grub/stage2"
  1106. >>>>0x217 ubyte 0xFF stage1_5
  1107. >>>>0x217 ubyte <0xFF stage2
  1108. >>>>0x206 ubyte x \b version %u
  1109. >>>>0x207 ubyte x \b.%u
  1110. # module_size for 1.94
  1111. >>>>0x208 ulelong <0xffffff \b, installed partition %u
  1112. #>>>>0x208 ulelong =0xffffff \b, %u (default)
  1113. >>>>0x208 ulelong >0xffffff \b, installed partition %u
  1114. # GRUB 0.5.95 unofficial
  1115. >>>>0x20C ulelong&0x2E300000 0x2E300000
  1116. # 0=stage2 1=ffs 2=e2fs 3=fat 4=minix 5=reiserfs
  1117. >>>>>0x20C ubyte x \b, identifier 0x%x
  1118. #>>>>>0x20D ubyte =0 \b, LBA flag 0x%x (default)
  1119. >>>>>0x20D ubyte >0 \b, LBA flag 0x%x
  1120. # GRUB version as string
  1121. >>>>>0x20E string >\0 \b, GRUB version %-s
  1122. # for stage1_5 is 0xffffffff + config_file "/boot/grub/stage2" default
  1123. >>>>>>0x215 ulong 0xffffffff
  1124. >>>>>>>0x219 string >\0 \b, configuration file %-s
  1125. >>>>>>0x215 ulong !0xffffffff
  1126. >>>>>>>0x215 string >\0 \b, configuration file %-s
  1127. # newer GRUB versions
  1128. >>>>0x20C ulelong&0x2E300000 !0x2E300000
  1129. ##>>>>>0x20C ulelong =0 \b, saved entry %d (usual)
  1130. >>>>>0x20C ulelong >0 \b, saved entry %d
  1131. # for 1.94 contains kernel image size
  1132. # for 0.93,0.94,0.96,0.97
  1133. # 0=stage2 1=ffs 2=e2fs 3=fat 4=minix 5=reiserfs 6=vstafs 7=jfs 8=xfs 9=iso9660 a=ufs2
  1134. >>>>>0x210 ubyte x \b, identifier 0x%x
  1135. # The flag for LBA forcing is in most cases 0
  1136. #>>>>>0x211 ubyte =0 \b, LBA flag 0x%x (default)
  1137. >>>>>0x211 ubyte >0 \b, LBA flag 0x%x
  1138. # GRUB version as string
  1139. >>>>>0x212 string >\0 \b, GRUB version %-s
  1140. # for stage1_5 is 0xffffffff + config_file "/boot/grub/stage2" default
  1141. >>>>>0x217 ulong 0xffffffff
  1142. >>>>>>0x21b string >\0 \b, configuration file %-s
  1143. >>>>>0x217 ulong !0xffffffff
  1144. >>>>>>0x217 string >\0 \b, configuration file %-s
  1145. # DOS x86 sector updated and separated from "x86 boot sector" by Joerg Jenderek at May 2011
  1146. # JuMP short bootcodeoffset NOP assembler instructions will usually be EB xx 90
  1147. # over BIOS parameter block (BPB)
  1148. # http://thestarman.pcministry.com/asm/2bytejumps.htm#FWD
  1149. # older drives may use Near JuMP instruction E9 xx xx
  1150. # minimal short forward jump found 0x29 for bootloaders or 0x0
  1151. # maximal short forward jump is 0x7f
  1152. # OEM-ID is empty or contain readable bytes
  1153. 0 ulelong&0x804000E9 0x000000E9
  1154. # mtools-3.9.8/msdos.h
  1155. # usual values are marked with comments to get only informations of strange FAT systems
  1156. # valid sectorsize must be a power of 2 from 32 to 32768
  1157. >11 uleshort&0xf001f 0
  1158. >>11 uleshort <32769
  1159. >>>11 uleshort >31
  1160. >>>>21 ubyte&0xf0 0xF0
  1161. >>>>>0 ubyte 0xEB
  1162. >>>>>>1 ubyte x \b, code offset 0x%x+2
  1163. >>>>>0 ubyte 0xE9
  1164. >>>>>>1 uleshort x \b, code offset 0x%x+2
  1165. >>>>>3 string >\0 \b, OEM-ID "%-.8s"
  1166. #http://mirror.href.com/thestarman/asm/debug/debug2.htm#IHC
  1167. >>>>>>8 string IHC \b cached by Windows 9M
  1168. >>>>>11 uleshort >512 \b, Bytes/sector %u
  1169. #>>>>>11 uleshort =512 \b, Bytes/sector %u=512 (usual)
  1170. >>>>>11 uleshort <512 \b, Bytes/sector %u
  1171. >>>>>13 ubyte >1 \b, sectors/cluster %u
  1172. #>>>>>13 ubyte =1 \b, sectors/cluster %u (usual on Floppies)
  1173. >>>>>82 string FAT32
  1174. >>>>>>14 uleshort !32 \b, reserved sectors %u
  1175. #>>>>>>14 uleshort =32 \b, reserved sectors %u (usual Fat32)
  1176. >>>>>82 string !FAT32
  1177. >>>>>>14 uleshort >1 \b, reserved sectors %u
  1178. #>>>>>>14 uleshort =1 \b, reserved sectors %u (usual FAT12,FAT16)
  1179. #>>>>>>14 uleshort 0 \b, reserved sectors %u (usual NTFS)
  1180. >>>>>16 ubyte >2 \b, FATs %u
  1181. #>>>>>16 ubyte =2 \b, FATs %u (usual)
  1182. >>>>>16 ubyte =1 \b, FAT %u
  1183. >>>>>16 ubyte >0
  1184. >>>>>17 uleshort >0 \b, root entries %u
  1185. #>>>>>17 uleshort =0 \b, root entries %u=0 (usual Fat32)
  1186. >>>>>19 uleshort >0 \b, sectors %u (volumes <=32 MB)
  1187. #>>>>>19 uleshort =0 \b, sectors %u=0 (usual Fat32)
  1188. >>>>>21 ubyte >0xF0 \b, Media descriptor 0x%x
  1189. #>>>>>21 ubyte =0xF0 \b, Media descriptor 0x%x (usual floppy)
  1190. >>>>>21 ubyte <0xF0 \b, Media descriptor 0x%x
  1191. >>>>>22 uleshort >0 \b, sectors/FAT %u
  1192. #>>>>>22 uleshort =0 \b, sectors/FAT %u=0 (usual Fat32)
  1193. >>>>>24 uleshort x \b, sectors/track %u
  1194. >>>>>26 ubyte >2 \b, heads %u
  1195. #>>>>>26 ubyte =2 \b, heads %u (usual floppy)
  1196. >>>>>26 ubyte =1 \b, heads %u
  1197. # valid only for sector sizes with more then 32 Bytes
  1198. >>>>>11 uleshort >32
  1199. # skip for Digital Research DOS (version 3.41) 1440 kB Bootdisk
  1200. >>>>>>38 ubyte !0x70
  1201. >>>>>>>28 ulelong >0 \b, hidden sectors %u
  1202. #>>>>>>>28 ulelong =0 \b, hidden sectors %u (usual floppy)
  1203. >>>>>>>32 ulelong >0 \b, sectors %u (volumes > 32 MB)
  1204. #>>>>>>>32 ulelong =0 \b, sectors %u (volumes > 32 MB)
  1205. # FAT<32 bit specific
  1206. >>>>>>>82 string !FAT32
  1207. #>>>>>>>>36 ubyte 0x80 \b, physical drive 0x%x=0x80 (usual harddisk)
  1208. #>>>>>>>>36 ubyte 0 \b, physical drive 0x%x=0 (usual floppy)
  1209. >>>>>>>>36 ubyte !0x80
  1210. >>>>>>>>>36 ubyte !0 \b, physical drive 0x%x
  1211. >>>>>>>>37 ubyte >0 \b, reserved 0x%x
  1212. #>>>>>>>>37 ubyte =0 \b, reserved 0x%x
  1213. # value is 0x80 for NTFS
  1214. >>>>>>>>38 ubyte !0x29 \b, dos < 4.0 BootSector (0x%x)
  1215. >>>>>>>>38 ubyte =0x29
  1216. >>>>>>>>>39 ulelong x \b, serial number 0x%x
  1217. >>>>>>>>>43 string <NO\ NAME \b, label: "%11.11s"
  1218. >>>>>>>>>43 string >NO\ NAME \b, label: "%11.11s"
  1219. >>>>>>>>>43 string =NO\ NAME \b, unlabeled
  1220. # there exist some old floppies without word FAT at offset 54
  1221. # a word like "FATnm " is only a hint for a FAT size on nm-bits
  1222. # Normally the number of clusters is calculated by the values of BPP.
  1223. # if it is small enough FAT is 12 bit, if it is too big enough FAT is 32 bit,
  1224. # otherwise FAT is 16 bit.
  1225. # http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/determining-fat-widths.html
  1226. >>>>>>54 string FAT \b, FAT
  1227. >>>>>>>54 string FAT12 \b (12 bit)
  1228. >>>>>>>54 string FAT16 \b (16 bit)
  1229. # FAT32 bit specific
  1230. >>>>>82 string FAT32 \b, FAT (32 bit)
  1231. >>>>>>36 ulelong x \b, sectors/FAT %u
  1232. # http://technet.microsoft.com/en-us/library/cc977221.aspx
  1233. >>>>>>40 uleshort >0 \b, extension flags 0x%x
  1234. #>>>>>>40 uleshort =0 \b, extension flags %u
  1235. >>>>>>42 uleshort >0 \b, fsVersion %u
  1236. #>>>>>>42 uleshort =0 \b, fsVersion %u (usual)
  1237. >>>>>>44 ulelong >2 \b, rootdir cluster %u
  1238. #>>>>>>44 ulelong =2 \b, rootdir cluster %u
  1239. #>>>>>>44 ulelong =1 \b, rootdir cluster %u
  1240. >>>>>>48 uleshort >1 \b, infoSector %u
  1241. #>>>>>>48 uleshort =1 \b, infoSector %u (usual)
  1242. >>>>>>48 uleshort <1 \b, infoSector %u
  1243. >>>>>>50 uleshort >6 \b, Backup boot sector %u
  1244. #>>>>>>50 uleshort =6 \b, Backup boot sector %u (usual)
  1245. >>>>>>50 uleshort <6 \b, Backup boot sector %u
  1246. # corrected by Joerg Jenderek at Feb 2011 according to http://thestarman.pcministry.com/asm/mbr/MSWIN41.htm#FSINFO
  1247. >>>>>>52 ulelong >0 \b, reserved1 0x%x
  1248. >>>>>>56 ulelong >0 \b, reserved2 0x%x
  1249. >>>>>>60 ulelong >0 \b, reserved3 0x%x
  1250. # same structure as FAT1X
  1251. #>>>>>>64 ubyte =0x80 \b, physical drive 0x%x=80 (usual harddisk)
  1252. #>>>>>>64 ubyte =0 \b, physical drive 0x%x=0 (usual floppy)
  1253. >>>>>>64 ubyte !0x80
  1254. >>>>>>>64 ubyte >0 \b, physical drive 0x%x
  1255. # in Windows NT bit 0 is a dirty flag to request chkdsk at boot time. bit 1 requests surface scan too
  1256. >>>>>>65 ubyte >0 \b, reserved 0x%x
  1257. >>>>>>66 ubyte !0x29 \b, dos < 4.0 BootSector (0x%x)
  1258. >>>>>>66 ubyte =0x29
  1259. >>>>>>>67 ulelong x \b, serial number 0x%x
  1260. >>>>>>>71 string <NO\ NAME \b, label: "%11.11s"
  1261. >>>>>>>71 string >NO\ NAME \b, label: "%11.11s"
  1262. >>>>>>>71 string =NO\ NAME \b, unlabeled
  1263. # additional tests for floppy image added by Joerg Jenderek
  1264. # no fixed disk
  1265. >>>>>21 ubyte !0xF8
  1266. # floppy media with 12 bit FAT
  1267. >>>>>>54 string !FAT16
  1268. # test for FAT after bootsector
  1269. >>>>>>>(11.s) ulelong&0x00ffffF0 0x00ffffF0 \b, followed by FAT
  1270. # floppy image
  1271. !:mime application/x-ima
  1272. # NTFS specific added by Joerg Jenderek at Mar 2011 according to http://thestarman.pcministry.com/asm/mbr/NTFSBR.htm
  1273. # and http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/bios-parameter-block.html
  1274. # 0 FATs
  1275. >>>>>16 ubyte =0
  1276. # 0 root entries
  1277. >>>>>>17 uleshort =0
  1278. # 0 DOS sectors
  1279. >>>>>>>19 uleshort =0
  1280. # 0 sectors/FAT
  1281. # dos < 4.0 BootSector value found is 0x80
  1282. #38 ubyte =0x80 \b, dos < 4.0 BootSector (0x%x)
  1283. >>>>>>>>22 uleshort =0 \b; NTFS
  1284. >>>>>>>>>24 uleshort >0 \b, sectors/track %u
  1285. >>>>>>>>>36 ulelong !0x800080 \b, physical drive 0x%x
  1286. >>>>>>>>>40 ulequad >0 \b, sectors %lld
  1287. >>>>>>>>>48 ulequad >0 \b, $MFT start cluster %lld
  1288. >>>>>>>>>56 ulequad >0 \b, $MFTMirror start cluster %lld
  1289. # Values 0 to 127 represent MFT record sizes of 0 to 127 clusters.
  1290. # Values 128 to 255 represent MFT record sizes of 2^(256-N) bytes.
  1291. >>>>>>>>>64 lelong <256
  1292. >>>>>>>>>>64 lelong <128 \b, clusters/RecordSegment %d
  1293. >>>>>>>>>>64 ubyte >127 \b, bytes/RecordSegment 2^(-1*%hhi)
  1294. # Values 0 to 127 represent index block sizes of 0 to 127 clusters.
  1295. # Values 128 to 255 represent index block sizes of 2^(256-N) byte
  1296. >>>>>>>>>68 ulelong <256
  1297. >>>>>>>>>>68 ulelong <128 \b, clusters/index block %d
  1298. #>>>>>>>>>>68 ulelong >127 \b, bytes/index block 2^(256-%d)
  1299. >>>>>>>>>>68 ubyte >127 \b, bytes/index block 2^(-1*%hhi)
  1300. >>>>>>>>>72 ulequad x \b, serial number 0%llx
  1301. >>>>>>>>>80 ulelong >0 \b, checksum 0x%x
  1302. #>>>>>>>>>80 ulelong =0 \b, checksum 0x%x=0 (usual)
  1303. >>>>>>>>>0x258 ulelong&0x00009090 =0x00009090
  1304. >>>>>>>>>>&-92 indirect x \b; contains
  1305. # For 2nd NTFS sector added by Joerg Jenderek at Jan 2013
  1306. # http://thestarman.pcministry.com/asm/mbr/NTFSbrHexEd.htm
  1307. # unused assembler instructions JMP y2;NOP;NOP
  1308. 0x056 ulelong&0xFFFF0FFF 0x909002EB
  1309. # unicode loadername terminated by CTRL-D
  1310. >(0.s*2) ulelong&0xFFFFFF00 0x00040000
  1311. # loadernames are NTLDR,CMLDR,PELDR,$LDR$ or BOOTMGR
  1312. >>0x002 lestring16 x Microsoft Windows XP/VISTA bootloader %-5.5s
  1313. >>0x12 string $
  1314. >>>0x0c lestring16 x \b%-2.2s
  1315. ### DOS,NTFS boot sectors end
  1316. 9564 lelong 0x00011954 Unix Fast File system [v1] (little-endian),
  1317. >8404 string x last mounted on %s,
  1318. #>9504 ledate x last checked at %s,
  1319. >8224 ledate x last written at %s,
  1320. >8401 byte x clean flag %d,
  1321. >8228 lelong x number of blocks %d,
  1322. >8232 lelong x number of data blocks %d,
  1323. >8236 lelong x number of cylinder groups %d,
  1324. >8240 lelong x block size %d,
  1325. >8244 lelong x fragment size %d,
  1326. >8252 lelong x minimum percentage of free blocks %d,
  1327. >8256 lelong x rotational delay %dms,
  1328. >8260 lelong x disk rotational speed %drps,
  1329. >8320 lelong 0 TIME optimization
  1330. >8320 lelong 1 SPACE optimization
  1331. 42332 lelong 0x19540119 Unix Fast File system [v2] (little-endian)
  1332. >&-1164 string x last mounted on %s,
  1333. >&-696 string >\0 volume name %s,
  1334. >&-304 leqldate x last written at %s,
  1335. >&-1167 byte x clean flag %d,
  1336. >&-1168 byte x readonly flag %d,
  1337. >&-296 lequad x number of blocks %lld,
  1338. >&-288 lequad x number of data blocks %lld,
  1339. >&-1332 lelong x number of cylinder groups %d,
  1340. >&-1328 lelong x block size %d,
  1341. >&-1324 lelong x fragment size %d,
  1342. >&-180 lelong x average file size %d,
  1343. >&-176 lelong x average number of files in dir %d,
  1344. >&-272 lequad x pending blocks to free %lld,
  1345. >&-264 lelong x pending inodes to free %ld,
  1346. >&-664 lequad x system-wide uuid %0llx,
  1347. >&-1316 lelong x minimum percentage of free blocks %d,
  1348. >&-1248 lelong 0 TIME optimization
  1349. >&-1248 lelong 1 SPACE optimization
  1350. 66908 lelong 0x19540119 Unix Fast File system [v2] (little-endian)
  1351. >&-1164 string x last mounted on %s,
  1352. >&-696 string >\0 volume name %s,
  1353. >&-304 leqldate x last written at %s,
  1354. >&-1167 byte x clean flag %d,
  1355. >&-1168 byte x readonly flag %d,
  1356. >&-296 lequad x number of blocks %lld,
  1357. >&-288 lequad x number of data blocks %lld,
  1358. >&-1332 lelong x number of cylinder groups %d,
  1359. >&-1328 lelong x block size %d,
  1360. >&-1324 lelong x fragment size %d,
  1361. >&-180 lelong x average file size %d,
  1362. >&-176 lelong x average number of files in dir %d,
  1363. >&-272 lequad x pending blocks to free %lld,
  1364. >&-264 lelong x pending inodes to free %ld,
  1365. >&-664 lequad x system-wide uuid %0llx,
  1366. >&-1316 lelong x minimum percentage of free blocks %d,
  1367. >&-1248 lelong 0 TIME optimization
  1368. >&-1248 lelong 1 SPACE optimization
  1369. 9564 belong 0x00011954 Unix Fast File system [v1] (big-endian),
  1370. >7168 belong 0x4c41424c Apple UFS Volume
  1371. >>7186 string x named %s,
  1372. >>7176 belong x volume label version %d,
  1373. >>7180 bedate x created on %s,
  1374. >8404 string x last mounted on %s,
  1375. #>9504 bedate x last checked at %s,
  1376. >8224 bedate x last written at %s,
  1377. >8401 byte x clean flag %d,
  1378. >8228 belong x number of blocks %d,
  1379. >8232 belong x number of data blocks %d,
  1380. >8236 belong x number of cylinder groups %d,
  1381. >8240 belong x block size %d,
  1382. >8244 belong x fragment size %d,
  1383. >8252 belong x minimum percentage of free blocks %d,
  1384. >8256 belong x rotational delay %dms,
  1385. >8260 belong x disk rotational speed %drps,
  1386. >8320 belong 0 TIME optimization
  1387. >8320 belong 1 SPACE optimization
  1388. 42332 belong 0x19540119 Unix Fast File system [v2] (big-endian)
  1389. >&-1164 string x last mounted on %s,
  1390. >&-696 string >\0 volume name %s,
  1391. >&-304 beqldate x last written at %s,
  1392. >&-1167 byte x clean flag %d,
  1393. >&-1168 byte x readonly flag %d,
  1394. >&-296 bequad x number of blocks %lld,
  1395. >&-288 bequad x number of data blocks %lld,
  1396. >&-1332 belong x number of cylinder groups %d,
  1397. >&-1328 belong x block size %d,
  1398. >&-1324 belong x fragment size %d,
  1399. >&-180 belong x average file size %d,
  1400. >&-176 belong x average number of files in dir %d,
  1401. >&-272 bequad x pending blocks to free %lld,
  1402. >&-264 belong x pending inodes to free %ld,
  1403. >&-664 bequad x system-wide uuid %0llx,
  1404. >&-1316 belong x minimum percentage of free blocks %d,
  1405. >&-1248 belong 0 TIME optimization
  1406. >&-1248 belong 1 SPACE optimization
  1407. 66908 belong 0x19540119 Unix Fast File system [v2] (big-endian)
  1408. >&-1164 string x last mounted on %s,
  1409. >&-696 string >\0 volume name %s,
  1410. >&-304 beqldate x last written at %s,
  1411. >&-1167 byte x clean flag %d,
  1412. >&-1168 byte x readonly flag %d,
  1413. >&-296 bequad x number of blocks %lld,
  1414. >&-288 bequad x number of data blocks %lld,
  1415. >&-1332 belong x number of cylinder groups %d,
  1416. >&-1328 belong x block size %d,
  1417. >&-1324 belong x fragment size %d,
  1418. >&-180 belong x average file size %d,
  1419. >&-176 belong x average number of files in dir %d,
  1420. >&-272 bequad x pending blocks to free %lld,
  1421. >&-264 belong x pending inodes to free %ld,
  1422. >&-664 bequad x system-wide uuid %0llx,
  1423. >&-1316 belong x minimum percentage of free blocks %d,
  1424. >&-1248 belong 0 TIME optimization
  1425. >&-1248 belong 1 SPACE optimization
  1426. # ext2/ext3 filesystems - Andreas Dilger <adilger@dilger.ca>
  1427. # ext4 filesystem - Eric Sandeen <sandeen@sandeen.net>
  1428. # volume label and UUID Russell Coker
  1429. # http://etbe.coker.com.au/2008/07/08/label-vs-uuid-vs-device/
  1430. 0x438 leshort 0xEF53 Linux
  1431. >0x44c lelong x rev %d
  1432. >0x43e leshort x \b.%d
  1433. # No journal? ext2
  1434. >0x45c lelong ^0x0000004 ext2 filesystem data
  1435. >>0x43a leshort ^0x0000001 (mounted or unclean)
  1436. # Has a journal? ext3 or ext4
  1437. >0x45c lelong &0x0000004
  1438. # and small INCOMPAT?
  1439. >>0x460 lelong <0x0000040
  1440. # and small RO_COMPAT?
  1441. >>>0x464 lelong <0x0000008 ext3 filesystem data
  1442. # else large RO_COMPAT?
  1443. >>>0x464 lelong >0x0000007 ext4 filesystem data
  1444. # else large INCOMPAT?
  1445. >>0x460 lelong >0x000003f ext4 filesystem data
  1446. >0x468 belong x \b, UUID=%08x
  1447. >0x46c beshort x \b-%04x
  1448. >0x46e beshort x \b-%04x
  1449. >0x470 beshort x \b-%04x
  1450. >0x472 belong x \b-%08x
  1451. >0x476 beshort x \b%04x
  1452. >0x478 string >0 \b, volume name "%s"
  1453. # General flags for any ext* fs
  1454. >0x460 lelong &0x0000004 (needs journal recovery)
  1455. >0x43a leshort &0x0000002 (errors)
  1456. # INCOMPAT flags
  1457. >0x460 lelong &0x0000001 (compressed)
  1458. #>0x460 lelong &0x0000002 (filetype)
  1459. #>0x460 lelong &0x0000010 (meta bg)
  1460. >0x460 lelong &0x0000040 (extents)
  1461. >0x460 lelong &0x0000080 (64bit)
  1462. #>0x460 lelong &0x0000100 (mmp)
  1463. #>0x460 lelong &0x0000200 (flex bg)
  1464. # RO_INCOMPAT flags
  1465. #>0x464 lelong &0x0000001 (sparse super)
  1466. >0x464 lelong &0x0000002 (large files)
  1467. >0x464 lelong &0x0000008 (huge files)
  1468. #>0x464 lelong &0x0000010 (gdt checksum)
  1469. #>0x464 lelong &0x0000020 (many subdirs)
  1470. #>0x463 lelong &0x0000040 (extra isize)
  1471. # Minix filesystems - Juan Cespedes <cespedes@debian.org>
  1472. 0x410 leshort 0x137f
  1473. !:strength / 2
  1474. >0x402 beshort < 100
  1475. >0x402 beshort > -1 Minix filesystem, V1, %d zones
  1476. >0x1e string minix \b, bootable
  1477. 0x410 beshort 0x137f
  1478. !:strength / 2
  1479. >0x402 beshort < 100
  1480. >0x402 beshort > -1 Minix filesystem, V1 (big endian), %d zones
  1481. >0x1e string minix \b, bootable
  1482. 0x410 leshort 0x138f
  1483. !:strength / 2
  1484. >0x402 beshort < 100
  1485. >0x402 beshort > -1 Minix filesystem, V1, 30 char names, %d zones
  1486. >0x1e string minix \b, bootable
  1487. 0x410 beshort 0x138f
  1488. !:strength / 2
  1489. >0x402 beshort < 100
  1490. >0x402 beshort > -1 Minix filesystem, V1, 30 char names (big endian), %d zones
  1491. >0x1e string minix \b, bootable
  1492. 0x410 leshort 0x2468
  1493. >0x402 beshort < 100
  1494. >>0x402 beshort > -1 Minix filesystem, V2, %d zones
  1495. >0x1e string minix \b, bootable
  1496. 0x410 beshort 0x2468
  1497. >0x402 beshort < 100
  1498. >0x402 beshort > -1 Minix filesystem, V2 (big endian), %d zones
  1499. >0x1e string minix \b, bootable
  1500. 0x410 leshort 0x2478
  1501. >0x402 beshort < 100
  1502. >0x402 beshort > -1 Minix filesystem, V2, 30 char names, %d zones
  1503. >0x1e string minix \b, bootable
  1504. 0x410 leshort 0x2478
  1505. >0x402 beshort < 100
  1506. >0x402 beshort > -1 Minix filesystem, V2, 30 char names, %d zones
  1507. >0x1e string minix \b, bootable
  1508. 0x410 beshort 0x2478
  1509. >0x402 beshort !0 Minix filesystem, V2, 30 char names (big endian), %d zones
  1510. >0x1e string minix \b, bootable
  1511. 0x410 leshort 0x4d5a
  1512. >0x402 beshort !0 Minix filesystem, V3, %d zones
  1513. >0x1e string minix \b, bootable
  1514. # SGI disk labels - Nathan Scott <nathans@debian.org>
  1515. 0 belong 0x0BE5A941 SGI disk label (volume header)
  1516. # SGI XFS filesystem - Nathan Scott <nathans@debian.org>
  1517. 0 belong 0x58465342 SGI XFS filesystem data
  1518. >0x4 belong x (blksz %d,
  1519. >0x68 beshort x inosz %d,
  1520. >0x64 beshort ^0x2004 v1 dirs)
  1521. >0x64 beshort &0x2004 v2 dirs)
  1522. ############################################################################
  1523. # Minix-ST kernel floppy
  1524. 0x800 belong 0x46fc2700 Atari-ST Minix kernel image
  1525. >19 string \240\5\371\5\0\011\0\2\0 \b, 720k floppy
  1526. >19 string \320\2\370\5\0\011\0\1\0 \b, 360k floppy
  1527. ############################################################################
  1528. # Hmmm, is this a better way of detecting _standard_ floppy images ?
  1529. 19 string \320\2\360\3\0\011\0\1\0 DOS floppy 360k
  1530. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  1531. 19 string \240\5\371\3\0\011\0\2\0 DOS floppy 720k
  1532. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  1533. 19 string \100\013\360\011\0\022\0\2\0 DOS floppy 1440k
  1534. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  1535. 19 string \240\5\371\5\0\011\0\2\0 DOS floppy 720k, IBM
  1536. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  1537. 19 string \100\013\371\5\0\011\0\2\0 DOS floppy 1440k, mkdosfs
  1538. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  1539. 19 string \320\2\370\5\0\011\0\1\0 Atari-ST floppy 360k
  1540. 19 string \240\5\371\5\0\011\0\2\0 Atari-ST floppy 720k
  1541. # Valid media descriptor bytes for MS-DOS:
  1542. #
  1543. # Byte Capacity Media Size and Type
  1544. # -------------------------------------------------
  1545. #
  1546. # F0 2.88 MB 3.5-inch, 2-sided, 36-sector
  1547. # F0 1.44 MB 3.5-inch, 2-sided, 18-sector
  1548. # F9 720K 3.5-inch, 2-sided, 9-sector
  1549. # F9 1.2 MB 5.25-inch, 2-sided, 15-sector
  1550. # FD 360K 5.25-inch, 2-sided, 9-sector
  1551. # FF 320K 5.25-inch, 2-sided, 8-sector
  1552. # FC 180K 5.25-inch, 1-sided, 9-sector
  1553. # FE 160K 5.25-inch, 1-sided, 8-sector
  1554. # FE 250K 8-inch, 1-sided, single-density
  1555. # FD 500K 8-inch, 2-sided, single-density
  1556. # FE 1.2 MB 8-inch, 2-sided, double-density
  1557. # F8 ----- Fixed disk
  1558. #
  1559. # FC xxxK Apricot 70x1x9 boot disk.
  1560. #
  1561. # Originally a bitmap:
  1562. # xxxxxxx0 Not two sided
  1563. # xxxxxxx1 Double sided
  1564. # xxxxxx0x Not 8 SPT
  1565. # xxxxxx1x 8 SPT
  1566. # xxxxx0xx Not Removable drive
  1567. # xxxxx1xx Removable drive
  1568. # 11111xxx Must be one.
  1569. #
  1570. # But now it's rather random:
  1571. # 111111xx Low density disk
  1572. # 00 SS, Not 8 SPT
  1573. # 01 DS, Not 8 SPT
  1574. # 10 SS, 8 SPT
  1575. # 11 DS, 8 SPT
  1576. #
  1577. # 11111001 Double density 3 1/2 floppy disk, high density 5 1/4
  1578. # 11110000 High density 3 1/2 floppy disk
  1579. # 11111000 Hard disk any format
  1580. #
  1581. # CDROM Filesystems
  1582. # Modified for UDF by gerardo.cacciari@gmail.com
  1583. 32769 string CD001 #
  1584. !:mime application/x-iso9660-image
  1585. >38913 string !NSR0 ISO 9660 CD-ROM filesystem data
  1586. >38913 string NSR0 UDF filesystem data
  1587. >>38917 string 1 (version 1.0)
  1588. >>38917 string 2 (version 1.5)
  1589. >>38917 string 3 (version 2.0)
  1590. >>38917 byte >0x33 (unknown version, ID 0x%X)
  1591. >>38917 byte <0x31 (unknown version, ID 0x%X)
  1592. # "application id" which appears to be used as a volume label
  1593. >32808 string/T >\0 '%s'
  1594. >34816 string \000CD001\001EL\ TORITO\ SPECIFICATION (bootable)
  1595. 37633 string CD001 ISO 9660 CD-ROM filesystem data (raw 2352 byte sectors)
  1596. !:mime application/x-iso9660-image
  1597. 32776 string CDROM High Sierra CD-ROM filesystem data
  1598. # .cso files
  1599. 0 string CISO Compressed ISO CD image
  1600. # cramfs filesystem - russell@coker.com.au
  1601. 0 lelong 0x28cd3d45 Linux Compressed ROM File System data, little endian
  1602. >4 lelong x size %lu
  1603. >8 lelong &1 version #2
  1604. >8 lelong &2 sorted_dirs
  1605. >8 lelong &4 hole_support
  1606. >32 lelong x CRC 0x%x,
  1607. >36 lelong x edition %lu,
  1608. >40 lelong x %lu blocks,
  1609. >44 lelong x %lu files
  1610. 0 belong 0x28cd3d45 Linux Compressed ROM File System data, big endian
  1611. >4 belong x size %lu
  1612. >8 belong &1 version #2
  1613. >8 belong &2 sorted_dirs
  1614. >8 belong &4 hole_support
  1615. >32 belong x CRC 0x%x,
  1616. >36 belong x edition %lu,
  1617. >40 belong x %lu blocks,
  1618. >44 belong x %lu files
  1619. # reiserfs - russell@coker.com.au
  1620. 0x10034 string ReIsErFs ReiserFS V3.5
  1621. 0x10034 string ReIsEr2Fs ReiserFS V3.6
  1622. 0x10034 string ReIsEr3Fs ReiserFS V3.6.19
  1623. >0x1002c leshort x block size %d
  1624. >0x10032 leshort &2 (mounted or unclean)
  1625. >0x10000 lelong x num blocks %d
  1626. >0x10040 lelong 1 tea hash
  1627. >0x10040 lelong 2 yura hash
  1628. >0x10040 lelong 3 r5 hash
  1629. # JFFS - russell@coker.com.au
  1630. 0 lelong 0x34383931 Linux Journalled Flash File system, little endian
  1631. 0 belong 0x34383931 Linux Journalled Flash File system, big endian
  1632. # EST flat binary format (which isn't, but anyway)
  1633. # From: Mark Brown <broonie@sirena.org.uk>
  1634. 0 string ESTFBINR EST flat binary
  1635. # Aculab VoIP firmware
  1636. # From: Mark Brown <broonie@sirena.org.uk>
  1637. 0 string VoIP\ Startup\ and Aculab VoIP firmware
  1638. >35 string x format %s
  1639. # From: Mark Brown <broonie@sirena.org.uk> [old]
  1640. # From: Behan Webster <behanw@websterwood.com>
  1641. 0 belong 0x27051956 u-boot legacy uImage,
  1642. >32 string x %s,
  1643. >28 byte 0 Invalid os/
  1644. >28 byte 1 OpenBSD/
  1645. >28 byte 2 NetBSD/
  1646. >28 byte 3 FreeBSD/
  1647. >28 byte 4 4.4BSD/
  1648. >28 byte 5 Linux/
  1649. >28 byte 6 SVR4/
  1650. >28 byte 7 Esix/
  1651. >28 byte 8 Solaris/
  1652. >28 byte 9 Irix/
  1653. >28 byte 10 SCO/
  1654. >28 byte 11 Dell/
  1655. >28 byte 12 NCR/
  1656. >28 byte 13 LynxOS/
  1657. >28 byte 14 VxWorks/
  1658. >28 byte 15 pSOS/
  1659. >28 byte 16 QNX/
  1660. >28 byte 17 Firmware/
  1661. >28 byte 18 RTEMS/
  1662. >28 byte 19 ARTOS/
  1663. >28 byte 20 Unity OS/
  1664. >28 byte 21 INTEGRITY/
  1665. >29 byte 0 \bInvalid CPU,
  1666. >29 byte 1 \bAlpha,
  1667. >29 byte 2 \bARM,
  1668. >29 byte 3 \bIntel x86,
  1669. >29 byte 4 \bIA64,
  1670. >29 byte 5 \bMIPS,
  1671. >29 byte 6 \bMIPS 64-bit,
  1672. >29 byte 7 \bPowerPC,
  1673. >29 byte 8 \bIBM S390,
  1674. >29 byte 9 \bSuperH,
  1675. >29 byte 10 \bSparc,
  1676. >29 byte 11 \bSparc 64-bit,
  1677. >29 byte 12 \bM68K,
  1678. >29 byte 13 \bNios-32,
  1679. >29 byte 14 \bMicroBlaze,
  1680. >29 byte 15 \bNios-II,
  1681. >29 byte 16 \bBlackfin,
  1682. >29 byte 17 \bAVR32,
  1683. >29 byte 18 \bSTMicroelectronics ST200,
  1684. >30 byte 0 Invalid Image
  1685. >30 byte 1 Standalone Program
  1686. >30 byte 2 OS Kernel Image
  1687. >30 byte 3 RAMDisk Image
  1688. >30 byte 4 Multi-File Image
  1689. >30 byte 5 Firmware Image
  1690. >30 byte 6 Script File
  1691. >30 byte 7 Filesystem Image (any type)
  1692. >30 byte 8 Binary Flat Device Tree BLOB
  1693. >31 byte 0 (Not compressed),
  1694. >31 byte 1 (gzip),
  1695. >31 byte 2 (bzip2),
  1696. >31 byte 3 (lzma),
  1697. >12 belong x %d bytes,
  1698. >8 bedate x %s,
  1699. >16 belong x Load Address: 0x%08X,
  1700. >20 belong x Entry Point: 0x%08X,
  1701. >4 belong x Header CRC: 0x%08X,
  1702. >24 belong x Data CRC: 0x%08X
  1703. # JFFS2 file system
  1704. 0 leshort 0x1984 Linux old jffs2 filesystem data little endian
  1705. 0 leshort 0x1985 Linux jffs2 filesystem data little endian
  1706. # Squashfs
  1707. 0 string sqsh Squashfs filesystem, big endian,
  1708. >28 beshort x version %d.
  1709. >30 beshort x \b%d,
  1710. >28 beshort <3
  1711. >>8 belong x %d bytes,
  1712. >28 beshort >2
  1713. >>28 beshort <4
  1714. >>>63 bequad x %lld bytes,
  1715. >>28 beshort >3
  1716. >>>40 bequad x %lld bytes,
  1717. #>>67 belong x %d bytes,
  1718. >4 belong x %d inodes,
  1719. >28 beshort <2
  1720. >>32 beshort x blocksize: %d bytes,
  1721. >28 beshort >1
  1722. >>28 beshort <4
  1723. >>>51 belong x blocksize: %d bytes,
  1724. >>28 beshort >3
  1725. >>>12 belong x blocksize: %d bytes,
  1726. >28 beshort <4
  1727. >>39 bedate x created: %s
  1728. >28 beshort >3
  1729. >>8 bedate x created: %s
  1730. 0 string hsqs Squashfs filesystem, little endian,
  1731. >28 leshort x version %d.
  1732. >30 leshort x \b%d,
  1733. >28 leshort <3
  1734. >>8 lelong x %d bytes,
  1735. >28 leshort >2
  1736. >>28 leshort <4
  1737. >>>63 lequad x %lld bytes,
  1738. >>28 leshort >3
  1739. >>>40 lequad x %lld bytes,
  1740. #>>63 lelong x %d bytes,
  1741. >4 lelong x %d inodes,
  1742. >28 leshort <2
  1743. >>32 leshort x blocksize: %d bytes,
  1744. >28 leshort >1
  1745. >>28 leshort <4
  1746. >>>51 lelong x blocksize: %d bytes,
  1747. >>28 leshort >3
  1748. >>>12 lelong x blocksize: %d bytes,
  1749. >28 leshort <4
  1750. >>39 ledate x created: %s
  1751. >28 leshort >3
  1752. >>8 ledate x created: %s
  1753. # AFS Dump Magic
  1754. # From: Ty Sarna <tsarna@sarna.org>
  1755. 0 string \x01\xb3\xa1\x13\x22 AFS Dump
  1756. >&0 belong x (v%d)
  1757. >>&0 byte 0x76
  1758. >>>&0 belong x Vol %d,
  1759. >>>>&0 byte 0x6e
  1760. >>>>>&0 string x %s
  1761. >>>>>>&1 byte 0x74
  1762. >>>>>>>&0 beshort 2
  1763. >>>>>>>>&4 bedate x on: %s
  1764. >>>>>>>>&0 bedate =0 full dump
  1765. >>>>>>>>&0 bedate !0 incremental since: %s
  1766. #----------------------------------------------------------
  1767. #delta ISO Daniel Novotny (dnovotny@redhat.com)
  1768. 0 string DISO Delta ISO data
  1769. >4 belong x version %d
  1770. # VMS backup savesets - gerardo.cacciari@gmail.com
  1771. #
  1772. 4 string \x01\x00\x01\x00\x01\x00
  1773. >(0.s+16) string \x01\x01
  1774. >>&(&0.b+8) byte 0x42 OpenVMS backup saveset data
  1775. >>>40 lelong x (block size %d,
  1776. >>>49 string >\0 original name '%s',
  1777. >>>2 short 1024 VAX generated)
  1778. >>>2 short 2048 AXP generated)
  1779. >>>2 short 4096 I64 generated)
  1780. # Summary: Oracle Clustered Filesystem
  1781. # Created by: Aaron Botsis <redhat@digitalmafia.org>
  1782. 8 string OracleCFS Oracle Clustered Filesystem,
  1783. >4 long x rev %d
  1784. >0 long x \b.%d,
  1785. >560 string x label: %.64s,
  1786. >136 string x mountpoint: %.128s
  1787. # Summary: Oracle ASM tagged volume
  1788. # Created by: Aaron Botsis <redhat@digitalmafia.org>
  1789. 32 string ORCLDISK Oracle ASM Volume,
  1790. >40 string x Disk Name: %0.12s
  1791. 32 string ORCLCLRD Oracle ASM Volume (cleared),
  1792. >40 string x Disk Name: %0.12s
  1793. # Oracle Clustered Filesystem - Aaron Botsis <redhat@digitalmafia.org>
  1794. 8 string OracleCFS Oracle Clustered Filesystem,
  1795. >4 long x rev %d
  1796. >0 long x \b.%d,
  1797. >560 string x label: %.64s,
  1798. >136 string x mountpoint: %.128s
  1799. # Oracle ASM tagged volume - Aaron Botsis <redhat@digitalmafia.org>
  1800. 32 string ORCLDISK Oracle ASM Volume,
  1801. >40 string x Disk Name: %0.12s
  1802. 32 string ORCLCLRD Oracle ASM Volume (cleared),
  1803. >40 string x Disk Name: %0.12s
  1804. # Compaq/HP RILOE floppy image
  1805. # From: Dirk Jagdmann <doj@cubic.org>
  1806. 0 string CPQRFBLO Compaq/HP RILOE floppy image
  1807. #------------------------------------------------------------------------------
  1808. # Files-11 On-Disk Structure (File system for various RSX-11 and VMS flavours).
  1809. # These bits come from LBN 1 (home block) of ODS-1, ODS-2 and ODS-5 volumes,
  1810. # which is mapped to VBN 2 of [000000]INDEXF.SYS;1 - gerardo.cacciari@gmail.com
  1811. #
  1812. 1008 string DECFILE11 Files-11 On-Disk Structure
  1813. >525 byte x Level %d
  1814. >525 byte x (ODS-%d);
  1815. >1017 string A RSX-11, VAX/VMS or OpenVMS VAX file system;
  1816. >1017 string B
  1817. >>525 byte 2 VAX/VMS or OpenVMS file system;
  1818. >>525 byte 5 OpenVMS Alpha or Itanium file system;
  1819. >984 string x volume label is '%-12.12s'
  1820. # From: Thomas Klausner <wiz@NetBSD.org>
  1821. # http://filext.com/file-extension/DAA
  1822. # describes the daa file format. The magic would be:
  1823. 0 string DAA\x0\x0\x0\x0\x0 PowerISO Direct-Access-Archive
  1824. # From Albert Cahalan <acahalan@gmail.com>
  1825. # really le32 operation,destination,payloadsize (but quite predictable)
  1826. # 01 00 00 00 00 00 00 c0 00 02 00 00
  1827. 0 string \1\0\0\0\0\0\0\300\0\2\0\0 Marvell Libertas firmware
  1828. # From Eric Sandeen
  1829. # GFS2
  1830. 0x10000 belong 0x01161970
  1831. >0x10018 belong 0x0000051d GFS1 Filesystem
  1832. >>0x10024 belong x (blocksize %d,
  1833. >>0x10060 string >\0 lockproto %s)
  1834. >0x10018 belong 0x00000709 GFS2 Filesystem
  1835. >>0x10024 belong x (blocksize %d,
  1836. >>0x10060 string >\0 lockproto %s)
  1837. # BTRFS
  1838. 0x10040 string _BHRfS_M BTRFS Filesystem
  1839. >0x1012b string >\0 (label "%s",
  1840. >0x10090 lelong x sectorsize %d,
  1841. >0x10094 lelong x nodesize %d,
  1842. >0x10098 lelong x leafsize %d)
  1843. # dvdisaster's .ecc
  1844. # From: "Nelson A. de Oliveira" <naoliv@gmail.com>
  1845. 0 string *dvdisaster* dvdisaster error correction file
  1846. # xfs metadump image
  1847. # mb_magic XFSM at 0; superblock magic XFSB at 1 << mb_blocklog
  1848. # but can we do the << ? For now it's always 512 (0x200) anyway.
  1849. 0 string XFSM
  1850. >0x200 string XFSB XFS filesystem metadump image
  1851. # Type: CROM filesystem
  1852. # From: Werner Fink <werner@suse.de>
  1853. 0 string CROMFS CROMFS
  1854. >6 string >\0 \b version %2.2s,
  1855. >8 ulequad >0 \b block data at %lld,
  1856. >16 ulequad >0 \b fblock table at %lld,
  1857. >24 ulequad >0 \b inode table at %lld,
  1858. >32 ulequad >0 \b root at %lld,
  1859. >40 ulelong >0 \b fblock size = %ld,
  1860. >44 ulelong >0 \b block size = %ld,
  1861. >48 ulequad >0 \b bytes = %lld
  1862. # Type: xfs metadump image
  1863. # From: Daniel Novotny <dnovotny@redhat.com>
  1864. # mb_magic XFSM at 0; superblock magic XFSB at 1 << mb_blocklog
  1865. # but can we do the << ? For now it's always 512 (0x200) anyway.
  1866. 0 string XFSM
  1867. >0x200 string XFSB XFS filesystem metadump image
  1868. # Type: delta ISO
  1869. # From: Daniel Novotny <dnovotny@redhat.com>
  1870. 0 string DISO Delta ISO data,
  1871. >4 belong x version %d
  1872. # JFS2 (Journaling File System) image. (Old JFS1 has superblock at 0x1000.)
  1873. # See linux/fs/jfs/jfs_superblock.h for layout; see jfs_filsys.h for flags.
  1874. # From: Adam Buchbinder <adam.buchbinder@gmail.com>
  1875. 0x8000 string JFS1
  1876. # Because it's text-only magic, check a binary value (version) to be sure.
  1877. # Should always be 2, but mkfs.jfs writes it as 1. Needs to be 2 or 1 to be
  1878. # mountable.
  1879. >&0 lelong <3 JFS2 filesystem image
  1880. # Label is followed by a UUID; we have to limit string length to avoid
  1881. # appending the UUID in the case of a 16-byte label.
  1882. >>&144 regex [\x20-\x7E]{1,16} (label "%s")
  1883. >>&0 lequad x \b, %lld blocks
  1884. >>&8 lelong x \b, blocksize %d
  1885. >>&32 lelong&0x00000006 >0 (dirty)
  1886. >>&36 lelong >0 (compressed)
  1887. # LFS
  1888. 0 lelong 0x070162 LFS filesystem image
  1889. >4 lelong 1 version 1,
  1890. >>8 lelong x \b blocks %u,
  1891. >>12 lelong x \b blocks per segment %u,
  1892. >4 lelong 2 version 2,
  1893. >>8 lelong x \b fragments %u,
  1894. >>12 lelong x \b bytes per segment %u,
  1895. >16 lelong x \b disk blocks %u,
  1896. >20 lelong x \b block size %u,
  1897. >24 lelong x \b fragment size %u,
  1898. >28 lelong x \b fragments per block %u,
  1899. >32 lelong x \b start for free list %u,
  1900. >36 lelong x \b number of free blocks %d,
  1901. >40 lelong x \b number of files %u,
  1902. >44 lelong x \b blocks available for writing %d,
  1903. >48 lelong x \b inodes in cache %d,
  1904. >52 lelong x \b inode file disk address 0x%x,
  1905. >56 lelong x \b inode file inode number %u,
  1906. >60 lelong x \b address of last segment written 0x%x,
  1907. >64 lelong x \b address of next segment to write 0x%x,
  1908. >68 lelong x \b address of current segment written 0x%x
  1909. 0 string td\000 floppy image data (TeleDisk, compressed)
  1910. 0 string TD\000 floppy image data (TeleDisk)
  1911. 0 string CQ\024 floppy image data (CopyQM,
  1912. >16 leshort x %d sectors,
  1913. >18 leshort x %d heads.)
  1914. 0 string ACT\020Apricot\020disk\020image\032\004 floppy image data (ApriDisk)
  1915. 0 beshort 0xAA58 floppy image data (IBM SaveDskF, old)
  1916. 0 beshort 0xAA59 floppy image data (IBM SaveDskF)
  1917. 0 beshort 0xAA5A floppy image data (IBM SaveDskF, compressed)
  1918. 0 string \074CPM_Disk\076 disk image data (YAZE)