How to work with Mac/GPT disks in Linux – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.
But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, disk-image, gpt, partition, .
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?
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.
This should get you started.