• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

partprobe: command not found

by admin

The partprobe command is normally needed only in situations where the partition table has changed and the system needs to be informed of the changes. The most common example is when you use the fdisk command to change a partition on a device that currently has mounted filesystems. The fdisk command attempts to inform the system of changes to the partition table by using a kernel call, which fails because of the “live” filesystem. To overcome this, just execute the partprobe command after exiting the fdisk utility.

These days, systems are pretty good about automatically re-reading the partition table changes of a device, though occasionally you might still need to run partprobe to inform your kernel of any changes manually.

Syntax:

# partprobe [OPTIONS] [DEVICE]

Options:

  • -d: Does not actually inform the operating system.
  • -s: Prints a summary of contents.

If you encounter the below error while running the partprobe command:

partprobe: command not found

you may try installing the below package as per your choice of distribution.

Distribution Command
Debian apt-get install parted
Ubuntu apt-get install parted
Alpine apk add parted
Arch Linux pacman -S parted
Kali Linux apt-get install parted
CentOS yum install parted
Fedora dnf install parted
Raspbian apt-get install parted

partprobe Command Examples

1. Notify the operating system kernel of partition table changes:

# partprobe

2. Notify the kernel of partition table changes and show a summary of devices and their partitions:

# partprobe --summary

3. Show a summary of devices and their partitions but don’t notify the kernel:

# partprobe --summary --dry-run

Note: Although you can check the partitions just created without running the partprobe command first, it is always a good idea to run this command first. Forcing a reread of the partition table ensures that you get the latest information from your system and that no strange errors or outdated information is returned.

Filed Under: Linux

Some more articles you might also be interested in …

  1. cryptsetup: command not found
  2. Using grep to search in reverse
  3. xz: command not found
  4. Creating and Removing Files and Directories Under Linux
  5. i3status Command Examples in Linux
  6. lvdisplay error: “Failed to create directory /var/lock/lvm. File-based locking initilisation failed.”
  7. git hash-object: Computes the unique hash key of content and optionally creates an object with specified type
  8. lsattr: command not found
  9. daemonize: command not found
  10. http_load Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • “glab pipeline” Command Examples
  • “glab mr” Command Examples
  • “glab mr merge” Command Examples
  • “glab mr” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright