partx — telling the kernel about presence and numbering of on-disk partitions.
partx [-a|-d|-l] [--type TYPE]
[--nr M-N] [partition] disk
Given a block device ( disk ) and a partition table type , try to parse the partition table, and list the contents. Optionally add or remove partitions.
This is not an fdisk - adding and removing partitions is not a change of the disk, but just telling the kernel about presence and numbering of on-disk partitions.
−aadd specified partitions or read disk and add all partitions
−ddelete specified or all partitions
−llist partitions. Note that the all numbers are in 512-byte sectors.
−−type TYPESpecify the partition type -- dos, bsd, solaris, unixware or gpt.
−−nr M−NSpecify the range of partitions (e.g --nr 2-4).