What is the difference between kpartx,partx and partprobe


Got some Answer from Reddit hope this will help you : source : Reddit
Kpartx can be used to set up device mappings for the partitions of any partitioned block device. It is part of the Linux multipath-tools. With kpartx -l imagefile you get an overview of the partitions in the image file and with kpartx -a imagefile the partitions will accessible via /dev/mapper/loop0pX (X is the number of the partition). You can mount it now with mount /dev/mapper/loop0pX /mnt/ -o loop,ro. After unmounting you can disconnect the mapper devices with kpartx -d imagefile.

Given a device or disk-image, partx tries to parse the partition table and list its contents. It optionally adds or removes partitions. The partx is not an fdisk program — adding and removing partitions does not change the disk, it just tells the kernel about the presence and numbering of on-disk partitions.
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.
What is the difference between kpartx,partx and partprobe What is the difference between kpartx,partx and partprobe Reviewed by TecGeeks on November 28, 2017 Rating: 5

No comments:

Get Your Business Online Now


Powered by Blogger.