- Debian Admin - http://www.debianadmin.com -

Detect content format of a disk or disk image Using disktype

Posted By Admin On 27th February 2007 @ 06:11 In General, Other Linux | 1 Comment

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

The purpose of disktype is to detect the content format of a disk or disk image. It knows about common file systems, partition tables, and boot codes.

Install disktype in Debian

#apt-get install disktype

Install disktype in Ubuntu

sudo apt-get install disktype

This will complete the installation

Using Disktype

The disktype program can be run with any number of regular files or device special files as arguments. They will be analyzed in the order given, and the results printed to standard output. There are no switches in this version. Note that running disktype on device files like your hard disk will likely require root rights.

Usage Examples

These usage examples use Linux device names. See the next section for a guide to device names on different systems.

Analyzing a CD image

disktype debian-30r0-i386-binary-1_NONUS.iso

Analyzing the first IDE hard disk

#disktype /dev/hda

Analyzing a CD or DVD

#disktype /dev/cdrom

Analyzing a floppy

#disktype /dev/fd0

If you want more documentation about disktype check here

Tags: , , , ,

You may also be interested in...


Article printed from Debian Admin: http://www.debianadmin.com

URL to article: http://www.debianadmin.com/detect-content-format-of-a-disk-or-disk-image-using-disktype.html

Click here to print.