disktype command not found

In this troubleshooting guide we learn how to fix disktype command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

disktype: command not found

or when using sudo you get the following error message

sudo: disktype: command not found

Solutions to disktype: command not found

How To Fix disktype: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu disktype is provided by disktype package.

disktype is:

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. This software can be used for forensics analysis.

As of version 9, disktype knows about the following formats:

File systems: FAT12/FAT16/FAT32/exFAT NTFS HPFS MFS, HFS, HFS Plus ISO9660 (incl. Joliet, El Torito) UDF ext2/ext3 ext4 (patch from upstream CVS) btrfs (patch from upstream CVS) Minix ReiserFS Reiser4 Linux romfs Linux cramfs Linux squashfs UFS (some variations) SysV FS (some variations) JFS XFS F2FS Amiga FS/FFS Amiga SFS Amiga PFS BeOS BFS QNX4 FS 3DO CD-ROM FS Veritas VxFS Xbox DVD file system Partitioning: DOS/PC style EFI GPT Apple Amiga “Rigid Disk” ATARI ST (AHDI3) BSD disklabel Linux RAID physical disks Linux LVM1 physical volumes Linux LVM2 physical volumes Solaris SPARC disklabel Solaris x86 disklabel (vtoc) Other structures: Debian split floppy header Linux swap Disk images: Raw CD image (.bin) Virtual PC hard disk image Apple UDIF disk image (limited) Boot loaders: LILO GRUB SYSLINUX ISOLINUX Linux kernel FreeBSD loader Windows/MS-DOS loader BeOS loader, Haiku loader Sega Dreamcast Compression formats: gzip compress bzip2 Archive formats: tar cpio bar dump/restore

To fix this problem, we can install more using the command below.

sudo apt-get -y install disktype

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install disktype.

sudo apt -y install disktype

Or if you have aptitude installed you can use the following command.

sudo aptitude install disktype

Summary

In this tutorial we learn how to fix disktype command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.