Other gpart show md0 ?

Is there any way show any partitioning on a memory disk?

I extracted a disk image to md0 but am unable to mount it... After extracting to a USB stick I see:-

Code:
=>      34  15146941  da0  GPT  (7.2G) [CORRUPT]
        34      8158       - free -  (4.0M)
      8192   1048576    1  ms-basic-data  (512M)
   1056768     65536    2  linux-data  (32M)
   1122304  14024671       - free -  (6.7G)

so, assuming the image was extracted to the memory disk the same way, I would have thought I should be able to mount the first partion using mount -t msdosfs /dev/md0p1 /mnt/tmp but I get /dev/md0p1: No such file or directory. How do I show the partitioning of md0?
 
Maybe I wasn't clear....

I have an image.dd...

dd if=image.dd of=/dev/md0

but unable to see what is on md0 so...

dd if=image.dd of=/dev/da0

gpart show da0:-
Code:
=>      34  15146941  da0  GPT  (7.2G) [CORRUPT]
        34      8158       - free -  (4.0M)
      8192   1048576    1  ms-basic-data  (512M)
   1056768     65536    2  linux-data  (32M)
   1122304  14024671       - free -  (6.7G)

I presumed that md0 would have a similar file layout to da0, but don't know how to tell...
 
Usually /dev/md0 is created out of an image file by running:
Code:
# mdconfig -a image.dd
md0
Don't forget, that, most likely, the USB stick was ctreated by dd-ing another image which is smaller than its physical size, thus the second copy of the GPT is not in the correct place, that's why it's "corrupted".
 
Back
Top