Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I use Ubuntu and Debian Linux.

I have an image of a (mac) disk that uses GPT.

How do I mount one of the partions on this? I have installed gdisk and can list the partitions on the image.

I would actually like to extract an image of each of the partitions so I end up with an image for each partition.

How to do that?

share|improve this question
    
It's easy to confuse "Mac" disks with APM, so avoid using that term inappropriately. GPT is GPT, on any machine. –  Ignacio Vazquez-Abrams Jun 8 '11 at 11:47

2 Answers 2

up vote 1 down vote accepted

While @alharaka's suggestion will work, you might find it easier to use kpartx, as described in this blog post:

After attaching your disk image to a loop device, kpartx will create device nodes for each of the partitions. I believe kpartx supports GPT.

share|improve this answer
    
I solved the problem using kpartx and loopback devices. –  Thomas Jun 10 '11 at 6:22

This should get you started.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.