filesystems 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. >>>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