Q:

How to work with Mac/GPT disks in Linux

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?

A:

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

http://nfolamp.wordpress.com/2010/08/16/mounting-raw-image-files-and-kpartx/

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

