Pour avoir certaines informations des disques, partitions, systèmes de fichiers, bootloader et autres codes.
Fonctionne aussi sur images, cdrom, etc.
sudo aptitude install disktype
Exemples de renseignements donnés :
# disktype /dev/hdb
--- /dev/hdb
Block device, size 7.875 GiB (8455200768 bytes)
GRUB boot loader, compat version 3.2, boot drive 0xff
DOS/MBR partition map
Partition 1: 101.9 MiB (106896384 bytes, 208782 sectors from 63, bootable)
Type 0x83 (Linux)
Ext3 file system
UUID 0C22E844-4ECB-48D4-A3C3-F083DDB1DF3B (DCE, v4)
Volume size 101.9 MiB (106896384 bytes, 104391 blocks of 1 KiB)
Partition 2: 4.880 GiB (5239503360 bytes, 10233405 sectors from 208845)
Type 0x83 (Linux)
Ext3 file system
UUID 455BDD5D-3E11-4DBD-B1A2-FACA236EC0B6 (DCE, v4)
Volume size 4.880 GiB (5239500800 bytes, 1279175 blocks of 4 KiB)
Partition 3: 2.543 GiB (2730792960 bytes, 5333580 sectors from 10442250)
Type 0xFD (Linux raid autodetect)
Ext3 file system
UUID ADC48AEE-10B1-4738-A828-27F6AD1218C4 (DCE, v4)
Volume size 2.543 GiB (2730688512 bytes, 666672 blocks of 4 KiB)
Linux RAID disk, version 0.90.3
RAID1 set using 2 regular 0 spare disks
RAID set UUID BD6A527F-3C5C-0C1E-76D1-95350AF45913 (NCS)
Partition 4: 353.0 MiB (370137600 bytes, 722925 sectors from 15775830)
Type 0x82 (Linux swap / Solaris)
Linux swap, version 2, subversion 1, 4 KiB pages, little-endian
Swap size 353.0 MiB (370126848 bytes, 90363 pages of 4 KiB)
Pour une image :
:~$ disktype 63sec.img
--- 63sec.img
Regular file, size 32 KiB (32768 bytes)
GRUB boot loader, compat version 3.2, boot drive 0xff
DOS/MBR partition map
Partition 1: 9.024 GiB (9689347584 bytes, 18924507 sectors from 63,
bootable)
Type 0x83 (Linux)
Partition 2: 423.6 MiB (444165120 bytes, 867510 sectors from 18924570)
Type 0x05 (Extended)
Pour un iso :
$ disktype SIDUX-2007-01-200702210759-CHAOS.ISO
-
-- SIDUX-2007-01-200702210759-CHAOS.ISO
Regular file, size 693.1 MiB (726722560 bytes)
ISO9660 file system
Volume name "SIDUX"
Application "SIDUX LIVE LINUX CD"
Data size 693.1 MiB (726722560 bytes, 354845 blocks of 2 KiB)
El Torito boot record, catalog at 76
Bootable non-emulated image, starts at 77, preloads 2 KiB
Platform 0x00 (x86), System Type 0x00 (Empty)
Joliet extension, volume name "SIDUX"
De même pour un cdrom, etc. etc.
Pour plus de détails :
man disktype
http://disktype.sourceforge.net/