partprobe command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
partprobe: command not found
or when using sudo you get the following error message
sudo: partprobe: command not found
Solutions to partprobe: command not found
How To Fix partprobe: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu partprobe is provided by parted package.
parted is:
GNU Parted is a program that allows you to create, destroy, resize, move, and copy disk partitions. This is useful for creating space for new operating systems, reorganizing disk usage, and copying data to new hard disks.
This package contains the binary and manual page. Further documentation is available in parted-doc.
Parted currently supports DOS, Mac, Sun, BSD, GPT, MIPS, and PC98 partitioning formats, as well as a “loop” (raw disk) type which allows use on RAID/LVM. It can detect and remove ASFS/AFFS/APFS, Btrfs, ext2/3/4, FAT16/32, HFS, JFS, linux-swap, UFS, XFS, and ZFS file systems. Parted also has the ability to create and modify file systems of some of these types, but using it to perform file system operations is now deprecated.
The nature of this software means that any bugs could cause massive data loss. While there are no such bugs known at the moment, they could exist, so please back up all important files before running it, and do so at your own risk.
To fix this problem, we can install more using the command below.
sudo apt-get -y install parted
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install parted.
sudo apt -y install parted
Or if you have aptitude installed you can use the following command.
sudo aptitude install parted
Summary
In this tutorial we learn how to fix partprobe command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.