Can Sparseimage be mounted in linux?

0

I have a .sparseimage file that I am trying to mount on Linux. I have tried mounting with the hfs and hfsplus filesystem specified but no luck. Has anyone done this before? I have used the below commands with no luck. I am able to mount the sparseimage on my macbook pro. I am using Debian 7.

sudo mount -t hfs /image/to/mount /mount/location
sudo mount -t hfsplus /image/to/mount /mount/location

John

Posted 2014-01-29T04:04:22.150

Reputation: 1

Yeah it's supported, contrary to using sparse-file-backed swap. – poige – 2016-05-18T07:26:12.360

@SamiLaine Uh... that seems to be for a sparsebundle, not a sparseimage. – Michael – 2020-02-19T03:59:16.980

Please include the exact commands you ran, the error messages (if any) you received, indicate if you know that the image is OK (can it be mounted on another system?), the Linux distribution you are using (probably irrelevant but you ever know) etc. The more information you give us, the likelier it is we'll be able to help you. – terdon – 2014-01-29T04:53:06.773

Can you run the file command on the .sparseimage file? – yjwong – 2014-01-29T07:21:38.573

Sami's comment is probably the way to go, but in any case, to mount an image (not a drive) you need the -o loop option. – terdon – 2014-01-29T16:45:05.113

No answers