filesystems 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. 0x1FE leshort 0xAA55 x86 boot sector
  26. >2 string OSBS \b, OS/BS MBR
  27. >0x8C string Invalid\ partition\ table \b, MS-DOS MBR
  28. >0 string \0\0\0\0 \b, extended partition table
  29. >0 leshort 0x3CEB \b, system
  30. >>3 string >\0 %s
  31. >>0x36 string FAT \b, %s
  32. >>>0x39 string 12 (%s bit)
  33. >>>0x39 string 16 (%s bit)
  34. >0x52 string FAT32 \b, FAT (32 bit)
  35. >>>43 string >NO\ NAME label: %.11s,
  36. >>>43 string <NO\ NAME label: %.11s,
  37. >>>43 string NO\ NAME unlabeled,
  38. >>>19 leshort >0 %d sectors
  39. >>>19 leshort 0
  40. >>>>32 lelong x %d sectors
  41. >0x200 lelong 0x82564557 \b, BSD disklabel
  42. # Minix filesystems - Juan Cespedes <cespedes@debian.org>
  43. 0x410 leshort 0x137f Minix filesystem
  44. 0x410 leshort 0x138f Minix filesystem, 30 char names
  45. 0x410 leshort 0x2468 Minix filesystem, version 2
  46. 0x410 leshort 0x2478 Minix filesystem, version 2, 30 char names
  47. # romfs filesystems - Juan Cespedes <cespedes@debian.org>
  48. 0 string -rom1fs-\0 romfs filesystem, version 1
  49. >8 belong x %d bytes,
  50. >16 string x named %s.
  51. # netboot image - Juan Cespedes <cespedes@debian.org>
  52. 0 lelong 0x1b031336L Netboot image,
  53. >4 lelong&0xFFFFFF00 0
  54. >>4 lelong&0x100 0x000 mode 2
  55. >>4 lelong&0x100 0x100 mode 3
  56. >4 lelong&0xFFFFFF00 !0 unknown mode
  57. 0x18b string OS/2 OS/2 Boot Manager
  58. 9564 lelong 0x00011954 Unix Fast File system (little-endian),
  59. >8404 string x last mounted on %s,
  60. #>9504 ledate x last checked at %s,
  61. >8224 ledate x last written at %s,
  62. >8401 byte x clean flag %d,
  63. >8228 lelong x number of blocks %d,
  64. >8232 lelong x number of data blocks %d,
  65. >8236 lelong x number of cylinder groups %d,
  66. >8240 lelong x block size %d,
  67. >8244 lelong x fragment size %d,
  68. >8252 lelong x minimum percentage of free blocks %d,
  69. >8256 lelong x rotational delay %dms,
  70. >8260 lelong x disk rotational speed %drps,
  71. >8320 lelong 0 TIME optimization
  72. >8320 lelong 1 SPACE optimization
  73. 9564 belong 0x00011954 Unix Fast File system (big-endian),
  74. >8404 string x last mounted on %s,
  75. #>9504 bedate x last checked at %s,
  76. >8224 bedate x last written at %s,
  77. >8401 byte x clean flag %d,
  78. >8228 belong x number of blocks %d,
  79. >8232 belong x number of data blocks %d,
  80. >8236 belong x number of cylinder groups %d,
  81. >8240 belong x block size %d,
  82. >8244 belong x fragment size %d,
  83. >8252 belong x minimum percentage of free blocks %d,
  84. >8256 belong x rotational delay %dms,
  85. >8260 belong x disk rotational speed %drps,
  86. >8320 belong 0 TIME optimization
  87. >8320 belong 1 SPACE optimization
  88. # ext2/ext3 filesystems - Andreas Dilger <adilger@turbolabs.com>
  89. 0x438 leshort 0xEF53 Linux
  90. >0x44c lelong x rev %d
  91. >0x43e leshort x \b.%d
  92. >0x45c lelong ^0x0000004 ext2 filesystem data
  93. >>0x43a leshort ^0x0000001 (mounted or unclean)
  94. >0x45c lelong &0x0000004 ext3 filesystem data
  95. >>0x460 lelong &0x0000004 (needs journal recovery)
  96. >0x43a leshort &0x0000002 (errors)
  97. >0x460 lelong &0x0000001 (compressed)
  98. #>0x460 lelong &0x0000002 (filetype)
  99. #>0x464 lelong &0x0000001 (sparse_super)
  100. >0x464 lelong &0x0000002 (large files)
  101. # SGI disk labels - Nathan Scott <nathans@debian.org>
  102. 0 belong 0x0BE5A941 SGI disk label (volume header)
  103. # SGI XFS filesystem - Nathan Scott <nathans@debian.org>
  104. 0 belong 0x58465342 SGI XFS filesystem data
  105. >0x4 belong x (blksz=3D%d,
  106. >0x68 beshort x inosz=3D%d,
  107. >0x64 beshort ^0x2004 v1 dirs)
  108. >0x64 beshort &0x2004 v2 dirs)