| 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. |
| 64 |
|
| 65 |
Partitioning: DOS/PC style, EFI GPT, Apple, Amiga "Rigid Disk", ATARI |
| 66 |
ST (AHDI3), BSD disklabel, Linux RAID physical disks, Linux LVM1 |
| 67 |
physical volumes, Linux LVM2 physical volumes, Solaris x86 disklabel |
| 68 |
(vtoc), Solaris SPARC disklabel. |
| 69 |
|
| 70 |
Other structures: Debian split floppy header, Linux swap. |
| 71 |
|
| 72 |
Disk images: Raw CD image (.bin), Virtual PC hard disk image, Apple |
| 73 |
UDIF disk image (limited), Linux cloop (limited). |
| 74 |
|
| 75 |
Boot loaders: LILO, GRUB, SYSLINUX, ISOLINUX, Linux kernel, FreeBSD |
| 76 |
loader, Windows/MS-DOS loader, BeOS loader, Haiku loader, Sega |
| 77 |
Dreamcast. |
| 78 |
|
| 79 |
Compression formats: gzip, compress, bzip2. |
| 80 |
|
| 81 |
Archive formats: tar, cpio, bar, dump/restore. |
| 82 |
|
| 83 |
|
| 84 |
Compressed files (gzip, compress, bzip2 formats) will also have their |
| 85 |
contents analyzed using transparent decompression. The appropriate |
| 86 |
compression program must be installed on the system, i.e. 'gzip' for |
| 87 |
the gzip and compress formats, 'bzip2' for the bzip2 format. |
| 88 |
|
| 89 |
Disk images in general will also have their contents analyzed using |
| 90 |
the proper mapping, with the exception of the Apple UDIF format. |
| 91 |
|
| 92 |
See the online documentation at <http://disktype.sourceforge.net/doc/> |
| 93 |
for more details on the supported formats and their quirks. |
| 94 |
|
| 95 |
|
| 96 |
Future Plans |
| 97 |
-------------- |
| 98 |
|
| 99 |
To fulfill its purpose, disktype needs to know about as much formats |
| 100 |
as possible. If you know a file system not yet included and can |
| 101 |
provide me with (pointers to) format information, please contact me at |
| 102 |
<[email protected]>. I'm also looking for information on |
| 103 |
disk image formats (e.g. used by backup apps or CD mastering |
| 104 |
software). |
| 105 |
|
| 106 |
|
| 107 |
EOF |