I learned a new command:PartprobeThis command can make the new disk partition take effect without restarting the operating system.
Default location:/sbin/partprobe. Related commands:Parted.
In practice, warnings are sometimes reported and partition information is not updated successfully.
Partprobe-S
Warning: warning: the kernel failed to re-read the partition table on/dev/SDA (device or resource busy ). as a result, it may not reflect all of your changes until after reboot.
Name
Partprobe-notifies the system kernel of the change information of the partition table.
Summary
Partprobe[-D] [-S] [Devices...]
Description
PartprobeIsProgramTo notify the operating system kernel of the change information of the partition table by requesting the operating system to re-read the partition table.
Option
This program uses short format options.
-
-D
-
Do not update the kernel.
-
-S
-
Displays the summary of devices and partitions.
-
-H
-
Displays the summary of the options.
-
-V
-
Displays the program version.
Name
Partprobe-inform the OS of Partition Table changes
Synopsis
Partprobe[-D] [-S] [Devices...]
Description
This manual page documents brieflyPartprobeCommand.
PartprobeIs a program that informs the operating system kernel ofpartition table changes, by requesting that the operating system re-readthe partition table.
Options
This program uses short UNIX style options.
-
-D
-
Don't update the kernel.
-
-S
-
Show a summary of devices and their partitions.
-
-H
-
Show Summary of options.
-
-V
-
Show version of program.