← 返回命令列表

Linux command

partprobe 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Notify

sudo partprobe

Example

sudo partprobe -s

Dry run

sudo partprobe -d -s

Probe a specific device

sudo partprobe /dev/[sda]

说明

partprobe informs the operating system kernel of partition table changes. After modifying partitions using fdisk, parted, or similar tools, partprobe updates the kernel's partition table without requiring a reboot.

参数

-d, --dry-run
Don't actually inform the kernel, just print what would be done
-s, --summary
Show a summary of devices and their partitions
-h, --help
Show help message
-v, --version
Show version

FAQ

What is the partprobe command used for?

partprobe informs the operating system kernel of partition table changes. After modifying partitions using fdisk, parted, or similar tools, partprobe updates the kernel's partition table without requiring a reboot.

How do I run a basic partprobe example?

Run `sudo partprobe` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d, --dry-run do in partprobe?

Don't actually inform the kernel, just print what would be done