63 lines
2.0 KiB
Plaintext
63 lines
2.0 KiB
Plaintext
|
|
#------------------------------------------------------------------------------
|
|
# filesystems: file(1) magic for different filesystems
|
|
#
|
|
0x438 leshort 0xEF53 Linux/i386 ext2 filesystem
|
|
0 string \366\366\366\366 PC formatted floppy with no filesystem
|
|
# Sun disk labels
|
|
# From /usr/include/sun/dklabel.h:
|
|
0774 beshort 0xdabe Sun disk label
|
|
>0 string x '%s
|
|
>>31 string >\0 \b%s
|
|
>>>63 string >\0 \b%s
|
|
>>>>95 string >\0 \b%s
|
|
>0 string x \b'
|
|
>0734 short >0 %d rpm,
|
|
>0736 short >0 %d phys cys,
|
|
>0740 short >0 %d alts/cyl,
|
|
>0746 short >0 %d interleave,
|
|
>0750 short >0 %d data cyls,
|
|
>0752 short >0 %d alt cyls,
|
|
>0754 short >0 %d heads/partition,
|
|
>0756 short >0 %d sectors/track,
|
|
>0764 long >0 start cyl %ld,
|
|
>0770 long x %ld blocks
|
|
# Is there a boot block written 1 sector in?
|
|
>512 belong&077777777 0600407 \b, boot block present
|
|
0x1FE leshort 0xAA55 x86 boot sector
|
|
>2 string OSBS \b, OS/BS MBR
|
|
>0x8C string Invalid\ partition\ table \b, MS-DOS MBR
|
|
>0 string \0\0\0\0 \b, extended partition table
|
|
>0 leshort 0x3CEB \b, system
|
|
>>3 string >\0 %s
|
|
>>0x36 string FAT \b, %s
|
|
>>>0x39 string 12 (%s bit)
|
|
>>>0x39 string 16 (%s bit)
|
|
>>>43 string >NO\ NAME label: %.11s,
|
|
>>>43 string <NO\ NAME label: %.11s,
|
|
>>>43 string NO\ NAME unlabeled,
|
|
>>>19 leshort >0 %d sectors
|
|
>>>19 leshort 0
|
|
>>>>32 lelong x %d sectors
|
|
>0x200 lelong 0x82564557 \b, BSD disklabel
|
|
|
|
# Minix filesystems - Juan Cespedes <cespedes@debian.org>
|
|
0x410 leshort 0x137f Minix filesystem
|
|
0x410 leshort 0x138f Minix filesystem, 30 char names
|
|
0x410 leshort 0x2468 Minix filesystem, version 2
|
|
0x410 leshort 0x2478 Minix filesystem, version 2, 30 char names
|
|
|
|
# romfs filesystems - Juan Cespedes <cespedes@debian.org>
|
|
0 string -rom1fs-\0 romfs filesystem, version 1
|
|
>8 belong x %d bytes,
|
|
>16 string x named %s.
|
|
|
|
# netboot image - Juan Cespedes <cespedes@debian.org>
|
|
0 lelong 0x1b031336L Netboot image,
|
|
>4 lelong&0xFFFFFF00 0
|
|
>>4 lelong&0x100 0x000 mode 2
|
|
>>4 lelong&0x100 0x100 mode 3
|
|
>4 lelong&0xFFFFFF00 !0 unknown mode
|
|
|
|
0x18b string OS/2 OS/2 Boot Manager
|