After looking at it for a long time, I still don't quite understand what you mean.
Hope these methods are useful to you:
1: If you know in advance which partition it is in the physical hard drive arrangement for the purpose of the operation you want to perform, then there will be no problem at all when restoring with GHOST, because when GHOST restores from the image file to the partition, it uses the format of "disk:partition" to specify the destination partition. (For example, DST=1:3)
2: If you don't know which physical partition the partition is, but you know what the volume label of the partition is, then you can use the two tools Gdisk and lmod together to find out which physical partition it is. The specific operation is a bit complicated, but it is still feasible.
Briefly talk about the process:
Gdisk 1 >temp.txt Get the partition list of the specified hard drive to a temporary text
find "label" temp.txt >temp1.txt Extract the relevant partition line using the volume label as the keyword
Analyze the information in this line with lmod (the specific operation is omitted) Because the partition list obtained by Gdisk has a fixed format
So lmod can be used for comprehensive analysis to get the desired information.
Determine whether it is a primary partition or a logical partition by finding whether this line is "PRIMARY" or "LOGICAL".
Because the numbering of partitions in Gdisk is different from that in Ghost. There will be an "EXTENDED" extended partition numbered between the primary partition and the logical partition in Gdisk. So, the partition number displayed by Gdisk needs to be processed before being used in Ghost.
In fact, the specific processing is also easy, that is: if it is a primary partition, just use the number directly; if it is a logical partition, just subtract 1 from the number.
By modifying the above method, you can also use LMOD to check which partition the known drive letter is in the physical partition...
(Not applicable to NTFS partitions)