You are not logged in.

#1 2011-10-11 02:50:56

rg_arc
Member
Registered: 2011-03-20
Posts: 507

How to use a .dmg file in Arch Linux

I have a file a friend gave me from his Mac computer with a .dmg file name. I haven't been able to pinpoint exactly how to use this type of file... I believe its an Apple raw disk image or something like that.. sort of like an iso. I need to use this file in order to start an application and download it onto Arch Linux. The problem is that I can't figure out how to use it on Arch Linux and burn it onto a Cd. Has anyone had experience with this sort of thing? I am completely lost.

Offline

#2 2011-10-11 03:04:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How to use a .dmg file in Arch Linux

Offline

#3 2011-10-11 03:05:49

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: How to use a .dmg file in Arch Linux

Thanks! I will check it out and see if it works.

Offline

#4 2011-10-11 03:06:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How to use a .dmg file in Arch Linux

Some ideas about the support outside of Mac http://en.wikipedia.org/wiki/Apple_Disk … -Macintosh

In Linux and possibly other Unix flavors, most .dmg files can be burned to CD/DVD using the program cdrecord or directly mounted to a mountpoint (e.g. mount -o loop,ro -t hfsplus imagefile.dmg /mnt/mountpoint).

Last edited by karol (2011-10-11 03:07:21)

Offline

#5 2011-10-11 06:55:55

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: How to use a .dmg file in Arch Linux

$ poweriso convert ~/Downloads/lang.rar/Rosetta_Stone_3.4.5.dmg -o ~/Downloads/lang.rar/rose.iso -o t

PowerISO   Copyright(C) 2004-2008 PowerISO Computing, Inc
            Type poweriso -? for help

/home/user/Downloads/lang.rar/Rosetta_Stone_3.4.5.dmg: The file format is invalid or unsupported.
$ 
$ poweriso -?

PowerISO   Copyright(C) 2004-2008 PowerISO Computing, Inc
            Type poweriso -? for help

Usage:    poweriso <command> [parameters] [-switches]

<Commands>

 list <image file> <directory>    List files and directories in image file.
     Example:  List all files and directories in root direcory of /home/sam/test.iso .
     Command:  poweriso list /home/sam/test.iso / -r

 extract <image file> <dir/file name>   Extract files/directories from image file.
     Example:  Extract all files and directories in root direcory of /home/sam/test.iso
               to /home/sam/test recursively.
     Command:  poweriso extract /home/sam/test.iso / -od /home/sam/test

 convert <image file>    Convert image file to other format.
     Example:  Convert /home/sam/test.daa to standard iso file 
     Command:  poweriso convert /home/sam/test.daa -o /home/sam/test.iso -ot iso

<Switches>

 -r             List or extract recursively.
 -o             Specify output image file name.
 -od            Specify output folder.
 -ot <iso|daa|bin>    Specify output image file type. If not specified, 
                the image type will be determined by file name suffix.
 -volsize <n>   Split output image file to multiple volumes, and set volume
                size to <n>. Example: -volsize 100M
 -setpassword <password>   Set password for output image file. 
                Example: -setpassword 12345678
$

I tried to convert the file .dmg to an .iso so that I can easily burn that onto a disk and get the ball rolling.. am I missing something here?

Offline

#6 2011-10-11 14:17:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How to use a .dmg file in Arch Linux

Have you tried simply mounting it

mount -o loop,ro -t hfsplus imagefile.dmg /mnt/mountpoint

What's the output of

file ~/Downloads/lang.rar/Rosetta_Stone_3.4.5.dmg

?

Offline

#7 2011-10-11 14:39:05

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: How to use a .dmg file in Arch Linux

A quick google later: http://ubuntuforums.org/showthread.php?t=343808

I remember that this worked for me years ago, I used the same script from this thread.

Offline

#8 2011-10-11 14:45:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How to use a .dmg file in Arch Linux

Awebb wrote:

A quick google later: http://ubuntuforums.org/showthread.php?t=343808

I remember that this worked for me years ago, I used the same script from this thread.

dmg2img was originally written in Perl; however, the Perl version is no longer maintained, and the project was rewritten in C. Currently, without additional tools, the resulting images may be mounted only under Mac OS X and under Linux (provided hfsplus support has been enabled)

https://aur.archlinux.org/packages.php?ID=24402

Offline

#9 2011-10-11 14:47:28

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Offline

Board footer

Powered by FluxBB