After changing partition information on a disk, you might need to tell Linux to reload the partition tables in order for the device partitions (eg. /dev/sda1) to show up. Below are some options to tell Linux to re-read the partition information.
Ways to force Linux to re-read partition tables[edit | edit source]
# partprobe # partprobe /dev/sda
# hdparm -z /dev/sda
|Use partx. Alternatively, kpartx might also work, though that's usually used with device mappers.|
# partx -a /dev/sda # kpartx -a /dev/sda
|Interface with the kernel directly and trigger a rescan of a specific block device.|
# echo 1 > /sys/block/sda/device/rescan