Debian Codegraph @

README

raw ◀ ▶
1 Debian patch touch this file
1 $Id: README,v 1.17 2006/06/05 07:57:51 chrisp Exp $ -*- text -*-
2
3 disktype 9
4 ============
5
6 The purpose of disktype is to detect the content format of a disk or
7 disk image. It knows about common file systems, partition tables, and
8 boot codes.
9
10 The program is written in C and is designed to compile on any modern
11 Unix flavour. It is self-contained and in general works without
12 special libraries or headers. Some system-dependent features can be
13 used to gather additional information.
14
15
16 Installation
17 --------------
18
19 GNU make is required to build disktype. The Makefile is set up to use
20 GCC, but disktype should compile with any C compiler. To change the
21 compiler, you can edit the Makefile or set the standard variables CC,
22 CPPFLAGS, CFLAGS, LDFLAGS, and LIBS from the make command line.
23
24 The Makefile uses uname to determine the system type and enables
25 certain system-dependent features based on that. If you run into
26 problems, you can disable all system-dependent features by setting the
27 variable NOSYS, as in 'make NOSYS=1'.
28
29 Running make results in the binary 'disktype'. Copy it to a 'bin'
30 directory of your choice, optionally stripping it on the way. It does
31 not require any additional files.
32
33 The manual page 'disktype.1' can be copied to
34 /usr/local/share/man/man1 or a similar directory that is suitable for
35 your system and policy. If you package disktype for binary
36 distribution, please also include the README, HISTORY, TODO, and
37 LICENSE files in a place like /usr/share/doc/disktype.
38
39
40 Usage
41 -------
42
43 The 'disktype' program can be run with any number of regular files or
44 device special files as arguments. They will be analyzed in the order
45 given, and the results printed to standard output. There are no
46 switches in this version. Note that running disktype on device files
47 like your hard disk will likely require root rights.
48
49 See the online documentation at <http://disktype.sourceforge.net/doc/>
50 for some example command lines.
51
52
53 Recognized Formats
54 --------------------
55
56 The following formats are recognized by this version of disktype.
57
58 File systems: FAT12/FAT16/FAT32, NTFS, HPFS, MFS, HFS, HFS Plus,
59 ISO9660, ext2/ext3, Minix, ReiserFS, Reiser4, Linux romfs, Linux
60 cramfs, Linux squashfs, UFS (some variations), SysV FS (some
61 variations), JFS, XFS, Amiga FS/FFS, Amiga SFS, Amiga PFS, BeOS BFS,
62 QNX4 FS, UDF, 3DO CD-ROM file system, Veritas VxFS, Xbox DVD file
•63 system. On Debian systems, Btrfs, exFAT, Ext4 and F2FS are also
64 known.
65
66 Partitioning: DOS/PC style, EFI GPT, Apple, Amiga "Rigid Disk", ATARI
67 ST (AHDI3), BSD disklabel, Linux RAID physical disks, Linux LVM1
68 physical volumes, Linux LVM2 physical volumes, Solaris x86 disklabel
69 (vtoc), Solaris SPARC disklabel.
70
71 Other structures: Debian split floppy header, Linux swap.
72
73 Disk images: Raw CD image (.bin), Virtual PC hard disk image, Apple
74 UDIF disk image (limited), Linux cloop (limited).
75
76 Boot loaders: LILO, GRUB, SYSLINUX, ISOLINUX, Linux kernel, FreeBSD
77 loader, Windows/MS-DOS loader, BeOS loader, Haiku loader, Sega
78 Dreamcast.
79
80 Compression formats: gzip, compress, bzip2.
81
82 Archive formats: tar, cpio, bar, dump/restore.
83
84
85 Compressed files (gzip, compress, bzip2 formats) will also have their
86 contents analyzed using transparent decompression. The appropriate
87 compression program must be installed on the system, i.e. 'gzip' for
88 the gzip and compress formats, 'bzip2' for the bzip2 format.
89
90 Disk images in general will also have their contents analyzed using
91 the proper mapping, with the exception of the Apple UDIF format.
92
93 See the online documentation at <http://disktype.sourceforge.net/doc/>
94 for more details on the supported formats and their quirks.
95
96
97 Future Plans
98 --------------
99
100 To fulfill its purpose, disktype needs to know about as much formats
101 as possible. If you know a file system not yet included and can
102 provide me with (pointers to) format information, please contact me at
103 <[email protected]>. I'm also looking for information on
104 disk image formats (e.g. used by backup apps or CD mastering
105 software).
106
107
108 EOF