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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. last Command Examples in Linux
  2. httpd Command Examples in Linux
  3. Installing Security Vulnerabilities with yum on CentOS/RHEL 5,6,7 (Cheat Sheet)
  4. /etc/rsyslog.conf – Setup a Filter to Discard or Redirect Messages
  5. How to install rsyslog7 when rsyslog5 is already installed in CentOS/RHEL
  6. nmcli connection Command Examples in Linux
  7. pacman –query Command Examples
  8. free: command not found
  9. Understanding the /etc/fstab file in Linux
  10. isoinfo Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • chars: Display names and codes for various ASCII and Unicode characters and code points
  • chafa: Image printing in the terminal
  • cf: Command-line tool to manage apps and services on Cloud Foundry
  • certutil: Manage keys and certificates in both NSS databases and other NSS tokens

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright