When you alter a disk's partition layout, the kernel won't auto-refresh. partprobe prompts the OS to re-read the partition table so new or changed partitions appear as usable devices without a reboot. Learn how this tool differs from partx and kpartx, and why -s adds a summary.

Multiple Choice

Which command informs the OS of partition table changes?

When you change a partition table, the kernel’s view of the disk doesn’t automatically update. The command that asks the OS to re-read the partition tables and refresh its partition information is partprobe. It probes the block devices and informs the kernel about the new or changed partitions so they become visible as devices you can mount and use again without rebooting. This is the standard, general-purpose way to propagate partition-table changes into the running system. The other tools have different roles. partx can also update the kernel’s partition information but is older and depends on more explicit invocation for specific devices. kpartx is used to create device mappings for partitions (often with complex setups or loop devices), not simply to inform the kernel of changes. Using partprobe with the -s option adds a summary display, but the essential action—re-reading the partition table—remains partprobe.

Partition tables are a backbone of how a Linux system sees storage. When you twiddle a disk’s layout—adding, deleting, resizing partitions—the kernel doesn’t automatically rerun to re-scan the changes. That gap can leave the system holding onto stale maps, which means you might be staring at a partition that doesn’t exist or, worse, trying to mount something that isn’t ready. The good news is there’s a straightforward way to tell the OS, “Hey, re-read the partition table,” so new partitions show up as usable devices without a reboot. Enter partprobe, a simple yet powerful helper in the Linux toolbox.

Let’s set the scene: you’re working with a disk that’s just had its partition table adjusted. Maybe you resized a primary partition, or you’ve replaced the disk with a larger one and swapped it into a LVM-backed setup. Either way, the kernel’s internal view can drift away from reality after such changes. You could reboot, yes, but that’s a bit heavy-handed—especially on a busy server or a desktop environment where uptime matters. Instead, you reach for partprobe, a purpose-built utility that asks the kernel to re-scan the block devices and refresh its understanding of the partitions. It’s like asking the clerk at a store to print out a new catalog so the shelves line up with what’s actually on the back wall.

What exactly does partprobe do?

  • It explicitly instructs the kernel to re-read the partition tables on the specified devices (or all devices if you don’t specify any). In practice, this is a quick, low-overhead operation that updates the kernel’s in-memory map of partitions.

  • Once the kernel has re-read the table, new partitions become visible under /dev (for example, /dev/sda3 might suddenly appear if it was created in the partition table). That visibility is what lets you mount, format, or attach the partitions to LVM or other subsystems without rebooting.

  • It’s a general-purpose, minimal-disruption workflow. You don’t need to bounce services or bring the system down. You just pulse the kernel with the updated information and carry on.

This is a pretty elegant solution because it acknowledges how modern Linux systems are designed: they’re supposed to stay live, even when the underlying hardware configuration changes. The OS expects that storage changes can happen while the system is up, and it provides tools to keep pace with those changes. Partprobe is one of the unsung heroes that makes hot-plug storage and partition rearrangements practical in production environments.

How does partprobe compare to its peers?

  • partx: Think of partx as a cousin who’s a tad older and a bit more opinionated. It can also inform the kernel about partitions, but it often requires a bit more explicit handling for specific devices. In some setups, partx might be used when you want fine-grained control over certain disks, especially in older distributions. It’s capable, but partprobe tends to be the go-to for quick, all-around updates.

  • kpartx: This one’s more specialized. It’s designed to create device mappings for partitions, which is invaluable in more complex narratives—like loop devices, RAID arrays, or setups that demand an alternate view of partitions. If you’re juggling encrypted containers, multipath devices, or layered storage, kpartx has a use case beyond the straightforward re-read of a table.

  • partprobe -s: The -s flag doesn’t change the action at the core; it adds a summary display after the re-read. It’s handy if you want a quick confirmation of what partitions the kernel now sees. The essential act remains re-reading the partition table, but the -s option gives you immediate visibility into the results.

A practical moment: when would you actually run partprobe?

  • After you’ve adjusted a disk's partition table with a tool like fdisk, sfdisk, or parted, and you want the running system to recognize new or changed partitions immediately.

  • After adding a new disk that has an existing partition table, and you want the system to see those partitions without rebooting.

  • In environments where uptime is at a premium—servers, container hosts, or virtual machines that still rely on the host’s storage configuration.

A quick note on safety and best practices

  • If you’re modifying partitions on a mounted disk or on partitions you’re actively using, be mindful of potential data integrity issues. In some cases, you may need unmount the partition or ensure there’s no active I/O on the device before re-reading the partition table.

  • In certain virtualization or cloud environments, you might see transient behavior as the kernel maps change. A short delay after running partprobe can help; give the system a heartbeat, then proceed with mounting or resizing tasks.

  • Always verify after the re-read. A simple lsblk or blkid can confirm that the expected partitions are present and have sensible identifiers. If something looks off, double-check the partition table changes and, if needed, re-scan or re-apply carefully.

Beyond partprobe: a tour of practical storage ergonomics

Partition management is part art, part science. The ability to adjust disks on the fly speaks to a bigger theme: Linux treats storage as a modular ecosystem where components can be swapped, resized, or reconfigured with a mix of low-level utilities and high-level abstractions like LVM, Btrfs, or XFS.

  • LVM: When you’re juggling logical volumes, you’ll often run pvresize or lvresize after altering physical volumes. After the partition table changes are recognized by the kernel, LVM can see the new space and you can expand the volume group or logical volumes without taking the system offline.

  • File systems: After you create a new partition, you’ll format it with a filesystem (mkfs.ext4, xfs_growfs, etc.). If you’re expanding an existing partition that carries a filesystem, you’ll often grow the filesystem in a separate step (e.g., resize2fs for ext4 or xfs_growfs for XFS). The key is that partprobe’s re-scan ensures the device node exists and the kernel sees the new structure before you proceed.

  • Virtualization and containers: In virtualized environments, disk changes can be particularly dynamic. You might be resizing virtual disks, adding partitions, or swapping backing storage. The kernel’s perception needs to stay synced with the virtual hardware stack, and partprobe is a practical tool for that harmony.

A few caveats to keep in mind

  • Root partitions: Re-reading the partition table on the root device is possible, but it can be risky if the system is actively using the root filesystem in ways that conflict with the change. In most sane workflows, you’ll perform more invasive partition changes from a maintenance mode or during a controlled window, with caution.

  • RAID and multipath: In complex storage topologies, re-reading the partition table is just one step. You might also need to reconfigure the RAID layer or multipath maps to ensure all components line up correctly. It helps to have a mental map of how the storage stack interlocks.

  • NVRAM and firmware quirks: Some hardware layers cache metadata; in rare cases, you might still see discrepancies after a re-read. If that happens and you’re chasing consistency, a brief reboot can sometimes settle the state—but only after verifying the changes are indeed properly written.

A small, human note about the rhythm of working with disks

Storage work often feels like tuning a musical instrument. You adjust a string (a partition), you listen for the resonance (the kernel’s recognition via lsblk or blkid), and you decide whether to bow out for a quiet moment or strike again with a precise command. partprobe is the calm, efficient cue that tells the orchestra to start playing in sync again. It’s not flashy, but it’s essential. And in many setups, it’s all you need to harmonize the live system with the updated storage map.

Concluding thoughts: a practical mindset for storage changes

In the grand scheme, partition management is a routine of keeping systems honest with their hardware. The kernel wants a clean, consistent view of devices, and tools like partprobe provide a clean, minimal way to request that the kernel refresh its understanding. It’s the kind of small, targeted action that keeps servers reliable, desktops responsive, and workflows smooth.

If you’re exploring storage on a Linux system, here are a few quick tips to keep in mind:

  • After modifying a partition table, run partprobe to refresh the kernel’s view. If you’re curious about what changed, try partprobe -s to see a concise summary of the newly recognized partitions.

  • Use lsblk, blkid, or fdisk -l to verify the current state of disks and partitions after the refresh.

  • Remember that other tools like partx or kpartx exist for more specialized scenarios. Partprobe tends to be the first-line choice for straightforward re-reading, while the others shine in more intricate setups.

  • Keep a mental map of your storage topology. Virtual machines, containers, and physical servers each have their own quirks, but the underlying principle remains: the kernel needs to know what’s actually on the disks, and partprobe is a reliable way to tell it.

So the next time you extend a partition, re-create a table, or swap in a bigger drive, you’ll have a clear, practical approach. Give partprobe a try, and you’ll likely find that the system slides back into alignment with surprisingly little fuss. It’s small hardware wisdom that pays off every day in uptime, efficiency, and a quieter, more predictable workflow.