filesystems 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #------------------------------------------------------------------------------
  2. # filesystems: file(1) magic for different filesystems
  3. #
  4. 0x438 leshort 0xEF53 Linux/i386 ext2 filesystem
  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 Sun disk label
  9. >0 string x '%s
  10. >>31 string >\0 \b%s
  11. >>>63 string >\0 \b%s
  12. >>>>95 string >\0 \b%s
  13. >0 string x \b'
  14. >0734 short >0 %d rpm,
  15. >0736 short >0 %d phys cys,
  16. >0740 short >0 %d alts/cyl,
  17. >0746 short >0 %d interleave,
  18. >0750 short >0 %d data cyls,
  19. >0752 short >0 %d alt cyls,
  20. >0754 short >0 %d heads/partition,
  21. >0756 short >0 %d sectors/track,
  22. >0764 long >0 start cyl %ld,
  23. >0770 long x %ld blocks
  24. # Is there a boot block written 1 sector in?
  25. >512 belong&077777777 0600407 \b, boot block present
  26. # Moved to linux.
  27. #0x1FE leshort 0xAA55 x86 boot sector
  28. #>2 string OSBS \b, OS/BS MBR
  29. #>0x8C string Invalid\ partition\ table \b, MS-DOS MBR
  30. #>0 string \0\0\0\0 \b, extended partition table
  31. #>0 leshort 0x3CEB \b, system
  32. #>>3 string >\0 %s
  33. #>>0x36 string FAT \b, %s
  34. #>>>0x39 string 12 (%s bit)
  35. #>>>0x39 string 16 (%s bit)
  36. #>0x52 string FAT32 \b, FAT (32 bit)
  37. #>>>43 string >NO\ NAME label: %.11s,
  38. #>>>43 string <NO\ NAME label: %.11s,
  39. #>>>43 string NO\ NAME unlabeled,
  40. #>>>19 leshort >0 %d sectors
  41. #>>>19 leshort 0
  42. #>>>>32 lelong x %d sectors
  43. #>0x200 lelong 0x82564557 \b, BSD disklabel
  44. # Minix filesystems - Juan Céspedes <cespedes@debian.org>
  45. 0x410 leshort 0x137f Minix filesystem
  46. 0x410 leshort 0x138f Minix filesystem, 30 char names
  47. 0x410 leshort 0x2468 Minix filesystem, version 2
  48. 0x410 leshort 0x2478 Minix filesystem, version 2, 30 char names
  49. # romfs filesystems - Juan Céspedes <cespedes@debian.org>
  50. 0 string -rom1fs-\0 romfs filesystem, version 1
  51. >8 belong x %d bytes,
  52. >16 string x named %s.
  53. # netboot image - Juan Céspedes <cespedes@debian.org>
  54. 0 lelong 0x1b031336L Netboot image,
  55. >4 lelong&0xFFFFFF00 0
  56. >>4 lelong&0x100 0x000 mode 2
  57. >>4 lelong&0x100 0x100 mode 3
  58. >4 lelong&0xFFFFFF00 !0 unknown mode
  59. 0x18b string OS/2 OS/2 Boot Manager
  60. 9564 lelong 0x00011954 Unix Fast File system,
  61. >8404 string x last mounted on %s,
  62. >9504 ledate x last checkd at %s,
  63. >8224 ledate x last writen at %s,
  64. >8228 lelong x number of blocks %d,
  65. >8232 lelong x number of data blocks %d,
  66. >8236 lelong x number of cylinder groups %d,
  67. >8240 lelong x number of basic blocks %d,
  68. >8244 lelong x number of fragment blocks %d,
  69. >8248 lelong x minimum percentage of free blocks %d,
  70. >8252 lelong x rotational delay %dms,
  71. >8256 lelong x disk rotational speed %drps,
  72. >8320 lelong 0 TIME optimization
  73. >8320 lelong 1 SPACE optimization