Forrest logo
back to the partprobe tool

partprobe:tldr:5cd87

partprobe: Notify the operating system kernel of partition table changes.
$ sudo partprobe
try on your machine

The command "sudo partprobe" is used in Linux systems to inform the operating system about any changes in the partitions of a storage device. It is typically used after making changes to the partition table, such as creating, deleting, or resizing partitions, on a running system.

When a storage device's partition table is modified, the changes are not automatically recognized by the Linux kernel. This means that the updated partition information may not be immediately accessible to the system or applications. To propagate the changes and ensure that the operating system is aware of the new or modified partitions, the "sudo partprobe" command is used.

The "sudo" part of the command is used to execute the subsequent command with superuser privileges, allowing administrative access to perform system-level tasks. This is necessary because modifying partition information requires elevated privileges.

"partprobe" is the actual command that triggers the partition table update. It scans the system's block devices, such as hard drives or SSDs, and updates the kernel with any changes made to the partition table. By doing so, it ensures that the updated partition information is immediately available to the operating system, including filesystems and other tools that rely on accurate partition data.

In summary, "sudo partprobe" is used to refresh the Linux kernel's knowledge of the partition table, making any changes made to the partitions of a storage device immediately recognized and usable by the system.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the partprobe tool