filesystems 57 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571
  1. #------------------------------------------------------------------------------
  2. # $File: filesystems,v 1.61 2011/01/10 14:01:10 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 41 byte header + first sectors of disc
  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. # Joerg Jenderek
  44. # DOS Emulator image is 128 byte, null right padded header + harddisc image
  45. 0 string DOSEMU\0
  46. >0x27E leshort 0xAA55
  47. #offset is 128
  48. >>19 ubyte 128
  49. >>>(19.b-1) ubyte 0x0 DOS Emulator image
  50. >>>>7 ulelong >0 \b, %u heads
  51. >>>>11 ulelong >0 \b, %d sectors/track
  52. >>>>15 ulelong >0 \b, %d cylinders
  53. # updated by Joerg Jenderek at Sep 2007
  54. # only for sector sizes with 512 or more Bytes
  55. 0x1FE leshort 0xAA55 x86 boot sector
  56. # to do also for sectors < than 512 Bytes and some other files, GRR
  57. #30 search/481 \x55\xAA x86 boot sector
  58. # not for BeOS floppy 1440k, MBRs
  59. #(11.s-2) uleshort 0xAA55 x86 boot sector
  60. >2 string OSBS \b, OS/BS MBR
  61. # J\xf6rg Jenderek <joerg dot jenderek at web dot de>
  62. >0x8C string Invalid\ partition\ table \b, MS-DOS MBR
  63. # dr-dos with some upper-, lowercase variants
  64. >0x9D string Invalid\ partition\ table$
  65. >>181 string No\ Operating\ System$
  66. >>>201 string Operating\ System\ load\ error$ \b, DR-DOS MBR, Version 7.01 to 7.03
  67. >0x9D string Invalid\ partition\ table$
  68. >>181 string No\ operating\ system$
  69. >>>201 string Operating\ system\ load\ error$ \b, DR-DOS MBR, Version 7.01 to 7.03
  70. >342 string Invalid\ partition\ table$
  71. >>366 string No\ operating\ system$
  72. >>>386 string Operating\ system\ load\ error$ \b, DR-DOS MBR, version 7.01 to 7.03
  73. >295 string NEWLDR\0
  74. >>302 string Bad\ PT\ $
  75. >>>310 string No\ OS\ $
  76. >>>>317 string OS\ load\ err$
  77. >>>>>329 string Moved\ or\ missing\ IBMBIO.LDR\n\r
  78. >>>>>>358 string Press\ any\ key\ to\ continue.\n\r$
  79. >>>>>>>387 string Copyright\ (c)\ 1984,1998
  80. >>>>>>>>411 string Caldera\ Inc.\0 \b, DR-DOS MBR (IBMBIO.LDR)
  81. >0x10F string Ung\201ltige\ Partitionstabelle \b, MS-DOS MBR, german version 4.10.1998, 4.10.2222
  82. >>0x1B8 ubelong >0 \b, Serial 0x%-.4x
  83. >0x8B string Ung\201ltige\ Partitionstabelle \b, MS-DOS MBR, german version 5.00 to 4.00.950
  84. >271 string Invalid\ partition\ table\0
  85. >>295 string Error\ loading\ operating\ system\0
  86. >>>326 string Missing\ operating\ system\0 \b, mbr
  87. #
  88. >139 string Invalid\ partition\ table\0
  89. >>163 string Error\ loading\ operating\ system\0
  90. >>>194 string Missing\ operating\ system\0 \b, Microsoft Windows XP mbr
  91. # http://www.heise.de/ct/05/09/006/ page 184
  92. #HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices\DosDevices\?:=Serial4Bytes+8Bytes
  93. >>>>0x1B8 ulelong >0 \b,Serial 0x%-.4x
  94. >300 string Invalid\ partition\ table\0
  95. >>324 string Error\ loading\ operating\ system\0
  96. >>>355 string Missing\ operating\ system\0 \b, Microsoft Windows XP MBR
  97. #??>>>389 string Invalid\ system\ disk
  98. >>>>0x1B8 ulelong >0 \b, Serial 0x%-.4x
  99. >300 string Ung\201ltige\ Partitionstabelle
  100. #split string to avoid error: String too long
  101. >>328 string Fehler\ beim\ Laden\
  102. >>>346 string des\ Betriebssystems
  103. >>>>366 string Betriebssystem\ nicht\ vorhanden \b, Microsoft Windows XP MBR (german)
  104. >>>>>0x1B8 ulelong >0 \b, Serial 0x%-.4x
  105. #>0x145 string Default:\ F \b, FREE-DOS MBR
  106. #>0x14B string Default:\ F \b, FREE-DOS 1.0 MBR
  107. >0x145 search/7 Default:\ F \b, FREE-DOS MBR
  108. #>>313 string F0\ .\ .\ .
  109. #>>>322 string disk\ 1
  110. #>>>>382 string FAT3
  111. >64 string no\ active\ partition\ found
  112. >>96 string read\ error\ while\ reading\ drive \b, FREE-DOS Beta 0.9 MBR
  113. # Ranish Partition Manager http://www.ranish.com/part/
  114. >387 search/4 \0\ Error!\r
  115. >>378 search/7 Virus!
  116. >>>397 search/4 Booting\
  117. >>>>408 search/4 HD1/\0 \b, Ranish MBR (
  118. >>>>>416 string Writing\ changes... \b2.37
  119. >>>>>>438 ubyte x \b,0x%x dots
  120. >>>>>>440 ubyte >0 \b,virus check
  121. >>>>>>441 ubyte >0 \b,partition %c
  122. #2.38,2.42,2.44
  123. >>>>>416 string !Writing\ changes... \b
  124. >>>>>>418 ubyte 1 \bvirus check,
  125. >>>>>>419 ubyte x \b0x%x seconds
  126. >>>>>>420 ubyte&0x0F >0 \b,partition
  127. >>>>>>>420 ubyte&0x0F <5 \b %x
  128. >>>>>>>420 ubyte&0x0F 0Xf \b ask
  129. >>>>>420 ubyte x \b)
  130. #
  131. >271 string Operating\ system\ loading
  132. >>296 string error\r \b, SYSLINUX MBR (2.10)
  133. # http://www.acronis.de/
  134. >362 string MBR\ Error\ \0\r
  135. >>376 string ress\ any\ key\ to\
  136. >>>392 string boot\ from\ floppy...\0 \b, Acronis MBR
  137. # added by Joerg Jenderek
  138. # http://www.visopsys.org/
  139. # http://partitionlogic.org.uk/
  140. >309 string No\ bootable\ partition\ found\r
  141. >>339 string I/O\ Error\ reading\ boot\ sector\r \b, Visopsys MBR
  142. >349 string No\ bootable\ partition\ found\r
  143. >>379 string I/O\ Error\ reading\ boot\ sector\r \b, simple Visopsys MBR
  144. # bootloader, bootmanager
  145. >0x40 string SBML
  146. # label with 11 characters of FAT 12 bit filesystem
  147. >>43 string SMART\ BTMGR
  148. >>>430 string SBMK\ Bad!\r \b, Smart Boot Manager
  149. # OEM-ID not always "SBM"
  150. #>>>>3 strings SBM
  151. >>>>6 string >\0 \b, version %s
  152. >382 string XOSLLOADXCF \b, eXtended Operating System Loader
  153. >6 string LILO \b, LInux i386 boot LOader
  154. >>120 string LILO \b, version 22.3.4 SuSe
  155. >>172 string LILO \b, version 22.5.8 Debian
  156. # updated by Joerg Jenderek at Oct 2008
  157. # variables according to grub-0.97/stage1/stage1.S or
  158. # http://www.gnu.org/software/grub/manual/grub.html#Embedded-data
  159. # usual values are marked with comments to get only informations of strange GRUB loaders
  160. >342 search/60 \0Geom\0
  161. #>0 ulelong x %x=0x009048EB , 0x2a9048EB 0
  162. >>0x41 ubyte <2
  163. >>>0x3E ubyte >2 \b; GRand Unified Bootloader
  164. # 0x3 for 0.5.95,0.93,0.94,0.96 0x4 for 1.90
  165. >>>>0x3E ubyte x \b, stage1 version 0x%x
  166. #If it is 0xFF, use a drive passed by BIOS
  167. >>>>0x40 ubyte <0xFF \b, boot drive 0x%x
  168. # in most case 0,1,0x2e for GRUB 0.5.95
  169. >>>>0x41 ubyte >0 \b, LBA flag 0x%x
  170. >>>>0x42 uleshort <0x8000 \b, stage2 address 0x%x
  171. #>>>>0x42 uleshort =0x8000 \b, stage2 address 0x%x (usual)
  172. >>>>0x42 uleshort >0x8000 \b, stage2 address 0x%x
  173. #>>>>0x44 ulelong =1 \b, 1st sector stage2 0x%x (default)
  174. >>>>0x44 ulelong >1 \b, 1st sector stage2 0x%x
  175. >>>>0x48 uleshort <0x800 \b, stage2 segment 0x%x
  176. #>>>>0x48 uleshort =0x800 \b, stage2 segment 0x%x (usual)
  177. >>>>0x48 uleshort >0x800 \b, stage2 segment 0x%x
  178. >>>>402 string Geom\0Hard\ Disk\0Read\0\ Error\0
  179. >>>>>394 string stage1 \b, GRUB version 0.5.95
  180. >>>>382 string Geom\0Hard\ Disk\0Read\0\ Error\0
  181. >>>>>376 string GRUB\ \0 \b, GRUB version 0.93 or 1.94
  182. >>>>383 string Geom\0Hard\ Disk\0Read\0\ Error\0
  183. >>>>>377 string GRUB\ \0 \b, GRUB version 0.94
  184. >>>>385 string Geom\0Hard\ Disk\0Read\0\ Error\0
  185. >>>>>379 string GRUB\ \0 \b, GRUB version 0.95 or 0.96
  186. >>>>391 string Geom\0Hard\ Disk\0Read\0\ Error\0
  187. >>>>>385 string GRUB\ \0 \b, GRUB version 0.97
  188. #unkown version
  189. >>>343 string Geom\0Read\0\ Error\0
  190. >>>>321 string Loading\ stage1.5 \b, GRUB version x.y
  191. >>>380 string Geom\0Hard\ Disk\0Read\0\ Error\0
  192. >>>>374 string GRUB\ \0 \b, GRUB version n.m
  193. # http://syslinux.zytor.com/
  194. >478 string Boot\ failed\r
  195. >>495 string LDLINUX\ SYS \b, SYSLINUX bootloader (1.62)
  196. >480 string Boot\ failed\r
  197. >>495 string LDLINUX\ SYS \b, SYSLINUX bootloader (2.06 or 2.11)
  198. >484 string Boot\ error\r \b, SYSLINUX bootloader (3.11)
  199. >395 string chksum\0\ ERROR!\0 \b, Gujin bootloader
  200. # http://www.bcdwb.de/bcdw/index_e.htm
  201. >3 string BCDL
  202. >>498 string BCDL\ \ \ \ BIN \b, Bootable CD Loader (1.50Z)
  203. # mbr partition table entries
  204. # OEM-ID does not contain MicroSoft,NEWLDR,DOS,SYSLINUX,or MTOOLs
  205. >3 string !MS
  206. >>3 string !SYSLINUX
  207. >>>3 string !MTOOL
  208. >>>>3 string !NEWLDR
  209. >>>>>5 string !DOS
  210. # not FAT (32 bit)
  211. >>>>>>82 string !FAT32
  212. #not Linux kernel
  213. >>>>>>>514 string !HdrS
  214. #not BeOS
  215. >>>>>>>>422 string !Be\ Boot\ Loader
  216. # active flag 0 or 0x80 and type > 0
  217. >>>>>>>>>446 ubyte <0x81
  218. >>>>>>>>>>446 ubyte&0x7F 0
  219. >>>>>>>>>>>450 ubyte >0 \b; partition 1: ID=0x%x
  220. >>>>>>>>>>>>446 ubyte 0x80 \b, active
  221. >>>>>>>>>>>>447 ubyte x \b, starthead %u
  222. #>>>>>>>>>>>>448 ubyte x \b, start C_S: 0x%x
  223. #>>>>>>>>>>>>448 ubeshort&1023 x \b, startcylinder? %d
  224. >>>>>>>>>>>>454 ulelong x \b, startsector %u
  225. >>>>>>>>>>>>458 ulelong x \b, %u sectors
  226. #
  227. >>>>>>>>>462 ubyte <0x81
  228. >>>>>>>>>>462 ubyte&0x7F 0
  229. >>>>>>>>>>>466 ubyte >0 \b; partition 2: ID=0x%x
  230. >>>>>>>>>>>>462 ubyte 0x80 \b, active
  231. >>>>>>>>>>>>463 ubyte x \b, starthead %u
  232. #>>>>>>>>>>>>464 ubyte x \b, start C_S: 0x%x
  233. #>>>>>>>>>>>>464 ubeshort&1023 x \b, startcylinder? %d
  234. >>>>>>>>>>>>470 ulelong x \b, startsector %u
  235. >>>>>>>>>>>>474 ulelong x \b, %u sectors
  236. #
  237. >>>>>>>>>478 ubyte <0x81
  238. >>>>>>>>>>478 ubyte&0x7F 0
  239. >>>>>>>>>>>482 ubyte >0 \b; partition 3: ID=0x%x
  240. >>>>>>>>>>>>478 ubyte 0x80 \b, active
  241. >>>>>>>>>>>>479 ubyte x \b, starthead %u
  242. #>>>>>>>>>>>>480 ubyte x \b, start C_S: 0x%x
  243. #>>>>>>>>>>>>481 ubyte x \b, start C2S: 0x%x
  244. #>>>>>>>>>>>>480 ubeshort&1023 x \b, startcylinder? %d
  245. >>>>>>>>>>>>486 ulelong x \b, startsector %u
  246. >>>>>>>>>>>>490 ulelong x \b, %u sectors
  247. #
  248. >>>>>>>>>494 ubyte <0x81
  249. >>>>>>>>>>494 ubyte&0x7F 0
  250. >>>>>>>>>>>498 ubyte >0 \b; partition 4: ID=0x%x
  251. >>>>>>>>>>>>494 ubyte 0x80 \b, active
  252. >>>>>>>>>>>>495 ubyte x \b, starthead %u
  253. #>>>>>>>>>>>>496 ubyte x \b, start C_S: 0x%x
  254. #>>>>>>>>>>>>496 ubeshort&1023 x \b, startcylinder? %d
  255. >>>>>>>>>>>>502 ulelong x \b, startsector %u
  256. >>>>>>>>>>>>506 ulelong x \b, %u sectors
  257. # mbr partition table entries end
  258. # http://www.acronis.de/
  259. #FAT label=ACRONIS\ SZ
  260. #OEM-ID=BOOTWIZ0
  261. >442 string Non-system\ disk,\
  262. >>459 string press\ any\ key...\x7\0 \b, Acronis Startup Recovery Loader
  263. # DOS names like F11.SYS are 8 right space padded bytes+3 bytes
  264. >>>477 ubyte&0xDF >0
  265. >>>>477 string x \b %-.3s
  266. >>>>>480 ubyte&0xDF >0
  267. >>>>>>480 string x \b%-.5s
  268. >>>>485 ubyte&0xDF >0
  269. >>>>>485 string x \b.%-.3s
  270. #
  271. >185 string FDBOOT\ Version\
  272. >>204 string \rNo\ Systemdisk.\
  273. >>>220 string Booting\ from\ harddisk.\n\r
  274. >>>245 string Cannot\ load\ from\ harddisk.\n\r
  275. >>>>273 string Insert\ Systemdisk\
  276. >>>>>291 string and\ press\ any\ key.\n\r \b, FDBOOT harddisk Bootloader
  277. >>>>>>200 string >\0 \b, version %-3s
  278. >242 string Bootsector\ from\ C.H.\ Hochst\204
  279. >>278 string No\ Systemdisk.\
  280. >>>293 string Booting\ from\ harddisk.\n\r
  281. >>>441 string Cannot\ load\ from\ harddisk.\n\r
  282. >>>>469 string Insert\ Systemdisk\
  283. >>>>>487 string and\ press\ any\ key.\n\r \b, WinImage harddisk Bootloader
  284. >>>>>>209 string >\0 \b, version %-4.4s
  285. >(1.b+2) ubyte 0xe
  286. >>(1.b+3) ubyte 0x1f
  287. >>>(1.b+4) ubyte 0xbe
  288. >>>>(1.b+5) ubyte 0x77
  289. >>>>(1.b+6) ubyte 0x7c
  290. >>>>>(1.b+7) ubyte 0xac
  291. >>>>>>(1.b+8) ubyte 0x22
  292. >>>>>>>(1.b+9) ubyte 0xc0
  293. >>>>>>>>(1.b+10) ubyte 0x74
  294. >>>>>>>>>(1.b+11) ubyte 0xb
  295. >>>>>>>>>>(1.b+12) ubyte 0x56
  296. >>>>>>>>>>(1.b+13) ubyte 0xb4 \b, mkdosfs boot message display
  297. >214 string Please\ try\ to\ install\ FreeDOS\ \b, DOS Emulator boot message display
  298. #>>244 string from\ dosemu-freedos-*-bin.tgz\r
  299. #>>>170 string Sorry,\ could\ not\ load\ an\
  300. #>>>>195 string operating\ system.\r\n
  301. #
  302. >103 string This\ is\ not\ a\ bootable\ disk.\
  303. >>132 string Please\ insert\ a\ bootable\
  304. >>>157 string floppy\ and\r\n
  305. >>>>169 string press\ any\ key\ to\ try\ again...\r \b, FREE-DOS message display
  306. #
  307. >66 string Solaris\ Boot\ Sector
  308. >>99 string Incomplete\ MDBoot\ load.
  309. >>>89 string Version \b, Sun Solaris Bootloader
  310. >>>>97 byte x version %c
  311. #
  312. >408 string OS/2\ !!\ SYS01475\r\0
  313. >>429 string OS/2\ !!\ SYS02025\r\0
  314. >>>450 string OS/2\ !!\ SYS02027\r\0
  315. >>>469 string OS2BOOT\ \ \ \ \b, IBM OS/2 Warp bootloader
  316. #
  317. >409 string OS/2\ !!\ SYS01475\r\0
  318. >>430 string OS/2\ !!\ SYS02025\r\0
  319. >>>451 string OS/2\ !!\ SYS02027\r\0
  320. >>>470 string OS2BOOT\ \ \ \ \b, IBM OS/2 Warp Bootloader
  321. >112 string This\ disk\ is\ not\ bootable\r
  322. >>142 string If\ you\ wish\ to\ make\ it\ bootable
  323. >>>176 string run\ the\ DOS\ program\ SYS\
  324. >>>200 string after\ the\r
  325. >>>>216 string system\ has\ been\ loaded\r\n
  326. >>>>>242 string Please\ insert\ a\ DOS\ diskette\
  327. >>>>>271 string into\r\n\ the\ drive\ and\
  328. >>>>>>292 string strike\ any\ key...\0 \b, IBM OS/2 Warp message display
  329. # XP
  330. >430 string NTLDR\ is\ missing\xFF\r\n
  331. >>449 string Disk\ error\xFF\r\n
  332. >>>462 string Press\ any\ key\ to\ restart\r \b, Microsoft Windows XP Bootloader
  333. # DOS names like NTLDR,CMLDR,$LDR$ are 8 right space padded bytes+3 bytes
  334. >>>>417 ubyte&0xDF >0
  335. >>>>>417 string x %-.5s
  336. >>>>>>422 ubyte&0xDF >0
  337. >>>>>>>422 string x \b%-.3s
  338. >>>>>425 ubyte&0xDF >0
  339. >>>>>>425 string >\ \b.%-.3s
  340. #
  341. >>>>371 ubyte >0x20
  342. >>>>>368 ubyte&0xDF >0
  343. >>>>>>368 string x %-.5s
  344. >>>>>>>373 ubyte&0xDF >0
  345. >>>>>>>>373 string x \b%-.3s
  346. >>>>>>376 ubyte&0xDF >0
  347. >>>>>>>376 string x \b.%-.3s
  348. #
  349. >430 string NTLDR\ nicht\ gefunden\xFF\r\n
  350. >>453 string Datentr\204gerfehler\xFF\r\n
  351. >>>473 string Neustart\ mit\ beliebiger\ Taste\r \b, Microsoft Windows XP Bootloader (german)
  352. >>>>417 ubyte&0xDF >0
  353. >>>>>417 string x %-.5s
  354. >>>>>>422 ubyte&0xDF >0
  355. >>>>>>>422 string x \b%-.3s
  356. >>>>>425 ubyte&0xDF >0
  357. >>>>>>425 string >\ \b.%-.3s
  358. # offset variant
  359. >>>>379 string \0
  360. >>>>>368 ubyte&0xDF >0
  361. >>>>>>368 string x %-.5s
  362. >>>>>>>373 ubyte&0xDF >0
  363. >>>>>>>>373 string x \b%-.3s
  364. #
  365. >430 string NTLDR\ fehlt\xFF\r\n
  366. >>444 string Datentr\204gerfehler\xFF\r\n
  367. >>>464 string Neustart\ mit\ beliebiger\ Taste\r \b, Microsoft Windows XP Bootloader (2.german)
  368. >>>>417 ubyte&0xDF >0
  369. >>>>>417 string x %-.5s
  370. >>>>>>422 ubyte&0xDF >0
  371. >>>>>>>422 string x \b%-.3s
  372. >>>>>425 ubyte&0xDF >0
  373. >>>>>>425 string >\ \b.%-.3s
  374. # variant
  375. >>>>371 ubyte >0x20
  376. >>>>>368 ubyte&0xDF >0
  377. >>>>>>368 string x %-.5s
  378. >>>>>>>373 ubyte&0xDF >0
  379. >>>>>>>>373 string x \b%-.3s
  380. >>>>>>376 ubyte&0xDF >0
  381. >>>>>>>376 string x \b.%-.3s
  382. #
  383. >430 string NTLDR\ fehlt\xFF\r\n
  384. >>444 string Medienfehler\xFF\r\n
  385. >>>459 string Neustart:\ Taste\ dr\201cken\r \b, Microsoft Windows XP Bootloader (3.german)
  386. >>>>371 ubyte >0x20
  387. >>>>>368 ubyte&0xDF >0
  388. >>>>>>368 string x %-.5s
  389. >>>>>>>373 ubyte&0xDF >0
  390. >>>>>>>>373 string x \b%-.3s
  391. >>>>>>376 ubyte&0xDF >0
  392. >>>>>>>376 string x \b.%-.3s
  393. # variant
  394. >>>>417 ubyte&0xDF >0
  395. >>>>>417 string x %-.5s
  396. >>>>>>422 ubyte&0xDF >0
  397. >>>>>>>422 string x \b%-.3s
  398. >>>>>425 ubyte&0xDF >0
  399. >>>>>>425 string >\ \b.%-.3s
  400. #
  401. >430 string Datentr\204ger\ entfernen\xFF\r\n
  402. >>454 string Medienfehler\xFF\r\n
  403. >>>469 string Neustart:\ Taste\ dr\201cken\r \b, Microsoft Windows XP Bootloader (4.german)
  404. >>>>379 string \0
  405. >>>>>368 ubyte&0xDF >0
  406. >>>>>>368 string x %-.5s
  407. >>>>>>>373 ubyte&0xDF >0
  408. >>>>>>>>373 string x \b%-.3s
  409. >>>>>>376 ubyte&0xDF >0
  410. >>>>>>>376 string x \b.%-.3s
  411. # variant
  412. >>>>417 ubyte&0xDF >0
  413. >>>>>417 string x %-.5s
  414. >>>>>>422 ubyte&0xDF >0
  415. >>>>>>>422 string x \b%-.3s
  416. >>>>>425 ubyte&0xDF >0
  417. >>>>>>425 string >\ \b.%-.3s
  418. #
  419. #>3 string NTFS\ \ \ \
  420. >389 string Fehler\ beim\ Lesen\
  421. >>407 string des\ Datentr\204gers
  422. >>>426 string NTLDR\ fehlt
  423. >>>>440 string NTLDR\ ist\ komprimiert
  424. >>>>>464 string Neustart\ mit\ Strg+Alt+Entf\r \b, Microsoft Windows XP Bootloader NTFS (german)
  425. #>3 string NTFS\ \ \ \
  426. >313 string A\ disk\ read\ error\ occurred.\r
  427. >>345 string A\ kernel\ file\ is\ missing\
  428. >>>370 string from\ the\ disk.\r
  429. >>>>484 string NTLDR\ is\ compressed
  430. >>>>>429 string Insert\ a\ system\ diskette\
  431. >>>>>>454 string and\ restart\r\nthe\ system.\r \b, Microsoft Windows XP Bootloader NTFS
  432. # DOS loader variants different languages,offsets
  433. >472 ubyte&0xDF >0
  434. >>389 string Invalid\ system\ disk\xFF\r\n
  435. >>>411 string Disk\ I/O\ error
  436. >>>>428 string Replace\ the\ disk,\ and\
  437. >>>>>455 string press\ any\ key \b, Microsoft Windows 98 Bootloader
  438. #IO.SYS
  439. >>>>>>472 ubyte&0xDF >0
  440. >>>>>>>472 string x \b %-.2s
  441. >>>>>>>>474 ubyte&0xDF >0
  442. >>>>>>>>>474 string x \b%-.5s
  443. >>>>>>>>>>479 ubyte&0xDF >0
  444. >>>>>>>>>>>479 string x \b%-.1s
  445. >>>>>>>480 ubyte&0xDF >0
  446. >>>>>>>>480 string x \b.%-.3s
  447. #MSDOS.SYS
  448. >>>>>>>483 ubyte&0xDF >0 \b+
  449. >>>>>>>>483 string x \b%-.5s
  450. >>>>>>>>>488 ubyte&0xDF >0
  451. >>>>>>>>>>488 string x \b%-.3s
  452. >>>>>>>>491 ubyte&0xDF >0
  453. >>>>>>>>>491 string x \b.%-.3s
  454. #
  455. >>390 string Invalid\ system\ disk\xFF\r\n
  456. >>>412 string Disk\ I/O\ error\xFF\r\n
  457. >>>>429 string Replace\ the\ disk,\ and\
  458. >>>>>451 string then\ press\ any\ key\r \b, Microsoft Windows 98 Bootloader
  459. >>388 string Ungueltiges\ System\ \xFF\r\n
  460. >>>410 string E/A-Fehler\ \ \ \ \xFF\r\n
  461. >>>>427 string Datentraeger\ wechseln\ und\
  462. >>>>>453 string Taste\ druecken\r \b, Microsoft Windows 95/98/ME Bootloader (german)
  463. #WINBOOT.SYS only not spaces (0xDF)
  464. >>>>>>497 ubyte&0xDF >0
  465. >>>>>>>497 string x %-.5s
  466. >>>>>>>>502 ubyte&0xDF >0
  467. >>>>>>>>>502 string x \b%-.1s
  468. >>>>>>>>>>503 ubyte&0xDF >0
  469. >>>>>>>>>>>503 string x \b%-.1s
  470. >>>>>>>>>>>>504 ubyte&0xDF >0
  471. >>>>>>>>>>>>>504 string x \b%-.1s
  472. >>>>>>505 ubyte&0xDF >0
  473. >>>>>>>505 string x \b.%-.3s
  474. #IO.SYS
  475. >>>>>>472 ubyte&0xDF >0 or
  476. >>>>>>>472 string x \b %-.2s
  477. >>>>>>>>474 ubyte&0xDF >0
  478. >>>>>>>>>474 string x \b%-.5s
  479. >>>>>>>>>>479 ubyte&0xDF >0
  480. >>>>>>>>>>>479 string x \b%-.1s
  481. >>>>>>>480 ubyte&0xDF >0
  482. >>>>>>>>480 string x \b.%-.3s
  483. #MSDOS.SYS
  484. >>>>>>>483 ubyte&0xDF >0 \b+
  485. >>>>>>>>483 string x \b%-.5s
  486. >>>>>>>>>488 ubyte&0xDF >0
  487. >>>>>>>>>>488 string x \b%-.3s
  488. >>>>>>>>491 ubyte&0xDF >0
  489. >>>>>>>>>491 string x \b.%-.3s
  490. #
  491. >>390 string Ungueltiges\ System\ \xFF\r\n
  492. >>>412 string E/A-Fehler\ \ \ \ \xFF\r\n
  493. >>>>429 string Datentraeger\ wechseln\ und\
  494. >>>>>455 string Taste\ druecken\r \b, Microsoft Windows 95/98/ME Bootloader (German)
  495. #WINBOOT.SYS only not spaces (0xDF)
  496. >>>>>>497 ubyte&0xDF >0
  497. >>>>>>>497 string x %-.7s
  498. >>>>>>>>504 ubyte&0xDF >0
  499. >>>>>>>>>504 string x \b%-.1s
  500. >>>>>>505 ubyte&0xDF >0
  501. >>>>>>>505 string x \b.%-.3s
  502. #IO.SYS
  503. >>>>>>472 ubyte&0xDF >0 or
  504. >>>>>>>472 string x \b %-.2s
  505. >>>>>>>>474 ubyte&0xDF >0
  506. >>>>>>>>>474 string x \b%-.6s
  507. >>>>>>>480 ubyte&0xDF >0
  508. >>>>>>>>480 string x \b.%-.3s
  509. #MSDOS.SYS
  510. >>>>>>>483 ubyte&0xDF >0 \b+
  511. >>>>>>>>483 string x \b%-.5s
  512. >>>>>>>>>488 ubyte&0xDF >0
  513. >>>>>>>>>>488 string x \b%-.3s
  514. >>>>>>>>491 ubyte&0xDF >0
  515. >>>>>>>>>491 string x \b.%-.3s
  516. #
  517. >>389 string Ungueltiges\ System\ \xFF\r\n
  518. >>>411 string E/A-Fehler\ \ \ \ \xFF\r\n
  519. >>>>428 string Datentraeger\ wechseln\ und\
  520. >>>>>454 string Taste\ druecken\r \b, Microsoft Windows 95/98/ME Bootloader (GERMAN)
  521. # DOS names like IO.SYS,WINBOOT.SYS,MSDOS.SYS,WINBOOT.INI are 8 right space padded bytes+3 bytes
  522. >>>>>>472 string x %-.2s
  523. >>>>>>>474 ubyte&0xDF >0
  524. >>>>>>>>474 string x \b%-.5s
  525. >>>>>>>>479 ubyte&0xDF >0
  526. >>>>>>>>>479 string x \b%-.1s
  527. >>>>>>480 ubyte&0xDF >0
  528. >>>>>>>480 string x \b.%-.3s
  529. >>>>>>483 ubyte&0xDF >0 \b+
  530. >>>>>>>483 string x \b%-.5s
  531. >>>>>>>488 ubyte&0xDF >0
  532. >>>>>>>>488 string x \b%-.2s
  533. >>>>>>>>490 ubyte&0xDF >0
  534. >>>>>>>>>490 string x \b%-.1s
  535. >>>>>>>491 ubyte&0xDF >0
  536. >>>>>>>>491 string x \b.%-.3s
  537. >479 ubyte&0xDF >0
  538. >>416 string Kein\ System\ oder\
  539. >>>433 string Laufwerksfehler
  540. >>>>450 string Wechseln\ und\ Taste\ dr\201cken \b, Microsoft DOS Bootloader (german)
  541. #IO.SYS
  542. >>>>>479 string x \b %-.2s
  543. >>>>>>481 ubyte&0xDF >0
  544. >>>>>>>481 string x \b%-.6s
  545. >>>>>487 ubyte&0xDF >0
  546. >>>>>>487 string x \b.%-.3s
  547. #MSDOS.SYS
  548. >>>>>>490 ubyte&0xDF >0 \b+
  549. >>>>>>>490 string x \b%-.5s
  550. >>>>>>>>495 ubyte&0xDF >0
  551. >>>>>>>>>495 string x \b%-.3s
  552. >>>>>>>498 ubyte&0xDF >0
  553. >>>>>>>>498 string x \b.%-.3s
  554. #
  555. >376 search/41 Non-System\ disk\ or\
  556. >>395 search/41 disk\ error\r
  557. >>>407 search/41 Replace\ and\
  558. >>>>419 search/41 press\ \b,
  559. >>>>419 search/41 strike\ \b, old
  560. >>>>426 search/41 any\ key\ when\ ready\r MS or PC-DOS bootloader
  561. #449 Disk\ Boot\ failure\r MS 3.21
  562. #466 Boot\ Failure\r MS 3.30
  563. >>>>>468 search/18 \0
  564. #IO.SYS,IBMBIO.COM
  565. >>>>>>&0 string x \b %-.2s
  566. >>>>>>>&-20 ubyte&0xDF >0
  567. >>>>>>>>&-1 string x \b%-.4s
  568. >>>>>>>>>&-16 ubyte&0xDF >0
  569. >>>>>>>>>>&-1 string x \b%-.2s
  570. >>>>>>&8 ubyte&0xDF >0 \b.
  571. >>>>>>>&-1 string x \b%-.3s
  572. #MSDOS.SYS,IBMDOS.COM
  573. >>>>>>&11 ubyte&0xDF >0 \b+
  574. >>>>>>>&-1 string x \b%-.5s
  575. >>>>>>>>&-6 ubyte&0xDF >0
  576. >>>>>>>>>&-1 string x \b%-.1s
  577. >>>>>>>>>>&-5 ubyte&0xDF >0
  578. >>>>>>>>>>>&-1 string x \b%-.2s
  579. >>>>>>>&7 ubyte&0xDF >0 \b.
  580. >>>>>>>>&-1 string x \b%-.3s
  581. >441 string Cannot\ load\ from\ harddisk.\n\r
  582. >>469 string Insert\ Systemdisk\
  583. >>>487 string and\ press\ any\ key.\n\r \b, MS (2.11) DOS bootloader
  584. #>43 string \224R-LOADER\ \ SYS =label
  585. >54 string SYS
  586. >>324 string VASKK
  587. >>>495 string NEWLDR\0 \b, DR-DOS Bootloader (LOADER.SYS)
  588. #
  589. >98 string Press\ a\ key\ to\ retry\0\r
  590. >>120 string Cannot\ find\ file\ \0\r
  591. >>>139 string Disk\ read\ error\0\r
  592. >>>>156 string Loading\ ...\0 \b, DR-DOS (3.41) Bootloader
  593. #DRBIOS.SYS
  594. >>>>>44 ubyte&0xDF >0
  595. >>>>>>44 string x \b %-.6s
  596. >>>>>>>50 ubyte&0xDF >0
  597. >>>>>>>>50 string x \b%-.2s
  598. >>>>>>52 ubyte&0xDF >0
  599. >>>>>>>52 string x \b.%-.3s
  600. #
  601. >70 string IBMBIO\ \ COM
  602. >>472 string Cannot\ load\ DOS!\
  603. >>>489 string Any\ key\ to\ retry \b, DR-DOS Bootloader
  604. >>471 string Cannot\ load\ DOS\
  605. >>487 string press\ key\ to\ retry \b, Open-DOS Bootloader
  606. #??
  607. >444 string KERNEL\ \ SYS
  608. >>314 string BOOT\ error! \b, FREE-DOS Bootloader
  609. >499 string KERNEL\ \ SYS
  610. >>305 string BOOT\ err!\0 \b, Free-DOS Bootloader
  611. >449 string KERNEL\ \ SYS
  612. >>319 string BOOT\ error! \b, FREE-DOS 0.5 Bootloader
  613. #
  614. >449 string Loading\ FreeDOS
  615. >>0x1AF ulelong >0 \b, FREE-DOS 0.95,1.0 Bootloader
  616. >>>497 ubyte&0xDF >0
  617. >>>>497 string x \b %-.6s
  618. >>>>>503 ubyte&0xDF >0
  619. >>>>>>503 string x \b%-.1s
  620. >>>>>>>504 ubyte&0xDF >0
  621. >>>>>>>>504 string x \b%-.1s
  622. >>>>505 ubyte&0xDF >0
  623. >>>>>505 string x \b.%-.3s
  624. #
  625. >331 string Error!.0 \b, FREE-DOS 1.0 bootloader
  626. #
  627. >125 string Loading\ FreeDOS...\r
  628. >>311 string BOOT\ error!\r \b, FREE-DOS bootloader
  629. >>>441 ubyte&0xDF >0
  630. >>>>441 string x \b %-.6s
  631. >>>>>447 ubyte&0xDF >0
  632. >>>>>>447 string x \b%-.1s
  633. >>>>>>>448 ubyte&0xDF >0
  634. >>>>>>>>448 string x \b%-.1s
  635. >>>>449 ubyte&0xDF >0
  636. >>>>>449 string x \b.%-.3s
  637. >124 string FreeDOS\0
  638. >>331 string \ err\0 \b, FREE-DOS BETa 0.9 Bootloader
  639. # DOS names like KERNEL.SYS,KERNEL16.SYS,KERNEL32.SYS,METAKERN.SYS are 8 right space padded bytes+3 bytes
  640. >>>497 ubyte&0xDF >0
  641. >>>>497 string x \b %-.6s
  642. >>>>>503 ubyte&0xDF >0
  643. >>>>>>503 string x \b%-.1s
  644. >>>>>>>504 ubyte&0xDF >0
  645. >>>>>>>>504 string x \b%-.1s
  646. >>>>505 ubyte&0xDF >0
  647. >>>>>505 string x \b.%-.3s
  648. >>333 string \ err\0 \b, FREE-DOS BEta 0.9 Bootloader
  649. >>>497 ubyte&0xDF >0
  650. >>>>497 string x \b %-.6s
  651. >>>>>503 ubyte&0xDF >0
  652. >>>>>>503 string x \b%-.1s
  653. >>>>>>>504 ubyte&0xDF >0
  654. >>>>>>>>504 string x \b%-.1s
  655. >>>>505 ubyte&0xDF >0
  656. >>>>>505 string x \b.%-.3s
  657. >>334 string \ err\0 \b, FREE-DOS Beta 0.9 Bootloader
  658. >>>497 ubyte&0xDF >0
  659. >>>>497 string x \b %-.6s
  660. >>>>>503 ubyte&0xDF >0
  661. >>>>>>503 string x \b%-.1s
  662. >>>>>>>504 ubyte&0xDF >0
  663. >>>>>>>>504 string x \b%-.1s
  664. >>>>505 ubyte&0xDF >0
  665. >>>>>505 string x \b.%-.3s
  666. >336 string Error!\
  667. >>343 string Hit\ a\ key\ to\ reboot. \b, FREE-DOS Beta 0.9sr1 Bootloader
  668. >>>497 ubyte&0xDF >0
  669. >>>>497 string x \b %-.6s
  670. >>>>>503 ubyte&0xDF >0
  671. >>>>>>503 string x \b%-.1s
  672. >>>>>>>504 ubyte&0xDF >0
  673. >>>>>>>>504 string x \b%-.1s
  674. >>>>505 ubyte&0xDF >0
  675. >>>>>505 string x \b.%-.3s
  676. # added by Joerg Jenderek
  677. # http://www.visopsys.org/
  678. # http://partitionlogic.org.uk/
  679. # OEM-ID=Visopsys
  680. >478 ulelong 0
  681. >>(1.b+326) string I/O\ Error\ reading\
  682. >>>(1.b+344) string Visopsys\ loader\r
  683. >>>>(1.b+361) string Press\ any\ key\ to\ continue.\r \b, Visopsys loader
  684. # http://alexfru.chat.ru/epm.html#bootprog
  685. >494 ubyte >0x4D
  686. >>495 string >E
  687. >>>495 string <S
  688. #OEM-ID is not reliable
  689. >>>>3 string BootProg
  690. # It just looks for a program file name at the root directory
  691. # and loads corresponding file with following execution.
  692. # DOS names like STARTUP.BIN,STARTUPC.COM,STARTUPE.EXE are 8 right space padded bytes+3 bytes
  693. >>>>499 ubyte&0xDF >0 \b, COM/EXE Bootloader
  694. >>>>>499 string x \b %-.1s
  695. >>>>>>500 ubyte&0xDF >0
  696. >>>>>>>500 string x \b%-.1s
  697. >>>>>>>>501 ubyte&0xDF >0
  698. >>>>>>>>>501 string x \b%-.1s
  699. >>>>>>>>>>502 ubyte&0xDF >0
  700. >>>>>>>>>>>502 string x \b%-.1s
  701. >>>>>>>>>>>>503 ubyte&0xDF >0
  702. >>>>>>>>>>>>>503 string x \b%-.1s
  703. >>>>>>>>>>>>>>504 ubyte&0xDF >0
  704. >>>>>>>>>>>>>>>504 string x \b%-.1s
  705. >>>>>>>>>>>>>>>>505 ubyte&0xDF >0
  706. >>>>>>>>>>>>>>>>>505 string x \b%-.1s
  707. >>>>>>>>>>>>>>>>>>506 ubyte&0xDF >0
  708. >>>>>>>>>>>>>>>>>>>506 string x \b%-.1s
  709. #name extension
  710. >>>>>507 ubyte&0xDF >0 \b.
  711. >>>>>>507 string x \b%-.1s
  712. >>>>>>>508 ubyte&0xDF >0
  713. >>>>>>>>508 string x \b%-.1s
  714. >>>>>>>>>509 ubyte&0xDF >0
  715. >>>>>>>>>>509 string x \b%-.1s
  716. #If the boot sector fails to read any other sector,
  717. #it prints a very short message ("RE") to the screen and hangs the computer.
  718. #If the boot sector fails to find needed program in the root directory,
  719. #it also hangs with another message ("NF").
  720. >>>>>492 string RENF \b, FAT (12 bit)
  721. >>>>>495 string RENF \b, FAT (16 bit)
  722. # http://alexfru.chat.ru/epm.html#bootprog
  723. >494 ubyte >0x4D
  724. >>495 string >E
  725. >>>495 string <S
  726. #OEM-ID is not reliable
  727. >>>>3 string BootProg
  728. # It just looks for a program file name at the root directory
  729. # and loads corresponding file with following execution.
  730. # DOS names like STARTUP.BIN,STARTUPC.COM,STARTUPE.EXE are 8 right space padded bytes+3 bytes
  731. >>>>499 ubyte&0xDF >0 \b, COM/EXE Bootloader
  732. >>>>>499 string x \b %-.1s
  733. >>>>>>500 ubyte&0xDF >0
  734. >>>>>>>500 string x \b%-.1s
  735. >>>>>>>>501 ubyte&0xDF >0
  736. >>>>>>>>>501 string x \b%-.1s
  737. >>>>>>>>>>502 ubyte&0xDF >0
  738. >>>>>>>>>>>502 string x \b%-.1s
  739. >>>>>>>>>>>>503 ubyte&0xDF >0
  740. >>>>>>>>>>>>>503 string x \b%-.1s
  741. >>>>>>>>>>>>>>504 ubyte&0xDF >0
  742. >>>>>>>>>>>>>>>504 string x \b%-.1s
  743. >>>>>>>>>>>>>>>>505 ubyte&0xDF >0
  744. >>>>>>>>>>>>>>>>>505 string x \b%-.1s
  745. >>>>>>>>>>>>>>>>>>506 ubyte&0xDF >0
  746. >>>>>>>>>>>>>>>>>>>506 string x \b%-.1s
  747. #name extension
  748. >>>>>507 ubyte&0xDF >0 \b.
  749. >>>>>>507 string x \b%-.1s
  750. >>>>>>>508 ubyte&0xDF >0
  751. >>>>>>>>508 string x \b%-.1s
  752. >>>>>>>>>509 ubyte&0xDF >0
  753. >>>>>>>>>>509 string x \b%-.1s
  754. #If the boot sector fails to read any other sector,
  755. #it prints a very short message ("RE") to the screen and hangs the computer.
  756. #If the boot sector fails to find needed program in the root directory,
  757. #it also hangs with another message ("NF").
  758. >>>>>492 string RENF \b, FAT (12 bit)
  759. >>>>>495 string RENF \b, FAT (16 bit)
  760. # x86 bootloader end
  761. # updated by Joerg Jenderek at Sep 2007
  762. >3 ubyte 0
  763. #no active flag
  764. >>446 ubyte 0
  765. # partition 1 not empty
  766. >>>450 ubyte >0
  767. # partitions 3,4 empty
  768. >>>>482 ubyte 0
  769. >>>>>498 ubyte 0
  770. # partition 2 ID=0,5,15
  771. >>>>>>466 ubyte <0x10
  772. >>>>>>>466 ubyte 0x05 \b, extended partition table
  773. >>>>>>>466 ubyte 0x0F \b, extended partition table (LBA)
  774. >>>>>>>466 ubyte 0x0 \b, extended partition table (last)
  775. # JuMP short bootcodeoffset NOP assembler instructions will usually be EB xx 90
  776. # http://mirror.href.com/thestarman/asm/2bytejumps.htmm#FWD
  777. # older drives may use Near JuMP instruction E9 xx xx
  778. >0 lelong&0x009000EB 0x009000EB
  779. >0 lelong&0x000000E9 0x000000E9
  780. # minimal short forward jump found 03cx??
  781. # maximal short forward jump is 07fx
  782. >1 ubyte <0xff \b, code offset 0x%x
  783. # mtools-3.9.8/msdos.h
  784. # usual values are marked with comments to get only informations of strange FAT systems
  785. # valid sectorsize must be a power of 2 from 32 to 32768
  786. >>11 uleshort&0x000f x
  787. >>>11 uleshort <32769
  788. >>>>11 uleshort >31
  789. >>>>>21 ubyte&0xf0 0xF0
  790. >>>>>>3 string >\0 \b, OEM-ID "%8.8s"
  791. #http://mirror.href.com/thestarman/asm/debug/debug2.htm#IHC
  792. >>>>>>>8 string IHC \b cached by Windows 9M
  793. >>>>>>11 uleshort >512 \b, Bytes/sector %u
  794. #>>>>>>11 uleshort =512 \b, Bytes/sector %u=512 (usual)
  795. >>>>>>11 uleshort <512 \b, Bytes/sector %u
  796. >>>>>>13 ubyte >1 \b, sectors/cluster %u
  797. #>>>>>>13 ubyte =1 \b, sectors/cluster %u (usual on Floppies)
  798. >>>>>>14 uleshort >32 \b, reserved sectors %u
  799. #>>>>>>14 uleshort =32 \b, reserved sectors %u (usual Fat32)
  800. #>>>>>>14 uleshort >1 \b, reserved sectors %u
  801. #>>>>>>14 uleshort =1 \b, reserved sectors %u (usual FAT12,FAT16)
  802. >>>>>>14 uleshort <1 \b, reserved sectors %u
  803. >>>>>>16 ubyte >2 \b, FATs %u
  804. #>>>>>>16 ubyte =2 \b, FATs %u (usual)
  805. >>>>>>16 ubyte =1 \b, FAT %u
  806. >>>>>>16 ubyte >0
  807. >>>>>>17 uleshort >0 \b, root entries %u
  808. #>>>>>>17 uleshort =0 \b, root entries %u=0 (usual Fat32)
  809. >>>>>>19 uleshort >0 \b, sectors %u (volumes <=32 MB)
  810. #>>>>>>19 uleshort =0 \b, sectors %u=0 (usual Fat32)
  811. >>>>>>21 ubyte >0xF0 \b, Media descriptor 0x%x
  812. #>>>>>>21 ubyte =0xF0 \b, Media descriptor 0x%x (usual floppy)
  813. >>>>>>21 ubyte <0xF0 \b, Media descriptor 0x%x
  814. >>>>>>22 uleshort >0 \b, sectors/FAT %u
  815. #>>>>>>22 uleshort =0 \b, sectors/FAT %u=0 (usual Fat32)
  816. >>>>>>26 ubyte >2 \b, heads %u
  817. #>>>>>>26 ubyte =2 \b, heads %u (usual floppy)
  818. >>>>>>26 ubyte =1 \b, heads %u
  819. #skip for Digital Research DOS (version 3.41) 1440 kB Bootdisk
  820. >>>>>>38 ubyte !0x70
  821. >>>>>>>28 ulelong >0 \b, hidden sectors %u
  822. #>>>>>>>28 ulelong =0 \b, hidden sectors %u (usual floppy)
  823. >>>>>>>32 ulelong >0 \b, sectors %u (volumes > 32 MB)
  824. #>>>>>>>32 ulelong =0 \b, sectors %u (volumes > 32 MB)
  825. # FAT<32 specific
  826. >>>>>>82 string !FAT32
  827. #>>>>>>>36 ubyte 0x80 \b, physical drive 0x%x=0x80 (usual harddisk)
  828. #>>>>>>>36 ubyte 0 \b, physical drive 0x%x=0 (usual floppy)
  829. >>>>>>>36 ubyte !0x80
  830. >>>>>>>>36 ubyte !0 \b, physical drive 0x%x
  831. >>>>>>>37 ubyte >0 \b, reserved 0x%x
  832. #>>>>>>>37 ubyte =0 \b, reserved 0x%x
  833. >>>>>>>38 ubyte >0x29 \b, dos < 4.0 BootSector (0x%x)
  834. >>>>>>>38 ubyte <0x29 \b, dos < 4.0 BootSector (0x%x)
  835. >>>>>>>38 ubyte =0x29
  836. >>>>>>>>39 ulelong x \b, serial number 0x%x
  837. >>>>>>>>43 string <NO\ NAME \b, label: "%11.11s"
  838. >>>>>>>>43 string >NO\ NAME \b, label: "%11.11s"
  839. >>>>>>>>43 string =NO\ NAME \b, unlabeled
  840. >>>>>>>54 string FAT \b, FAT
  841. >>>>>>>>54 string FAT12 \b (12 bit)
  842. >>>>>>>>54 string FAT16 \b (16 bit)
  843. # FAT32 specific
  844. >>>>>>82 string FAT32 \b, FAT (32 bit)
  845. >>>>>>>36 ulelong x \b, sectors/FAT %u
  846. >>>>>>>40 uleshort >0 \b, extension flags %u
  847. #>>>>>>>40 uleshort =0 \b, extension flags %u
  848. >>>>>>>42 uleshort >0 \b, fsVersion %u
  849. #>>>>>>>42 uleshort =0 \b, fsVersion %u (usual)
  850. >>>>>>>44 ulelong >2 \b, rootdir cluster %u
  851. #>>>>>>>44 ulelong =2 \b, rootdir cluster %u
  852. #>>>>>>>44 ulelong =1 \b, rootdir cluster %u
  853. >>>>>>>48 uleshort >1 \b, infoSector %u
  854. #>>>>>>>48 uleshort =1 \b, infoSector %u (usual)
  855. >>>>>>>48 uleshort <1 \b, infoSector %u
  856. >>>>>>>50 uleshort >6 \b, Backup boot sector %u
  857. #>>>>>>>50 uleshort =6 \b, Backup boot sector %u (usual)
  858. >>>>>>>50 uleshort <6 \b, Backup boot sector %u
  859. >>>>>>>54 ulelong >0 \b, reserved1 0x%x
  860. >>>>>>>58 ulelong >0 \b, reserved2 0x%x
  861. >>>>>>>62 ulelong >0 \b, reserved3 0x%x
  862. # same structure as FAT1X
  863. >>>>>>>64 ubyte >0x80 \b, physical drive 0x%x
  864. #>>>>>>>64 ubyte =0x80 \b, physical drive 0x%x=80 (usual harddisk)
  865. >>>>>>>64 ubyte&0x7F >0 \b, physical drive 0x%x
  866. #>>>>>>>64 ubyte =0 \b, physical drive 0x%x=0 (usual floppy)
  867. >>>>>>>65 ubyte >0 \b, reserved 0x%x
  868. >>>>>>>66 ubyte >0x29 \b, dos < 4.0 BootSector (0x%x)
  869. >>>>>>>66 ubyte <0x29 \b, dos < 4.0 BootSector (0x%x)
  870. >>>>>>>66 ubyte =0x29
  871. >>>>>>>>67 ulelong x \b, serial number 0x%x
  872. >>>>>>>>71 string <NO\ NAME \b, label: "%11.11s"
  873. >>>>>>>71 string >NO\ NAME \b, label: "%11.11s"
  874. >>>>>>>71 string =NO\ NAME \b, unlabeled
  875. ### FATs end
  876. >0x200 lelong 0x82564557 \b, BSD disklabel
  877. # FATX
  878. 0 string FATX FATX filesystem data
  879. # Minix filesystems - Juan Cespedes <cespedes@debian.org>
  880. 0x410 leshort 0x137f
  881. !:strength / 2
  882. >0x402 beshort < 100 Minix filesystem, V1, %d zones
  883. >0x1e string minix \b, bootable
  884. 0x410 beshort 0x137f
  885. !:strength / 2
  886. >0x402 beshort < 100 Minix filesystem, V1 (big endian), %d zones
  887. >0x1e string minix \b, bootable
  888. 0x410 leshort 0x138f
  889. !:strength / 2
  890. >0x402 beshort < 100 Minix filesystem, V1, 30 char names, %d zones
  891. >0x1e string minix \b, bootable
  892. 0x410 beshort 0x138f
  893. !:strength / 2
  894. >0x402 beshort < 100 Minix filesystem, V1, 30 char names (big endian), %d zones
  895. >0x1e string minix \b, bootable
  896. 0x410 leshort 0x2468
  897. >0x402 beshort < 100 Minix filesystem, V2, %d zones
  898. >0x1e string minix \b, bootable
  899. 0x410 beshort 0x2468
  900. >0x402 beshort < 100 Minix filesystem, V2 (big endian), %d zones
  901. >0x1e string minix \b, bootable
  902. 0x410 leshort 0x2478
  903. >0x402 beshort < 100 Minix filesystem, V2, 30 char names, %d zones
  904. >0x1e string minix \b, bootable
  905. 0x410 leshort 0x2478
  906. >0x402 beshort < 100 Minix filesystem, V2, 30 char names, %d zones
  907. >0x1e string minix \b, bootable
  908. 0x410 beshort 0x2478
  909. >0x402 beshort !0 Minix filesystem, V2, 30 char names (big endian), %d zones
  910. >0x1e string minix \b, bootable
  911. 0x410 leshort 0x4d5a
  912. >0x402 beshort !0 Minix filesystem, V3, %d zones
  913. >0x1e string minix \b, bootable
  914. # romfs filesystems - Juan Cespedes <cespedes@debian.org>
  915. 0 string -rom1fs- romfs filesystem, version 1
  916. >8 belong x %d bytes,
  917. >16 string x named %s.
  918. # netboot image - Juan Cespedes <cespedes@debian.org>
  919. 0 lelong 0x1b031336L Netboot image,
  920. >4 lelong&0xFFFFFF00 0
  921. >>4 lelong&0x100 0x000 mode 2
  922. >>4 lelong&0x100 0x100 mode 3
  923. >4 lelong&0xFFFFFF00 !0 unknown mode
  924. 0x18b string OS/2 OS/2 Boot Manager
  925. # updated by Joerg Jenderek at Oct 2008!!
  926. # http://syslinux.zytor.com/iso.php
  927. 0 ulelong 0x7c40eafa isolinux Loader
  928. # http://syslinux.zytor.com/pxe.php
  929. 0 ulelong 0x007c05ea pxelinux Loader
  930. 0 ulelong 0x60669c66 pxelinux Loader
  931. # added by Joerg Jenderek
  932. # In the second sector (+0x200) are variables according to grub-0.97/stage2/asm.S or
  933. # grub-1.94/kern/i386/pc/startup.S
  934. # http://www.gnu.org/software/grub/manual/grub.html#Embedded-data
  935. # usual values are marked with comments to get only informations of strange GRUB loaders
  936. 0x200 uleshort 0x70EA
  937. # found only version 3.{1,2}
  938. >0x206 ubeshort >0x0300
  939. # GRUB version (0.5.)95,0.93,0.94,0.96,0.97 > "00"
  940. >>0x212 ubyte >0x29
  941. >>>0x213 ubyte >0x29
  942. # not iso9660_stage1_5
  943. #>>>0 ulelong&0x00BE5652 0x00BE5652
  944. >>>>0x213 ubyte >0x29 GRand Unified Bootloader
  945. # config_file for stage1_5 is 0xffffffff + default "/boot/grub/stage2"
  946. >>>>0x217 ubyte 0xFF stage1_5
  947. >>>>0x217 ubyte <0xFF stage2
  948. >>>>0x206 ubyte x \b version %u
  949. >>>>0x207 ubyte x \b.%u
  950. # module_size for 1.94
  951. >>>>0x208 ulelong <0xffffff \b, installed partition %u
  952. #>>>>0x208 ulelong =0xffffff \b, %u (default)
  953. >>>>0x208 ulelong >0xffffff \b, installed partition %u
  954. # GRUB 0.5.95 unofficial
  955. >>>>0x20C ulelong&0x2E300000 0x2E300000
  956. # 0=stage2 1=ffs 2=e2fs 3=fat 4=minix 5=reiserfs
  957. >>>>>0x20C ubyte x \b, identifier 0x%x
  958. #>>>>>0x20D ubyte =0 \b, LBA flag 0x%x (default)
  959. >>>>>0x20D ubyte >0 \b, LBA flag 0x%x
  960. # GRUB version as string
  961. >>>>>0x20E string >\0 \b, GRUB version %-s
  962. # for stage1_5 is 0xffffffff + config_file "/boot/grub/stage2" default
  963. >>>>>>0x215 ulong 0xffffffff
  964. >>>>>>>0x219 string >\0 \b, configuration file %-s
  965. >>>>>>0x215 ulong !0xffffffff
  966. >>>>>>>0x215 string >\0 \b, configuration file %-s
  967. # newer GRUB versions
  968. >>>>0x20C ulelong&0x2E300000 !0x2E300000
  969. ##>>>>>0x20C ulelong =0 \b, saved entry %d (usual)
  970. >>>>>0x20C ulelong >0 \b, saved entry %d
  971. # for 1.94 contains kernel image size
  972. # for 0.93,0.94,0.96,0.97
  973. # 0=stage2 1=ffs 2=e2fs 3=fat 4=minix 5=reiserfs 6=vstafs 7=jfs 8=xfs 9=iso9660 a=ufs2
  974. >>>>>0x210 ubyte x \b, identifier 0x%x
  975. # The flag for LBA forcing is in most cases 0
  976. #>>>>>0x211 ubyte =0 \b, LBA flag 0x%x (default)
  977. >>>>>0x211 ubyte >0 \b, LBA flag 0x%x
  978. # GRUB version as string
  979. >>>>>0x212 string >\0 \b, GRUB version %-s
  980. # for stage1_5 is 0xffffffff + config_file "/boot/grub/stage2" default
  981. >>>>>0x217 ulong 0xffffffff
  982. >>>>>>0x21b string >\0 \b, configuration file %-s
  983. >>>>>0x217 ulong !0xffffffff
  984. >>>>>>0x217 string >\0 \b, configuration file %-s
  985. 9564 lelong 0x00011954 Unix Fast File system [v1] (little-endian),
  986. >8404 string x last mounted on %s,
  987. #>9504 ledate x last checked at %s,
  988. >8224 ledate x last written at %s,
  989. >8401 byte x clean flag %d,
  990. >8228 lelong x number of blocks %d,
  991. >8232 lelong x number of data blocks %d,
  992. >8236 lelong x number of cylinder groups %d,
  993. >8240 lelong x block size %d,
  994. >8244 lelong x fragment size %d,
  995. >8252 lelong x minimum percentage of free blocks %d,
  996. >8256 lelong x rotational delay %dms,
  997. >8260 lelong x disk rotational speed %drps,
  998. >8320 lelong 0 TIME optimization
  999. >8320 lelong 1 SPACE optimization
  1000. 42332 lelong 0x19540119 Unix Fast File system [v2] (little-endian)
  1001. >&-1164 string x last mounted on %s,
  1002. >&-696 string >\0 volume name %s,
  1003. >&-304 leqldate x last written at %s,
  1004. >&-1167 byte x clean flag %d,
  1005. >&-1168 byte x readonly flag %d,
  1006. >&-296 lequad x number of blocks %lld,
  1007. >&-288 lequad x number of data blocks %lld,
  1008. >&-1332 lelong x number of cylinder groups %d,
  1009. >&-1328 lelong x block size %d,
  1010. >&-1324 lelong x fragment size %d,
  1011. >&-180 lelong x average file size %d,
  1012. >&-176 lelong x average number of files in dir %d,
  1013. >&-272 lequad x pending blocks to free %lld,
  1014. >&-264 lelong x pending inodes to free %ld,
  1015. >&-664 lequad x system-wide uuid %0llx,
  1016. >&-1316 lelong x minimum percentage of free blocks %d,
  1017. >&-1248 lelong 0 TIME optimization
  1018. >&-1248 lelong 1 SPACE optimization
  1019. 66908 lelong 0x19540119 Unix Fast File system [v2] (little-endian)
  1020. >&-1164 string x last mounted on %s,
  1021. >&-696 string >\0 volume name %s,
  1022. >&-304 leqldate x last written at %s,
  1023. >&-1167 byte x clean flag %d,
  1024. >&-1168 byte x readonly flag %d,
  1025. >&-296 lequad x number of blocks %lld,
  1026. >&-288 lequad x number of data blocks %lld,
  1027. >&-1332 lelong x number of cylinder groups %d,
  1028. >&-1328 lelong x block size %d,
  1029. >&-1324 lelong x fragment size %d,
  1030. >&-180 lelong x average file size %d,
  1031. >&-176 lelong x average number of files in dir %d,
  1032. >&-272 lequad x pending blocks to free %lld,
  1033. >&-264 lelong x pending inodes to free %ld,
  1034. >&-664 lequad x system-wide uuid %0llx,
  1035. >&-1316 lelong x minimum percentage of free blocks %d,
  1036. >&-1248 lelong 0 TIME optimization
  1037. >&-1248 lelong 1 SPACE optimization
  1038. 9564 belong 0x00011954 Unix Fast File system [v1] (big-endian),
  1039. >7168 belong 0x4c41424c Apple UFS Volume
  1040. >>7186 string x named %s,
  1041. >>7176 belong x volume label version %d,
  1042. >>7180 bedate x created on %s,
  1043. >8404 string x last mounted on %s,
  1044. #>9504 bedate x last checked at %s,
  1045. >8224 bedate x last written at %s,
  1046. >8401 byte x clean flag %d,
  1047. >8228 belong x number of blocks %d,
  1048. >8232 belong x number of data blocks %d,
  1049. >8236 belong x number of cylinder groups %d,
  1050. >8240 belong x block size %d,
  1051. >8244 belong x fragment size %d,
  1052. >8252 belong x minimum percentage of free blocks %d,
  1053. >8256 belong x rotational delay %dms,
  1054. >8260 belong x disk rotational speed %drps,
  1055. >8320 belong 0 TIME optimization
  1056. >8320 belong 1 SPACE optimization
  1057. 42332 belong 0x19540119 Unix Fast File system [v2] (big-endian)
  1058. >&-1164 string x last mounted on %s,
  1059. >&-696 string >\0 volume name %s,
  1060. >&-304 beqldate x last written at %s,
  1061. >&-1167 byte x clean flag %d,
  1062. >&-1168 byte x readonly flag %d,
  1063. >&-296 bequad x number of blocks %lld,
  1064. >&-288 bequad x number of data blocks %lld,
  1065. >&-1332 belong x number of cylinder groups %d,
  1066. >&-1328 belong x block size %d,
  1067. >&-1324 belong x fragment size %d,
  1068. >&-180 belong x average file size %d,
  1069. >&-176 belong x average number of files in dir %d,
  1070. >&-272 bequad x pending blocks to free %lld,
  1071. >&-264 belong x pending inodes to free %ld,
  1072. >&-664 bequad x system-wide uuid %0llx,
  1073. >&-1316 belong x minimum percentage of free blocks %d,
  1074. >&-1248 belong 0 TIME optimization
  1075. >&-1248 belong 1 SPACE optimization
  1076. 66908 belong 0x19540119 Unix Fast File system [v2] (big-endian)
  1077. >&-1164 string x last mounted on %s,
  1078. >&-696 string >\0 volume name %s,
  1079. >&-304 beqldate x last written at %s,
  1080. >&-1167 byte x clean flag %d,
  1081. >&-1168 byte x readonly flag %d,
  1082. >&-296 bequad x number of blocks %lld,
  1083. >&-288 bequad x number of data blocks %lld,
  1084. >&-1332 belong x number of cylinder groups %d,
  1085. >&-1328 belong x block size %d,
  1086. >&-1324 belong x fragment size %d,
  1087. >&-180 belong x average file size %d,
  1088. >&-176 belong x average number of files in dir %d,
  1089. >&-272 bequad x pending blocks to free %lld,
  1090. >&-264 belong x pending inodes to free %ld,
  1091. >&-664 bequad x system-wide uuid %0llx,
  1092. >&-1316 belong x minimum percentage of free blocks %d,
  1093. >&-1248 belong 0 TIME optimization
  1094. >&-1248 belong 1 SPACE optimization
  1095. # ext2/ext3 filesystems - Andreas Dilger <adilger@dilger.ca>
  1096. # ext4 filesystem - Eric Sandeen <sandeen@sandeen.net>
  1097. # volume label and UUID Russell Coker
  1098. # http://etbe.coker.com.au/2008/07/08/label-vs-uuid-vs-device/
  1099. 0x438 leshort 0xEF53 Linux
  1100. >0x44c lelong x rev %d
  1101. >0x43e leshort x \b.%d
  1102. # No journal? ext2
  1103. >0x45c lelong ^0x0000004 ext2 filesystem data
  1104. >>0x43a leshort ^0x0000001 (mounted or unclean)
  1105. # Has a journal? ext3 or ext4
  1106. >0x45c lelong &0x0000004
  1107. # and small INCOMPAT?
  1108. >>0x460 lelong <0x0000040
  1109. # and small RO_COMPAT?
  1110. >>>0x464 lelong <0x0000008 ext3 filesystem data
  1111. # else large RO_COMPAT?
  1112. >>>0x464 lelong >0x0000007 ext4 filesystem data
  1113. # else large INCOMPAT?
  1114. >>0x460 lelong >0x000003f ext4 filesystem data
  1115. >0x468 belong x \b, UUID=%08x
  1116. >0x46c beshort x \b-%04x
  1117. >0x46e beshort x \b-%04x
  1118. >0x470 beshort x \b-%04x
  1119. >0x472 belong x \b-%08x
  1120. >0x476 beshort x \b%04x
  1121. >0x478 string >0 \b, volume name "%s"
  1122. # General flags for any ext* fs
  1123. >0x460 lelong &0x0000004 (needs journal recovery)
  1124. >0x43a leshort &0x0000002 (errors)
  1125. # INCOMPAT flags
  1126. >0x460 lelong &0x0000001 (compressed)
  1127. #>0x460 lelong &0x0000002 (filetype)
  1128. #>0x460 lelong &0x0000010 (meta bg)
  1129. >0x460 lelong &0x0000040 (extents)
  1130. >0x460 lelong &0x0000080 (64bit)
  1131. #>0x460 lelong &0x0000100 (mmp)
  1132. #>0x460 lelong &0x0000200 (flex bg)
  1133. # RO_INCOMPAT flags
  1134. #>0x464 lelong &0x0000001 (sparse super)
  1135. >0x464 lelong &0x0000002 (large files)
  1136. >0x464 lelong &0x0000008 (huge files)
  1137. #>0x464 lelong &0x0000010 (gdt checksum)
  1138. #>0x464 lelong &0x0000020 (many subdirs)
  1139. #>0x463 lelong &0x0000040 (extra isize)
  1140. # SGI disk labels - Nathan Scott <nathans@debian.org>
  1141. 0 belong 0x0BE5A941 SGI disk label (volume header)
  1142. # SGI XFS filesystem - Nathan Scott <nathans@debian.org>
  1143. 0 belong 0x58465342 SGI XFS filesystem data
  1144. >0x4 belong x (blksz %d,
  1145. >0x68 beshort x inosz %d,
  1146. >0x64 beshort ^0x2004 v1 dirs)
  1147. >0x64 beshort &0x2004 v2 dirs)
  1148. ############################################################################
  1149. # Minix-ST kernel floppy
  1150. 0x800 belong 0x46fc2700 Atari-ST Minix kernel image
  1151. >19 string \240\5\371\5\0\011\0\2\0 \b, 720k floppy
  1152. >19 string \320\2\370\5\0\011\0\1\0 \b, 360k floppy
  1153. ############################################################################
  1154. # Hmmm, is this a better way of detecting _standard_ floppy images ?
  1155. 19 string \320\2\360\3\0\011\0\1\0 DOS floppy 360k
  1156. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  1157. 19 string \240\5\371\3\0\011\0\2\0 DOS floppy 720k
  1158. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  1159. 19 string \100\013\360\011\0\022\0\2\0 DOS floppy 1440k
  1160. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  1161. 19 string \240\5\371\5\0\011\0\2\0 DOS floppy 720k, IBM
  1162. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  1163. 19 string \100\013\371\5\0\011\0\2\0 DOS floppy 1440k, mkdosfs
  1164. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  1165. 19 string \320\2\370\5\0\011\0\1\0 Atari-ST floppy 360k
  1166. 19 string \240\5\371\5\0\011\0\2\0 Atari-ST floppy 720k
  1167. # Valid media descriptor bytes for MS-DOS:
  1168. #
  1169. # Byte Capacity Media Size and Type
  1170. # -------------------------------------------------
  1171. #
  1172. # F0 2.88 MB 3.5-inch, 2-sided, 36-sector
  1173. # F0 1.44 MB 3.5-inch, 2-sided, 18-sector
  1174. # F9 720K 3.5-inch, 2-sided, 9-sector
  1175. # F9 1.2 MB 5.25-inch, 2-sided, 15-sector
  1176. # FD 360K 5.25-inch, 2-sided, 9-sector
  1177. # FF 320K 5.25-inch, 2-sided, 8-sector
  1178. # FC 180K 5.25-inch, 1-sided, 9-sector
  1179. # FE 160K 5.25-inch, 1-sided, 8-sector
  1180. # FE 250K 8-inch, 1-sided, single-density
  1181. # FD 500K 8-inch, 2-sided, single-density
  1182. # FE 1.2 MB 8-inch, 2-sided, double-density
  1183. # F8 ----- Fixed disk
  1184. #
  1185. # FC xxxK Apricot 70x1x9 boot disk.
  1186. #
  1187. # Originally a bitmap:
  1188. # xxxxxxx0 Not two sided
  1189. # xxxxxxx1 Double sided
  1190. # xxxxxx0x Not 8 SPT
  1191. # xxxxxx1x 8 SPT
  1192. # xxxxx0xx Not Removable drive
  1193. # xxxxx1xx Removable drive
  1194. # 11111xxx Must be one.
  1195. #
  1196. # But now it's rather random:
  1197. # 111111xx Low density disk
  1198. # 00 SS, Not 8 SPT
  1199. # 01 DS, Not 8 SPT
  1200. # 10 SS, 8 SPT
  1201. # 11 DS, 8 SPT
  1202. #
  1203. # 11111001 Double density 3½ floppy disk, high density 5¼
  1204. # 11110000 High density 3½ floppy disk
  1205. # 11111000 Hard disk any format
  1206. #
  1207. # CDROM Filesystems
  1208. # Modified for UDF by gerardo.cacciari@gmail.com
  1209. 32769 string CD001 #
  1210. !:mime application/x-iso9660-image
  1211. >38913 string !NSR0 ISO 9660 CD-ROM filesystem data
  1212. >38913 string NSR0 UDF filesystem data
  1213. >>38917 string 1 (version 1.0)
  1214. >>38917 string 2 (version 1.5)
  1215. >>38917 string 3 (version 2.0)
  1216. >>38917 byte >0x33 (unknown version, ID 0x%X)
  1217. >>38917 byte <0x31 (unknown version, ID 0x%X)
  1218. # "application id" which appears to be used as a volume label
  1219. >32808 string >\0 '%s'
  1220. >34816 string \000CD001\001EL\ TORITO\ SPECIFICATION (bootable)
  1221. 37633 string CD001 ISO 9660 CD-ROM filesystem data (raw 2352 byte sectors)
  1222. !:mime application/x-iso9660-image
  1223. 32776 string CDROM High Sierra CD-ROM filesystem data
  1224. # .cso files
  1225. 0 string CISO Compressed ISO CD image
  1226. # cramfs filesystem - russell@coker.com.au
  1227. 0 lelong 0x28cd3d45 Linux Compressed ROM File System data, little endian
  1228. >4 lelong x size %lu
  1229. >8 lelong &1 version #2
  1230. >8 lelong &2 sorted_dirs
  1231. >8 lelong &4 hole_support
  1232. >32 lelong x CRC 0x%x,
  1233. >36 lelong x edition %lu,
  1234. >40 lelong x %lu blocks,
  1235. >44 lelong x %lu files
  1236. 0 belong 0x28cd3d45 Linux Compressed ROM File System data, big endian
  1237. >4 belong x size %lu
  1238. >8 belong &1 version #2
  1239. >8 belong &2 sorted_dirs
  1240. >8 belong &4 hole_support
  1241. >32 belong x CRC 0x%x,
  1242. >36 belong x edition %lu,
  1243. >40 belong x %lu blocks,
  1244. >44 belong x %lu files
  1245. # reiserfs - russell@coker.com.au
  1246. 0x10034 string ReIsErFs ReiserFS V3.5
  1247. 0x10034 string ReIsEr2Fs ReiserFS V3.6
  1248. 0x10034 string ReIsEr3Fs ReiserFS V3.6.19
  1249. >0x1002c leshort x block size %d
  1250. >0x10032 leshort &2 (mounted or unclean)
  1251. >0x10000 lelong x num blocks %d
  1252. >0x10040 lelong 1 tea hash
  1253. >0x10040 lelong 2 yura hash
  1254. >0x10040 lelong 3 r5 hash
  1255. # JFFS - russell@coker.com.au
  1256. 0 lelong 0x34383931 Linux Journalled Flash File system, little endian
  1257. 0 belong 0x34383931 Linux Journalled Flash File system, big endian
  1258. # EST flat binary format (which isn't, but anyway)
  1259. # From: Mark Brown <broonie@sirena.org.uk>
  1260. 0 string ESTFBINR EST flat binary
  1261. # Aculab VoIP firmware
  1262. # From: Mark Brown <broonie@sirena.org.uk>
  1263. 0 string VoIP\ Startup\ and Aculab VoIP firmware
  1264. >35 string x format %s
  1265. # From: Mark Brown <broonie@sirena.org.uk> [old]
  1266. # From: Behan Webster <behanw@websterwood.com>
  1267. 0 belong 0x27051956 u-boot legacy uImage,
  1268. >32 string x %s,
  1269. >28 byte 0 Invalid os/
  1270. >28 byte 1 OpenBSD/
  1271. >28 byte 2 NetBSD/
  1272. >28 byte 3 FreeBSD/
  1273. >28 byte 4 4.4BSD/
  1274. >28 byte 5 Linux/
  1275. >28 byte 6 SVR4/
  1276. >28 byte 7 Esix/
  1277. >28 byte 8 Solaris/
  1278. >28 byte 9 Irix/
  1279. >28 byte 10 SCO/
  1280. >28 byte 11 Dell/
  1281. >28 byte 12 NCR/
  1282. >28 byte 13 LynxOS/
  1283. >28 byte 14 VxWorks/
  1284. >28 byte 15 pSOS/
  1285. >28 byte 16 QNX/
  1286. >28 byte 17 Firmware/
  1287. >28 byte 18 RTEMS/
  1288. >28 byte 19 ARTOS/
  1289. >28 byte 20 Unity OS/
  1290. >28 byte 21 INTEGRITY/
  1291. >29 byte 0 \bInvalid CPU,
  1292. >29 byte 1 \bAlpha,
  1293. >29 byte 2 \bARM,
  1294. >29 byte 3 \bIntel x86,
  1295. >29 byte 4 \bIA64,
  1296. >29 byte 5 \bMIPS,
  1297. >29 byte 6 \bMIPS 64-bit,
  1298. >29 byte 7 \bPowerPC,
  1299. >29 byte 8 \bIBM S390,
  1300. >29 byte 9 \bSuperH,
  1301. >29 byte 10 \bSparc,
  1302. >29 byte 11 \bSparc 64-bit,
  1303. >29 byte 12 \bM68K,
  1304. >29 byte 13 \bNios-32,
  1305. >29 byte 14 \bMicroBlaze,
  1306. >29 byte 15 \bNios-II,
  1307. >29 byte 16 \bBlackfin,
  1308. >29 byte 17 \bAVR32,
  1309. >29 byte 18 \bSTMicroelectronics ST200,
  1310. >30 byte 0 Invalid Image
  1311. >30 byte 1 Standalone Program
  1312. >30 byte 2 OS Kernel Image
  1313. >30 byte 3 RAMDisk Image
  1314. >30 byte 4 Multi-File Image
  1315. >30 byte 5 Firmware Image
  1316. >30 byte 6 Script File
  1317. >30 byte 7 Filesystem Image (any type)
  1318. >30 byte 8 Binary Flat Device Tree BLOB
  1319. >31 byte 0 (Not compressed),
  1320. >31 byte 1 (gzip),
  1321. >31 byte 2 (bzip2),
  1322. >31 byte 3 (lzma),
  1323. >12 belong x %d bytes,
  1324. >8 bedate x %s,
  1325. >16 belong x Load Address: 0x%08X,
  1326. >20 belong x Entry Point: 0x%08X,
  1327. >4 belong x Header CRC: 0x%08X,
  1328. >24 belong x Data CRC: 0x%08X
  1329. # JFFS2 file system
  1330. 0 leshort 0x1984 Linux old jffs2 filesystem data little endian
  1331. 0 leshort 0x1985 Linux jffs2 filesystem data little endian
  1332. # Squashfs
  1333. 0 string sqsh Squashfs filesystem, big endian,
  1334. >28 beshort x version %d.
  1335. >30 beshort x \b%d,
  1336. >28 beshort <3
  1337. >>8 belong x %d bytes,
  1338. >28 beshort >2
  1339. >>28 beshort <4
  1340. >>>63 bequad x %lld bytes,
  1341. >>28 beshort >3
  1342. >>>40 bequad x %lld bytes,
  1343. #>>67 belong x %d bytes,
  1344. >4 belong x %d inodes,
  1345. >28 beshort <2
  1346. >>32 beshort x blocksize: %d bytes,
  1347. >28 beshort >1
  1348. >>28 beshort <4
  1349. >>>51 belong x blocksize: %d bytes,
  1350. >>28 beshort >3
  1351. >>>12 belong x blocksize: %d bytes,
  1352. >28 beshort <4
  1353. >>39 bedate x created: %s
  1354. >28 beshort >3
  1355. >>8 bedate x created: %s
  1356. 0 string hsqs Squashfs filesystem, little endian,
  1357. >28 leshort x version %d.
  1358. >30 leshort x \b%d,
  1359. >28 leshort <3
  1360. >>8 lelong x %d bytes,
  1361. >28 leshort >2
  1362. >>28 leshort <4
  1363. >>>63 lequad x %lld bytes,
  1364. >>28 leshort >3
  1365. >>>40 lequad x %lld bytes,
  1366. #>>63 lelong x %d bytes,
  1367. >4 lelong x %d inodes,
  1368. >28 leshort <2
  1369. >>32 leshort x blocksize: %d bytes,
  1370. >28 leshort >1
  1371. >>28 leshort <4
  1372. >>>51 lelong x blocksize: %d bytes,
  1373. >>28 leshort >3
  1374. >>>12 lelong x blocksize: %d bytes,
  1375. >28 leshort <4
  1376. >>39 ledate x created: %s
  1377. >28 leshort >3
  1378. >>8 ledate x created: %s
  1379. 0 string td\000 floppy image data (TeleDisk)
  1380. # AFS Dump Magic
  1381. # From: Ty Sarna <tsarna@sarna.org>
  1382. 0 string \x01\xb3\xa1\x13\x22 AFS Dump
  1383. >&0 belong x (v%d)
  1384. >>&0 byte 0x76
  1385. >>>&0 belong x Vol %d,
  1386. >>>>&0 byte 0x6e
  1387. >>>>>&0 string x %s
  1388. >>>>>>&1 byte 0x74
  1389. >>>>>>>&0 beshort 2
  1390. >>>>>>>>&4 bedate x on: %s
  1391. >>>>>>>>&0 bedate =0 full dump
  1392. >>>>>>>>&0 bedate !0 incremental since: %s
  1393. #----------------------------------------------------------
  1394. #delta ISO Daniel Novotny (dnovotny@redhat.com)
  1395. 0 string DISO Delta ISO data
  1396. >4 belong x version %d
  1397. # VMS backup savesets - gerardo.cacciari@gmail.com
  1398. #
  1399. 4 string \x01\x00\x01\x00\x01\x00
  1400. >(0.s+16) string \x01\x01
  1401. >>&(&0.b+8) byte 0x42 OpenVMS backup saveset data
  1402. >>>40 lelong x (block size %d,
  1403. >>>49 string >\0 original name '%s',
  1404. >>>2 short 1024 VAX generated)
  1405. >>>2 short 2048 AXP generated)
  1406. >>>2 short 4096 I64 generated)
  1407. # Summary: Oracle Clustered Filesystem
  1408. # Created by: Aaron Botsis <redhat@digitalmafia.org>
  1409. 8 string OracleCFS Oracle Clustered Filesystem,
  1410. >4 long x rev %d
  1411. >0 long x \b.%d,
  1412. >560 string x label: %.64s,
  1413. >136 string x mountpoint: %.128s
  1414. # Summary: Oracle ASM tagged volume
  1415. # Created by: Aaron Botsis <redhat@digitalmafia.org>
  1416. 32 string ORCLDISK Oracle ASM Volume,
  1417. >40 string x Disk Name: %0.12s
  1418. 32 string ORCLCLRD Oracle ASM Volume (cleared),
  1419. >40 string x Disk Name: %0.12s
  1420. # Oracle Clustered Filesystem - Aaron Botsis <redhat@digitalmafia.org>
  1421. 8 string OracleCFS Oracle Clustered Filesystem,
  1422. >4 long x rev %d
  1423. >0 long x \b.%d,
  1424. >560 string x label: %.64s,
  1425. >136 string x mountpoint: %.128s
  1426. # Oracle ASM tagged volume - Aaron Botsis <redhat@digitalmafia.org>
  1427. 32 string ORCLDISK Oracle ASM Volume,
  1428. >40 string x Disk Name: %0.12s
  1429. 32 string ORCLCLRD Oracle ASM Volume (cleared),
  1430. >40 string x Disk Name: %0.12s
  1431. # Compaq/HP RILOE floppy image
  1432. # From: Dirk Jagdmann <doj@cubic.org>
  1433. 0 string CPQRFBLO Compaq/HP RILOE floppy image
  1434. #------------------------------------------------------------------------------
  1435. # Files-11 On-Disk Structure (File system for various RSX-11 and VMS flavours).
  1436. # These bits come from LBN 1 (home block) of ODS-1, ODS-2 and ODS-5 volumes,
  1437. # which is mapped to VBN 2 of [000000]INDEXF.SYS;1 - gerardo.cacciari@gmail.com
  1438. #
  1439. 1008 string DECFILE11 Files-11 On-Disk Structure
  1440. >525 byte x Level %d
  1441. >525 byte x (ODS-%d);
  1442. >1017 string A RSX-11, VAX/VMS or OpenVMS VAX file system;
  1443. >1017 string B
  1444. >>525 byte 2 VAX/VMS or OpenVMS file system;
  1445. >>525 byte 5 OpenVMS Alpha or Itanium file system;
  1446. >984 string x volume label is '%-12.12s'
  1447. # From: Thomas Klausner <wiz@NetBSD.org>
  1448. # http://filext.com/file-extension/DAA
  1449. # describes the daa file format. The magic would be:
  1450. 0 string DAA\x0\x0\x0\x0\x0 PowerISO Direct-Access-Archive
  1451. # From Albert Cahalan <acahalan@gmail.com>
  1452. # really le32 operation,destination,payloadsize (but quite predictable)
  1453. # 01 00 00 00 00 00 00 c0 00 02 00 00
  1454. 0 string \1\0\0\0\0\0\0\300\0\2\0\0 Marvell Libertas firmware
  1455. # From Eric Sandeen
  1456. # GFS2
  1457. 0x10000 belong 0x01161970
  1458. >0x10018 belong 0x0000051d GFS1 Filesystem
  1459. >>0x10024 belong x (blocksize %d,
  1460. >>0x10060 string >\0 lockproto %s)
  1461. >0x10018 belong 0x00000709 GFS2 Filesystem
  1462. >>0x10024 belong x (blocksize %d,
  1463. >>0x10060 string >\0 lockproto %s)
  1464. # BTRFS
  1465. 0x10040 string _BHRfS_M BTRFS Filesystem
  1466. >0x1012b string >\0 (label "%s",
  1467. >0x10090 lelong x sectorsize %d,
  1468. >0x10094 lelong x nodesize %d,
  1469. >0x10098 lelong x leafsize %d)
  1470. # dvdisaster's .ecc
  1471. # From: "Nelson A. de Oliveira" <naoliv@gmail.com>
  1472. 0 string *dvdisaster* dvdisaster error correction file
  1473. # xfs metadump image
  1474. # mb_magic XFSM at 0; superblock magic XFSB at 1 << mb_blocklog
  1475. # but can we do the << ? For now it's always 512 (0x200) anyway.
  1476. 0 string XFSM
  1477. >0x200 string XFSB XFS filesystem metadump image
  1478. # Type: CROM filesystem
  1479. # From: Werner Fink <werner@suse.de>
  1480. 0 string CROMFS CROMFS
  1481. >6 string >\0 \b version %2.2s,
  1482. >8 ulequad >0 \b block data at %lld,
  1483. >16 ulequad >0 \b fblock table at %lld,
  1484. >24 ulequad >0 \b inode table at %lld,
  1485. >32 ulequad >0 \b root at %lld,
  1486. >40 ulelong >0 \b fblock size = %ld,
  1487. >44 ulelong >0 \b block size = %ld,
  1488. >48 ulequad >0 \b bytes = %lld
  1489. # Type: xfs metadump image
  1490. # From: Daniel Novotny <dnovotny@redhat.com>
  1491. # mb_magic XFSM at 0; superblock magic XFSB at 1 << mb_blocklog
  1492. # but can we do the << ? For now it's always 512 (0x200) anyway.
  1493. 0 string XFSM
  1494. >0x200 string XFSB XFS filesystem metadump image
  1495. # Type: delta ISO
  1496. # From: Daniel Novotny <dnovotny@redhat.com>
  1497. 0 string DISO Delta ISO data,
  1498. >4 belong x version %d
  1499. # JFS2 (Journaling File System) image. (Old JFS1 has superblock at 0x1000.)
  1500. # See linux/fs/jfs/jfs_superblock.h for layout; see jfs_filsys.h for flags.
  1501. # From: Adam Buchbinder <adam.buchbinder@gmail.com>
  1502. 0x8000 string JFS1
  1503. # Because it's text-only magic, check a binary value (version) to be sure.
  1504. # Should always be 2, but mkfs.jfs writes it as 1. Needs to be 2 or 1 to be
  1505. # mountable.
  1506. >&0 lelong <3 JFS2 filesystem image
  1507. # Label is followed by a UUID; we have to limit string length to avoid
  1508. # appending the UUID in the case of a 16-byte label.
  1509. >>&144 regex [\x20-\x7E]{1,16} (label "%s")
  1510. >>&0 lequad x \b, %lld blocks
  1511. >>&8 lelong x \b, blocksize %d
  1512. >>&32 lelong&0x00000006 >0 (dirty)
  1513. >>&36 lelong >0 (compressed)