1DISKTYPE(1) BSD General Commands Manual DISKTYPE(1)
2
4 disktype — disk format detector
5
7 disktype file...
8
10 The purpose of disktype is to detect the content format of a disk or disk
11 image. It knows about common file systems, partition tables, and boot
12 codes.
13
15 disktype can be run with any number of regular files or device special
16 files as arguments. They will be analyzed in the order given, and the
17 results printed to standard output. There are no switches in this ver‐
18 sion. Note that running disktype on device files like your hard disk will
19 likely require root rights.
20
21 See the online documentation at <http://disktype.sourceforge.net/doc/>
22 for some example command lines.
23
25 The following formats are recognized by this version of disktype.
26
27 File systems:
28 FAT12/FAT16/FAT32, NTFS, HPFS, MFS, HFS, HFS Plus, ISO9660,
29 ext2/ext3, Minix, ReiserFS, Reiser4, Linux romfs, Linux cramfs,
30 Linux squashfs, UFS (some variations), SysV FS (some variations),
31 JFS, XFS, Amiga FS/FFS, BeOS BFS, QNX4 FS, UDF, 3DO CD-ROM file
32 system, Veritas VxFS, Xbox DVD file system.
33
34 Partitioning:
35 DOS/PC style, Apple, Amiga "Rigid Disk", ATARI ST (AHDI3), BSD
36 disklabel, Linux RAID physical disks, Linux LVM1 physical volumes,
37 Linux LVM2 physical volumes, Solaris x86 disklabel (vtoc), Solaris
38 SPARC disklabel.
39
40 Other structures:
41 Debian split floppy header, Linux swap.
42
43 Disk images:
44 Raw CD image (.bin), Virtual PC hard disk image, Apple UDIF disk
45 image (limited).
46
47 Boot codes:
48 LILO, GRUB, SYSLINUX, ISOLINUX, Linux kernel, FreeBSD loader, Sega
49 Dreamcast (?).
50
51 Compression formats:
52 gzip, compress, bzip2.
53
54 Archive formats:
55 tar, cpio, bar, dump/restore.
56
57 Compressed files (gzip, compress, bzip2 formats) will also have their
58 contents analyzed using transparent decompression. The appropriate com‐
59 pression program must be installed on the system, i.e. gzip(1) for the
60 gzip and compress formats, bzip2(1) for the bzip2 format.
61
62 Disk images in general will also have their contents analyzed using the
63 proper mapping, with the exception of the Apple UDIF format.
64
65 See the online documentation at <http://disktype.sourceforge.net/doc/>
66 for more details on the supported formats and their quirks.
67
69 http://disktype.sourceforge.net/
70
72 Christoph Pfisterer <chrisp@users.sourceforge.net>
73
75 file(1), gpart(8)
76
77 Feb 21, 2005