To reload or re-read the partition table in Ubuntu Linux, you can use the following command:
sudo partprobe
This command will instruct the Linux kernel to re-read the partition table for all storage devices connected to the system.
If you have just created a new partition on a disk, or resized an existing partition, running partprobe
will update the partition table in memory so that the changes take effect immediately.
In some cases, you may need to specify the device name explicitly. For example, to reload the partition table for the device /dev/sda, you can use the following command:
sudo partprobe /dev/sda
After running this command, you should be able to see the updated partition table by running the fdisk
command with the -l
option to list the partitions:
sudo fdisk -l
This will show you the updated partition information for all storage devices on the system, including the newly created or resized partitions.