filesystems 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  1. #------------------------------------------------------------------------------
  2. # filesystems: file(1) magic for different filesystems
  3. #
  4. 0 string \366\366\366\366 PC formatted floppy with no filesystem
  5. # Sun disk labels
  6. # From /usr/include/sun/dklabel.h:
  7. 0774 beshort 0xdabe Sun disk label
  8. >0 string x '%s
  9. >>31 string >\0 \b%s
  10. >>>63 string >\0 \b%s
  11. >>>>95 string >\0 \b%s
  12. >0 string x \b'
  13. >0734 short >0 %d rpm,
  14. >0736 short >0 %d phys cys,
  15. >0740 short >0 %d alts/cyl,
  16. >0746 short >0 %d interleave,
  17. >0750 short >0 %d data cyls,
  18. >0752 short >0 %d alt cyls,
  19. >0754 short >0 %d heads/partition,
  20. >0756 short >0 %d sectors/track,
  21. >0764 long >0 start cyl %ld,
  22. >0770 long x %ld blocks
  23. # Is there a boot block written 1 sector in?
  24. >512 belong&077777777 0600407 \b, boot block present
  25. # DOS Emulator image is 128 byte header + harddisc image
  26. 0 string DOSEMU\0
  27. >0x27E leshort 0xAA55 DOS Emulator image
  28. 0x1FE leshort 0xAA55 x86 boot sector
  29. >2 string OSBS \b, OS/BS MBR
  30. # J\xf6rg Jenderek <joerg.jenderek@gmx.net>
  31. >0x8C string Invalid\ partition\ table \b, MS-DOS MBR
  32. # dr-dos with some upper-, lowercase variants
  33. >0x9D string Invalid\ partition\ table$
  34. >>181 string No\ Operating\ System$
  35. >>>201 string Operating\ System\ load\ error$ \b, DR-DOS MBR, Version 7.01 to 7.03
  36. >0x9D string Invalid\ partition\ table$
  37. >>181 string No\ operating\ system$
  38. >>>201 string Operating\ system\ load\ error$ \b, DR-DOS MBR, Version 7.01 to 7.03
  39. >342 string Invalid\ partition\ table$
  40. >>366 string No\ operating\ system$
  41. >>>386 string Operating\ system\ load\ error$ \b, DR-DOS MBR, version 7.01 to 7.03
  42. >295 string NEWLDR\0
  43. >>302 string Bad\ PT\ $
  44. >>>310 string No\ OS\ $
  45. >>>>317 string OS\ load\ err$
  46. >>>>>329 string Moved\ or\ missing\ IBMBIO.LDR\n\r
  47. >>>>>>358 string Press\ any\ key\ to\ continue.\n\r$
  48. >>>>>>>387 string Copyright\ (c)\ 1984,1998
  49. >>>>>>>>411 string Caldera\ Inc.\0 \b, DR-DOS MBR (IBMBIO.LDR)
  50. >0x10F string Ung\201ltige\ Partitionstabelle \b, MS-DOS MBR, german version 4.10.1998, 4.10.2222
  51. >0x8B string Ung\201ltige\ Partitionstabelle \b, MS-DOS MBR, german version 5.00 to 4.00.950
  52. >300 string Invalid\ partition\ table\0
  53. >>324 string Error\ loading\ operating\ system\0
  54. >>>355 string Missing\ operating\ system\0 \b, Microsoft Windows XP MBR
  55. #??>>>389 string Invalid\ system\ disk
  56. >300 string Ung\201ltige\ Partitionstabelle
  57. #split string to avoid error: String too long
  58. >>328 string Fehler\ beim\ Laden\
  59. >>>346 string des\ Betriebssystems
  60. >>>>366 string Betriebssystem\ nicht\ vorhanden \b, Microsoft Windows XP MBR (german)
  61. >0x145 string Default:\ F \b, FREE-DOS MBR
  62. >64 string no\ active\ partition\ found
  63. >>96 string read\ error\ while\ reading\ drive \b, FREE-DOS Beta9 MBR
  64. # bootloader, bootmanager
  65. >43 string SMART\ BTMGRFAT12\ \ \
  66. >>430 string SBMK\ Bad!\r
  67. >>>3 string SBM \b, Smart Boot Manager
  68. >>>>6 string >\0 \b, version %s
  69. >382 string XOSLLOADXCF \b, EXtended Operating System Loader
  70. >6 string LILO \b, LInux i386 boot LOader
  71. >>120 string LILO \b, version 22.3.4 SuSe
  72. >>172 string LILO \b, version 22.5.8 Debian
  73. >402 string Geom\0Hard\ Disk\0Read\0\ Error\0
  74. >>394 string stage1 \b, GRand Unified Bootloader (0.5.95)
  75. >380 string Geom\0Hard\ Disk\0Read\0\ Error\0
  76. >>374 string GRUB\ \0 \b, GRand Unified Bootloader
  77. >382 string Geom\0Hard\ Disk\0Read\0\ Error\0
  78. >>376 string GRUB\ \0 \b, GRand Unified Bootloader (0.93)
  79. >383 string Geom\0Hard\ Disk\0Read\0\ Error\0
  80. >>377 string GRUB\ \0 \b, GRand Unified Bootloader (0.94)
  81. >480 string Boot\ failed\r
  82. >>495 string LDLINUX\ SYS \b, SYSLINUX bootloader (2.06)
  83. >395 string chksum\0\ ERROR!\0 \b, Gujin bootloader
  84. >185 string FDBOOT\ Version\
  85. >>204 string \rNo\ Systemdisk.\
  86. >>>220 string Booting\ from\ harddisk.\n\r
  87. >>>245 string Cannot\ load\ from\ harddisk.\n\r
  88. >>>>273 string Insert\ Systemdisk\
  89. >>>>>291 string and\ press\ any\ key.\n\r \b, FDBOOT harddisk Bootloader
  90. >>>>>>200 string >\0 \b, version %-3s
  91. >242 string Bootsector\ from\ C.H.\ Hochst\204
  92. >>278 string No\ Systemdisk.\
  93. >>>293 string Booting\ from\ harddisk.\n\r
  94. >>>441 string Cannot\ load\ from\ harddisk.\n\r
  95. >>>>469 string Insert\ Systemdisk\
  96. >>>>>487 string and\ press\ any\ key.\n\r \b, WinImage harddisk Bootloader
  97. >>>>>>209 string >\0 \b, version %-4.4s
  98. >(1.b+2) ubyte 0xe
  99. >>(1.b+3) ubyte 0x1f
  100. >>>(1.b+4) ubyte 0xbe
  101. >>>>(1.b+5) ubyte 0x77
  102. >>>>(1.b+6) ubyte 0x7c
  103. >>>>>(1.b+7) ubyte 0xac
  104. >>>>>>(1.b+8) ubyte 0x22
  105. >>>>>>>(1.b+9) ubyte 0xc0
  106. >>>>>>>>(1.b+10) ubyte 0x74
  107. >>>>>>>>>(1.b+11) ubyte 0xb
  108. >>>>>>>>>>(1.b+12) ubyte 0x56
  109. >>>>>>>>>>(1.b+13) ubyte 0xb4 \b, mkdosfs boot message display
  110. # XP
  111. >430 string NTLDR\ is\ missing\xFF\r\n
  112. >>449 string Disk\ error\xFF\r\n
  113. >>>462 string Press\ any\ key\ to\ restart\r \b, Microsoft Windows XP Bootloader
  114. # DOS names like NTLDR,CMLDR,$LDR$ are 8 right space padded bytes+3 bytes
  115. >>>>417 ubyte <0x7E
  116. >>>>>417 string >\ %-.5s
  117. >>>>>>422 ubyte <0x7E
  118. >>>>>>>422 string >\ \b%-.3s
  119. >>>>>>425 string >\ \b.%-.3s
  120. #
  121. >>>>368 ubyte <0x7E
  122. >>>>>368 string >\ %-.5s
  123. >>>>>>373 ubyte <0x7E
  124. >>>>>>>373 string >\ \b%-.3s
  125. >>>>>>376 string >\ \b.%-.3s
  126. #
  127. >430 string NTLDR\ nicht\ gefunden\xFF\r\n
  128. >>453 string Datentr\204gerfehler\xFF\r\n
  129. >>>473 string Neustart\ mit\ beliebiger\ Taste\r \b, Microsoft Windows XP Bootloader (german)
  130. >>>>417 ubyte <0x7E
  131. >>>>>417 string >\ %-.5s
  132. >>>>>>422 ubyte <0x7E
  133. >>>>>>>422 string >\ \b%-.3s
  134. >>>>>>425 string >\ \b.%-.3s
  135. #
  136. >>>>368 ubyte <0x7E
  137. >>>>>368 string >\ %-.5s
  138. >>>>>>373 ubyte <0x7E
  139. >>>>>>>373 string >\ \b%-.3s
  140. >>>>>>376 string >\ \b.%-.3s
  141. #
  142. >430 string NTLDR\ fehlt\xFF\r\n
  143. >>444 string Datentr\204gerfehler\xFF\r\n
  144. >>>464 string Neustart\ mit\ beliebiger\ Taste\r \b, Microsoft Windows XP Bootloader (2.german)
  145. >>>>417 ubyte <0x7E
  146. >>>>>417 string >\ %-.5s
  147. >>>>>>422 ubyte <0x7E
  148. >>>>>>>422 string >\ \b%-.3s
  149. >>>>>>425 string >\ \b.%-.3s
  150. #
  151. >430 string NTLDR\ fehlt\xFF\r\n
  152. >>444 string Medienfehler\xFF\r\n
  153. >>>459 string Neustart:\ Taste\ dr\201cken\r \b, Microsoft Windows XP Bootloader (3.german)
  154. >>>>368 ubyte <0x7E
  155. >>>>>368 string >\ %-.5s
  156. >>>>>>373 ubyte <0x7E
  157. >>>>>>>373 string >\ \b%-.3s
  158. >>>>>>376 string >\ \b.%-.3s
  159. >>>>417 ubyte <0x7E
  160. >>>>>417 string >\ %-.5s
  161. >>>>>>422 ubyte <0x7E
  162. >>>>>>>422 string >\ \b%-.3s
  163. >>>>>>425 string >\ \b.%-.3s
  164. #
  165. >430 string Datentr\204ger\ entfernen\xFF\r\n
  166. >>454 string Medienfehler\xFF\r\n
  167. >>>469 string Neustart:\ Taste\ dr\201cken\r \b, Microsoft Windows XP Bootloader (4.german)
  168. >>>>368 ubyte <0x7E
  169. >>>>>368 string >\ %-.5s
  170. >>>>>>373 ubyte <0x7E
  171. >>>>>>>373 string >\ \b%-.3s
  172. >>>>>>376 string >\ \b.%-.3s
  173. #>3 string NTFS\ \ \ \
  174. >389 string Fehler\ beim\ Lesen\
  175. >>407 string des\ Datentr\204gers
  176. >>>426 string NTLDR\ fehlt
  177. >>>>440 string NTLDR\ ist\ komprimiert
  178. >>>>>464 string Neustart\ mit\ Strg+Alt+Entf\r \b, Microsoft Windows XP Bootloader NTFS (german)
  179. #>3 string NTFS\ \ \ \
  180. >313 string A\ disk\ read\ error\ occurred.\r
  181. >>345 string A\ kernel\ file\ is\ missing\
  182. >>>370 string from\ the\ disk.\r
  183. >>>>484 string NTLDR\ is\ compressed
  184. >>>>>429 string Insert\ a\ system\ diskette\
  185. >>>>>>454 string and\ restart\r\nthe\ system.\r \b, Microsoft Windows XP Bootloader NTFS
  186. # DOS loader variants different languages,offsets
  187. >472 string IO\ \ \ \ \ \ SYSMSDOS\ \ \ SYS
  188. >>497 string WINBOOT\ SYS
  189. >>389 string Invalid\ system\ disk\xFF\r\n
  190. >>>411 string Disk\ I/O\ error
  191. >>>>428 string Replace\ the\ disk,\ and\
  192. >>>>>455 string press\ any\ key \b, Microsoft Windows 98 Bootloader
  193. #
  194. >>390 string Invalid\ system\ disk\xFF\r\n
  195. >>>412 string Disk\ I/O\ error\xFF\r\n
  196. >>>>429 string Replace\ the\ disk,\ and\
  197. >>>>>451 string then\ press\ any\ key\r \b, Microsoft Windows 98 Bootloader
  198. >>388 string Ungueltiges\ System\ \xFF\r\n
  199. >>>410 string E/A-Fehler\ \ \ \ \xFF\r\n
  200. >>>>427 string Datentraeger\ wechseln\ und\
  201. >>>>>453 string Taste\ druecken\r \b, Microsoft Windows 95/98/ME Bootloader (german)
  202. #
  203. >>390 string Ungueltiges\ System\ \xFF\r\n
  204. >>>412 string E/A-Fehler\ \ \ \ \xFF\r\n
  205. >>>>429 string Datentraeger\ wechseln\ und\
  206. >>>>>455 string Taste\ druecken\r \b, Microsoft Windows 95/98/ME Bootloader (German)
  207. #
  208. >>389 string Ungueltiges\ System\ \xFF\r\n
  209. >>>411 string E/A-Fehler\ \ \ \ \xFF\r\n
  210. >>>>428 string Datentraeger\ wechseln\ und\
  211. >>>>>454 string Taste\ druecken\r \b, Microsoft Windows 95/98/ME Bootloader (GERMAN)
  212. >479 string IO\ \ \ \ \ \ SYSMSDOS\ \ \ SYS
  213. >>416 string Kein\ System\ oder\
  214. >>>433 string Laufwerksfehler
  215. >>>>450 string Wechseln\ und\ Taste\ dr\201cken \b, Microsoft DOS Bootloader (german)
  216. >486 string IO\ \ \ \ \ \ SYSMSDOS\ \ \ SYS
  217. >>416 string Non-System\ disk\ or\
  218. >>>435 string disk\ error\r
  219. >>>>447 string Replace\ and\ press\ any\ key\
  220. >>>>>473 string when\ ready\r \b, Microsoft DOS Bootloader
  221. >480 string IO\ \ \ \ \ \ SYSMSDOS\ \ \ SYS
  222. >>393 string Non-System\ disk\ or\
  223. >>>412 string disk\ error\r
  224. >>>>424 string Replace\ and\ press\ any\ key\
  225. >>>>>450 string when\ ready\r \b, Microsoft DOS bootloader
  226. #>43 string \224R-LOADER\ \ SYS =label
  227. >54 string SYS
  228. >>324 string VASKK
  229. >>>495 string NEWLDR\0 \b, DR-DOS Bootloader (LOADER.SYS)
  230. #
  231. >70 string IBMBIO\ \ COM
  232. >>472 string Cannot\ load\ DOS!\
  233. >>>489 string Any\ key\ to\ retry \b, DR-DOS Bootloader
  234. >>471 string Cannot\ load\ DOS\
  235. >>487 string press\ key\ to\ retry \b, Open-DOS Bootloader
  236. >444 string KERNEL\ \ SYS
  237. >>314 string BOOT\ error! \b, FREE-DOS Bootloader
  238. >499 string KERNEL\ \ SYS
  239. >>305 string BOOT\ err!\0 \b, Free-DOS Bootloader
  240. >449 string KERNEL\ \ SYS
  241. >>319 string BOOT\ error! \b, FREE-DOS 5.0 Bootloader
  242. >124 string FreeDOS\0
  243. >>331 string \ err\0 \b, FREE-DOS BETa 9 Bootloader
  244. # DOS names like KERNEL.SYS,KERNEL16.SYS,KERNEL32.SYS,METAKERN.SYS are 8 right space padded bytes+3 bytes
  245. >>>497 string >\ %-.6s
  246. >>>>503 string >\ \b%-.1s
  247. >>>>504 string >\ \b%-.1s
  248. >>>505 string >\ \b.%-.3s
  249. >>333 string \ err\0 \b, FREE-DOS BEta 9 Bootloader
  250. >>>497 string >\ %-.6s
  251. >>>>503 string >\ \b%-.1s
  252. >>>>504 string >\ \b%-.1s
  253. >>>505 string >\ \b.%-.3s
  254. >>334 string \ err\0 \b, FREE-DOS Beta 9 Bootloader
  255. >>>497 string >\ %-.6s
  256. >>>>503 string >\ \b%-.1s
  257. >>>>504 string >\ \b%-.1s
  258. >>>505 string >\ \b.%-.3s
  259. # loader end
  260. >0 string \0\0\0\0 \b, extended partition table
  261. # JuMP short bootcodeoffset NOP assembler instructions will usually be EB xx 90
  262. # older drives may use E9 xx xx
  263. >0 lelong&0x009000EB 0x009000EB
  264. >0 lelong&0x000000E9 0x000000E9
  265. >>1 ubyte >37 \b, code offset 0x%x
  266. # mtools-3.9.8/msdos.h
  267. # usual values are marked with comments to get only informations of strange FAT systems
  268. # valid sectorsize are from 32 to 2048
  269. >>>11 uleshort <2049
  270. >>>>11 uleshort >31
  271. >>>>>3 string >\0 \b, OEM-ID "%8.8s"
  272. >>>>>11 uleshort >512 \b, Bytes/sector %u
  273. #>>>>>11 uleshort =512 \b, Bytes/sector %u=512 (usual)
  274. >>>>>11 uleshort <512 \b, Bytes/sector %u
  275. >>>>>13 ubyte >1 \b, sectors/cluster %u
  276. #>>>>>13 ubyte =1 \b, sectors/cluster %u (usual on Floppies)
  277. >>>>>14 uleshort >32 \b, reserved sectors %u
  278. #>>>>>14 uleshort =32 \b, reserved sectors %u (usual Fat32)
  279. #>>>>>14 uleshort >1 \b, reserved sectors %u
  280. #>>>>>14 uleshort =1 \b, reserved sectors %u (usual FAT12,FAT16)
  281. >>>>>14 uleshort <1 \b, reserved sectors %u
  282. >>>>>16 ubyte >2 \b, FATs %u
  283. #>>>>>16 ubyte =2 \b, FATs %u (usual)
  284. >>>>>16 ubyte =1 \b, FAT %u
  285. >>>>>16 ubyte >0
  286. >>>>>17 uleshort >0 \b, root entries %u
  287. #>>>>>17 uleshort =0 \b, root entries %u=0 (usual Fat32)
  288. >>>>>19 uleshort >0 \b, sectors %u (volumes <=32 MB)
  289. #>>>>>19 uleshort =0 \b, sectors %u=0 (usual Fat32)
  290. >>>>>21 ubyte >0xF0 \b, Media descriptor 0x%x
  291. #>>>>>21 ubyte =0xF0 \b, Media descriptor 0x%x (usual floppy)
  292. >>>>>21 ubyte <0xF0 \b, Media descriptor 0x%x
  293. >>>>>22 uleshort >0 \b, sectors/FAT %u
  294. #>>>>>22 uleshort =0 \b, sectors/FAT %u=0 (usual Fat32)
  295. >>>>>26 ubyte >2 \b, heads %u
  296. #>>>>>26 ubyte =2 \b, heads %u (usual floppy)
  297. >>>>>26 ubyte =1 \b, heads %u
  298. >>>>>28 ulelong >0 \b, hidden sectors %u
  299. #>>>>>28 ulelong =0 \b, hidden sectors %u (usual floppy)
  300. >>>>>32 ulelong >0 \b, sectors %u (volumes > 32 MB)
  301. #>>>>>32 ulelong =0 \b, sectors %u (volumes > 32 MB)
  302. # FAT<32 specific
  303. # NOT le FAT3=NOT 3TAF=0xCCABBEB9
  304. >>>>>82 ulelong&0xCCABBEB9 >0
  305. >>>>>>36 ubyte >0x80 \b, physical drive 0x%x
  306. #>>>>>>36 ubyte =0x80 \b, physical drive 0x%x=0x80 (usual harddisk)
  307. >>>>>>36 ubyte&0x7F >0 \b, physical drive 0x%x
  308. #>>>>>>36 ubyte =0 \b, physical drive 0x%x=0 (usual floppy)
  309. >>>>>>37 ubyte >0 \b, reserved 0x%x
  310. #>>>>>>37 ubyte =0 \b, reserved 0x%x
  311. >>>>>>38 ubyte >0x29 \b, dos < 4.0 BootSector (0x%x)
  312. >>>>>>38 ubyte <0x29 \b, dos < 4.0 BootSector (0x%x)
  313. >>>>>>38 ubyte =0x29
  314. >>>>>>>39 ulelong x \b, serial number 0x%x
  315. >>>>>>>43 string <NO\ NAME \b, label: "%11.11s"
  316. >>>>>>>43 string >NO\ NAME \b, label: "%11.11s"
  317. >>>>>>>43 string =NO\ NAME \b, unlabeled
  318. >>>>>>54 string FAT1 \b, FAT
  319. >>>>>>>54 string FAT12 \b (12 bit)
  320. >>>>>>>54 string FAT16 \b (16 bit)
  321. # FAT32 specific
  322. >>>>>82 string FAT32 \b, FAT (32 bit)
  323. >>>>>>36 ulelong x \b, sectors/FAT %u
  324. >>>>>>40 uleshort >0 \b, extension flags %u
  325. #>>>>>>40 uleshort =0 \b, extension flags %u
  326. >>>>>>42 uleshort >0 \b, fsVersion %u
  327. #>>>>>>42 uleshort =0 \b, fsVersion %u (usual)
  328. >>>>>>44 ulelong >2 \b, rootdir cluster %u
  329. #>>>>>>44 ulelong =2 \b, rootdir cluster %u
  330. #>>>>>>44 ulelong =1 \b, rootdir cluster %u
  331. >>>>>>48 uleshort >1 \b, infoSector %u
  332. #>>>>>>48 uleshort =1 \b, infoSector %u (usual)
  333. >>>>>>48 uleshort <1 \b, infoSector %u
  334. >>>>>>50 uleshort >6 \b, Backup boot sector %u
  335. #>>>>>>50 uleshort =6 \b, Backup boot sector %u (usual)
  336. >>>>>>50 uleshort <6 \b, Backup boot sector %u
  337. >>>>>>54 ulelong >0 \b, reserved1 0x%x
  338. >>>>>>58 ulelong >0 \b, reserved2 0x%x
  339. >>>>>>62 ulelong >0 \b, reserved3 0x%x
  340. # same structure as FAT1X
  341. >>>>>>64 ubyte >0x80 \b, physical drive 0x%x
  342. #>>>>>>64 ubyte =0x80 \b, physical drive 0x%x=80 (usual harddisk)
  343. >>>>>>64 ubyte&0x7F >0 \b, physical drive 0x%x
  344. #>>>>>>64 ubyte =0 \b, physical drive 0x%x=0 (usual floppy)
  345. >>>>>>65 ubyte >0 \b, reserved 0x%x
  346. >>>>>>66 ubyte >0x29 \b, dos < 4.0 BootSector (0x%x)
  347. >>>>>>66 ubyte <0x29 \b, dos < 4.0 BootSector (0x%x)
  348. >>>>>>66 ubyte =0x29
  349. >>>>>>>67 ulelong x \b, serial number 0x%x
  350. >>>>>>>71 string <NO\ NAME \b, label: "%11.11s"
  351. >>>>>>71 string >NO\ NAME \b, label: "%11.11s"
  352. >>>>>>71 string =NO\ NAME \b, unlabeled
  353. ### FATs end
  354. >0x200 lelong 0x82564557 \b, BSD disklabel
  355. # FATX
  356. 0 string FATX FATX filesystem data
  357. # Minix filesystems - Juan Cespedes <cespedes@debian.org>
  358. 0x410 leshort 0x137f Minix filesystem
  359. 0x410 beshort 0x137f Minix filesystem (big endian),
  360. >0x402 beshort !0 \b, %d zones
  361. >0x1e string minix \b, bootable
  362. 0x410 leshort 0x138f Minix filesystem, 30 char names
  363. 0x410 leshort 0x2468 Minix filesystem, version 2
  364. 0x410 leshort 0x2478 Minix filesystem, version 2, 30 char names
  365. # romfs filesystems - Juan Cespedes <cespedes@debian.org>
  366. 0 string -rom1fs-\0 romfs filesystem, version 1
  367. >8 belong x %d bytes,
  368. >16 string x named %s.
  369. # netboot image - Juan Cespedes <cespedes@debian.org>
  370. 0 lelong 0x1b031336L Netboot image,
  371. >4 lelong&0xFFFFFF00 0
  372. >>4 lelong&0x100 0x000 mode 2
  373. >>4 lelong&0x100 0x100 mode 3
  374. >4 lelong&0xFFFFFF00 !0 unknown mode
  375. 0x18b string OS/2 OS/2 Boot Manager
  376. 9564 lelong 0x00011954 Unix Fast File system (little-endian),
  377. >8404 string x last mounted on %s,
  378. #>9504 ledate x last checked at %s,
  379. >8224 ledate x last written at %s,
  380. >8401 byte x clean flag %d,
  381. >8228 lelong x number of blocks %d,
  382. >8232 lelong x number of data blocks %d,
  383. >8236 lelong x number of cylinder groups %d,
  384. >8240 lelong x block size %d,
  385. >8244 lelong x fragment size %d,
  386. >8252 lelong x minimum percentage of free blocks %d,
  387. >8256 lelong x rotational delay %dms,
  388. >8260 lelong x disk rotational speed %drps,
  389. >8320 lelong 0 TIME optimization
  390. >8320 lelong 1 SPACE optimization
  391. 9564 belong 0x00011954 Unix Fast File system (big-endian),
  392. >7168 long 0x4c41424c Apple UFS Volume
  393. >>7186 string x named %s,
  394. >>7176 belong x volume label version %d,
  395. >>7180 bedate x created on %s,
  396. >8404 string x last mounted on %s,
  397. #>9504 bedate x last checked at %s,
  398. >8224 bedate x last written at %s,
  399. >8401 byte x clean flag %d,
  400. >8228 belong x number of blocks %d,
  401. >8232 belong x number of data blocks %d,
  402. >8236 belong x number of cylinder groups %d,
  403. >8240 belong x block size %d,
  404. >8244 belong x fragment size %d,
  405. >8252 belong x minimum percentage of free blocks %d,
  406. >8256 belong x rotational delay %dms,
  407. >8260 belong x disk rotational speed %drps,
  408. >8320 belong 0 TIME optimization
  409. >8320 belong 1 SPACE optimization
  410. # ext2/ext3 filesystems - Andreas Dilger <adilger@turbolabs.com>
  411. 0x438 leshort 0xEF53 Linux
  412. >0x44c lelong x rev %d
  413. >0x43e leshort x \b.%d
  414. >0x45c lelong ^0x0000004 ext2 filesystem data
  415. >>0x43a leshort ^0x0000001 (mounted or unclean)
  416. >0x45c lelong &0x0000004 ext3 filesystem data
  417. >>0x460 lelong &0x0000004 (needs journal recovery)
  418. >0x43a leshort &0x0000002 (errors)
  419. >0x460 lelong &0x0000001 (compressed)
  420. #>0x460 lelong &0x0000002 (filetype)
  421. #>0x464 lelong &0x0000001 (sparse_super)
  422. >0x464 lelong &0x0000002 (large files)
  423. # SGI disk labels - Nathan Scott <nathans@debian.org>
  424. 0 belong 0x0BE5A941 SGI disk label (volume header)
  425. # SGI XFS filesystem - Nathan Scott <nathans@debian.org>
  426. 0 belong 0x58465342 SGI XFS filesystem data
  427. >0x4 belong x (blksz %d,
  428. >0x68 beshort x inosz %d,
  429. >0x64 beshort ^0x2004 v1 dirs)
  430. >0x64 beshort &0x2004 v2 dirs)
  431. ############################################################################
  432. # Minix-ST kernel floppy
  433. 0x800 belong 0x46fc2700 Atari-ST Minix kernel image
  434. >19 string \240\5\371\5\0\011\0\2\0 \b, 720k floppy
  435. >19 string \320\2\370\5\0\011\0\1\0 \b, 360k floppy
  436. ############################################################################
  437. # Hmmm, is this a better way of detecting _standard_ floppy images ?
  438. 19 string \320\2\360\3\0\011\0\1\0 DOS floppy 360k
  439. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  440. 19 string \240\5\371\3\0\011\0\2\0 DOS floppy 720k
  441. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  442. 19 string \100\013\360\011\0\022\0\2\0 DOS floppy 1440k
  443. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  444. 19 string \240\5\371\5\0\011\0\2\0 DOS floppy 720k, IBM
  445. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  446. 19 string \100\013\371\5\0\011\0\2\0 DOS floppy 1440k, mkdosfs
  447. >0x1FE leshort 0xAA55 \b, x86 hard disk boot sector
  448. 19 string \320\2\370\5\0\011\0\1\0 Atari-ST floppy 360k
  449. 19 string \240\5\371\5\0\011\0\2\0 Atari-ST floppy 720k
  450. # Valid media descriptor bytes for MS-DOS:
  451. #
  452. # Byte Capacity Media Size and Type
  453. # -------------------------------------------------
  454. #
  455. # F0 2.88 MB 3.5-inch, 2-sided, 36-sector
  456. # F0 1.44 MB 3.5-inch, 2-sided, 18-sector
  457. # F9 720K 3.5-inch, 2-sided, 9-sector
  458. # F9 1.2 MB 5.25-inch, 2-sided, 15-sector
  459. # FD 360K 5.25-inch, 2-sided, 9-sector
  460. # FF 320K 5.25-inch, 2-sided, 8-sector
  461. # FC 180K 5.25-inch, 1-sided, 9-sector
  462. # FE 160K 5.25-inch, 1-sided, 8-sector
  463. # FE 250K 8-inch, 1-sided, single-density
  464. # FD 500K 8-inch, 2-sided, single-density
  465. # FE 1.2 MB 8-inch, 2-sided, double-density
  466. # F8 ----- Fixed disk
  467. #
  468. # FC xxxK Apricot 70x1x9 boot disk.
  469. #
  470. # Originally a bitmap:
  471. # xxxxxxx0 Not two sided
  472. # xxxxxxx1 Double sided
  473. # xxxxxx0x Not 8 SPT
  474. # xxxxxx1x 8 SPT
  475. # xxxxx0xx Not Removable drive
  476. # xxxxx1xx Removable drive
  477. # 11111xxx Must be one.
  478. #
  479. # But now it's rather random:
  480. # 111111xx Low density disk
  481. # 00 SS, Not 8 SPT
  482. # 01 DS, Not 8 SPT
  483. # 10 SS, 8 SPT
  484. # 11 DS, 8 SPT
  485. #
  486. # 11111001 Double density 3½ floppy disk, high density 5¼
  487. # 11110000 High density 3½ floppy disk
  488. # 11111000 Hard disk any format
  489. #
  490. # CDROM Filesystems
  491. 32769 string CD001 ISO 9660 CD-ROM filesystem data
  492. # "application id" which appears to be used as a volume label
  493. >32808 string >\0 '%s'
  494. >34816 string \000CD001\001EL\ TORITO\ SPECIFICATION (bootable)
  495. 37633 string CD001 ISO 9660 CD-ROM filesystem data (raw 2352 byte sectors)
  496. 32776 string CDROM High Sierra CD-ROM filesystem data
  497. # cramfs filesystem - russell@coker.com.au
  498. 0 lelong 0x28cd3d45 Linux Compressed ROM File System data, little endian
  499. >4 lelong x size %d
  500. >8 lelong &1 version #2
  501. >8 lelong &2 sorted_dirs
  502. >8 lelong &4 hole_support
  503. >32 lelong x CRC 0x%x,
  504. >36 lelong x edition %d,
  505. >40 lelong x %d blocks,
  506. >44 lelong x %d files
  507. 0 belong 0x28cd3d45 Linux Compressed ROM File System data, big endian
  508. >4 belong x size %d
  509. >8 belong &1 version #2
  510. >8 belong &2 sorted_dirs
  511. >8 belong &4 hole_support
  512. >32 belong x CRC 0x%x,
  513. >36 belong x edition %d,
  514. >40 belong x %d blocks,
  515. >44 belong x %d files
  516. # reiserfs - russell@coker.com.au
  517. 0x10034 string ReIsErFs ReiserFS V3.5
  518. 0x10034 string ReIsEr2Fs ReiserFS V3.6
  519. >0x1002c leshort x block size %d
  520. >0x10032 leshort &2 (mounted or unclean)
  521. >0x10000 lelong x num blocks %d
  522. >0x10040 lelong 1 tea hash
  523. >0x10040 lelong 2 yura hash
  524. >0x10040 lelong 3 r5 hash
  525. # JFFS - russell@coker.com.au
  526. 0 lelong 0x34383931 Linux Journalled Flash File system, little endian
  527. 0 belong 0x34383931 Linux Journalled Flash File system, big endian
  528. # EST flat binary format (which isn't, but anyway)
  529. # From: Mark Brown <broonie@sirena.org.uk>
  530. 0 string ESTFBINR EST flat binary
  531. # Aculab VoIP firmware
  532. # From: Mark Brown <broonie@sirena.org.uk>
  533. 0 string VoIP\ Startup\ and Aculab VoIP firmware
  534. >35 string x format %s
  535. # PPCBoot image file
  536. # From: Mark Brown <broonie@sirena.org.uk>
  537. 0 belong 0x27051956 PPCBoot image
  538. >4 string PPCBoot
  539. >>12 string x version %s
  540. # JFFS2 file system
  541. 0 leshort 0x1984 Linux old jffs2 filesystem data little endian
  542. 0 lelong 0xe0011985 Linux jffs2 filesystem data little endian
  543. # Squashfs
  544. 0 string sqsh Squashfs filesystem, big endian,
  545. >28 beshort x version %d.
  546. >30 beshort x \b%d,
  547. >8 belong x %d bytes,
  548. >4 belong x %d inodes,
  549. >28 beshort <2
  550. >>32 beshort x blocksize: %d bytes,
  551. >28 beshort >1
  552. >>51 belong x blocksize: %d bytes,
  553. >39 bedate x created: %s
  554. 0 string hsqs Squashfs filesystem, little endian,
  555. >28 leshort x version %d.
  556. >30 leshort x \b%d,
  557. >8 lelong x %d bytes,
  558. >4 lelong x %d inodes,
  559. >28 leshort <2
  560. >>32 leshort x blocksize: %d bytes,
  561. >28 leshort >1
  562. >>51 lelong x blocksize: %d bytes,
  563. >39 ledate x created: %s
  564. # AFS Dump Magic
  565. # From: Ty Sarna <tsarna@sarna.org>
  566. 0 string \x01\xb3\xa1\x13\x22 AFS Dump
  567. >&0 belong x (v%d)
  568. >>&0 byte 0x76
  569. >>>&0 belong x Vol %d,
  570. >>>>&0 byte 0x6e
  571. >>>>>&0 string x %s
  572. >>>>>>&1 byte 0x74
  573. >>>>>>>&0 beshort 2
  574. >>>>>>>>&4 bedate x on: %s
  575. >>>>>>>>&0 bedate =0 full dump
  576. >>>>>>>>&0 bedate !0 incremental since: %s