filesystems 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. 0x1FE leshort 0xAA55 x86 boot sector
  27. >2 string OSBS \b, OS/BS MBR
  28. >0x8C string Invalid\ partition\ table \b, MS-DOS MBR
  29. >0 string \0\0\0\0 \b, extended partition table
  30. >0 leshort 0x3CEB \b, system
  31. >>3 string >\0 %s
  32. >>0x36 string FAT \b, %s
  33. >>>0x39 string 12 (%s bit)
  34. >>>0x39 string 16 (%s bit)
  35. >0x52 string FAT32 \b, FAT (32 bit)
  36. >>>43 string >NO\ NAME label: %.11s,
  37. >>>43 string <NO\ NAME label: %.11s,
  38. >>>43 string NO\ NAME unlabeled,
  39. >>>19 leshort >0 %d sectors
  40. >>>19 leshort 0
  41. >>>>32 lelong x %d sectors
  42. >0x200 lelong 0x82564557 \b, BSD disklabel
  43. # Minix filesystems - Juan Cespedes <cespedes@debian.org>
  44. 0x410 leshort 0x137f Minix filesystem
  45. 0x410 leshort 0x138f Minix filesystem, 30 char names
  46. 0x410 leshort 0x2468 Minix filesystem, version 2
  47. 0x410 leshort 0x2478 Minix filesystem, version 2, 30 char names
  48. # romfs filesystems - Juan Cespedes <cespedes@debian.org>
  49. 0 string -rom1fs-\0 romfs filesystem, version 1
  50. >8 belong x %d bytes,
  51. >16 string x named %s.
  52. # netboot image - Juan Cespedes <cespedes@debian.org>
  53. 0 lelong 0x1b031336L Netboot image,
  54. >4 lelong&0xFFFFFF00 0
  55. >>4 lelong&0x100 0x000 mode 2
  56. >>4 lelong&0x100 0x100 mode 3
  57. >4 lelong&0xFFFFFF00 !0 unknown mode
  58. 0x18b string OS/2 OS/2 Boot Manager
  59. 9564 lelong 0x00011954 Unix Fast File system,
  60. >8404 string x last mounted on %s,
  61. >9504 ledate x last checkd at %s,
  62. >8224 ledate x last writen at %s,
  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 number of basic blocks %d,
  67. >8244 lelong x number of fragment blocks %d,
  68. >8248 lelong x minimum percentage of free blocks %d,
  69. >8252 lelong x rotational delay %dms,
  70. >8256 lelong x disk rotational speed %drps,
  71. >8320 lelong 0 TIME optimization
  72. >8320 lelong 1 SPACE optimization