partprobe
inform the OS of partition table changes
see also :
parted
Synopsis
partprobe
[-d] [-s] [devices...]
add an example, a script, a trick and tips
examples
source
sudo losetup /dev/loop0 /mnt/fuck/image/u.img
sudo partprobe /dev/loop0
sudo mount /dev/loop0p1 /mnt/live
sudo cp load /mnt/live
source
sudo losetup /dev/loop0 /mnt/fuck/image/u.img
sudo partprobe /dev/loop0
sudo mount /dev/loop0p1 /mnt/live
sudo cp live /mnt/live
source
_deploy_static_elf /partprobe.elf
/partprobe/partprobe
(
_output_cpiod_bin_file /parted /parted.elf
_output_cpiod_bin_file /parted /parted.elf
_output_cpiod_bin_file /partprobe
/partprobe.elf
) | _deploy_cpiod /generic-bin.cpiod
}
source
parted $VOL2 mkpart primary 0GB
$VOLUME_SIZE
partprobe $VOL1
partprobe $VOL2
mdadm --create /dev/md0 --level=1
--raid-devices=2 $VOL1 $VOL2
source
mount /dev/sdf1 /usr/sandeep
partprobe /dev/sdf1
source
_deploy_static_elf /partprobe.elf
/partprobe/partprobe
(
_output_cpiod_bin_file /parted /parted.elf
_output_cpiod_bin_file /partprobe /partprobe.elf
_output_cpiod_bin_file /partprobe
/partprobe.elf
) | _deploy_cpiod /generic-bin.cpiod
}
description
This manual
page documents briefly the partprobe command.
partprobe
is a program that informs the operating system kernel of
partition table changes, by requesting that the operating
system re-read the 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.
see also
parted .
author
This manual
page was written by Timshel Knoll
<timshel[:at:]debian[:dot:]org>, for the Debian GNU/Linux system
(but may be used by others).