Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is there any way to mount *.dmg in gentoo?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
hanzotutu
Apprentice
Apprentice


Joined: 10 Apr 2003
Posts: 170

PostPosted: Tue Oct 07, 2003 4:39 am    Post subject: Is there any way to mount *.dmg in gentoo? Reply with quote

any idea?
Back to top
View user's profile Send private message
Kesereti
Guru
Guru


Joined: 07 Nov 2002
Posts: 520

PostPosted: Tue Oct 07, 2003 5:20 am    Post subject: Reply with quote

Umm...one question:

What is a .dmg file? ^_^
Back to top
View user's profile Send private message
Cicero
Apprentice
Apprentice


Joined: 21 Jul 2003
Posts: 220

PostPosted: Tue Oct 07, 2003 5:46 am    Post subject: Reply with quote

a disk image in mac OS X. and I have no idea how one would mount one. try loopback with HFS
Back to top
View user's profile Send private message
Kesereti
Guru
Guru


Joined: 07 Nov 2002
Posts: 520

PostPosted: Tue Oct 07, 2003 6:01 am    Post subject: Reply with quote

Ahh...I guess it shows that I'm not a Mac person ^_^

Yeah, if it's just an image of an HFS file system...mounting it as a loopback device (search for mounting ISO images for an example of how to do that) with HFS file support should work just fine...
Back to top
View user's profile Send private message
Cicero
Apprentice
Apprentice


Joined: 21 Jul 2003
Posts: 220

PostPosted: Tue Oct 07, 2003 10:49 pm    Post subject: Reply with quote

I'm only assuming it's HFS, there may be compression as well. They are usually distributed in lieu of a zip file for installing programs.
Back to top
View user's profile Send private message
hbmartin
Guru
Guru


Joined: 12 Sep 2003
Posts: 386
Location: Home is where the boxen are

PostPosted: Thu Oct 09, 2003 3:07 am    Post subject: Reply with quote

Cicero wrote:
I'm only assuming it's HFS, there may be compression as well. They are usually distributed in lieu of a zip file for installing programs.

Yes, most .dmgs are compressed.
Harold
Back to top
View user's profile Send private message
shr1nk
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2003
Posts: 90

PostPosted: Wed Oct 29, 2003 4:24 am    Post subject: Reply with quote

well...
how do you open them?

in fact, how to you open .dmg AND .slt files????
Back to top
View user's profile Send private message
iwasbiggs
Apprentice
Apprentice


Joined: 17 Jan 2003
Posts: 203

PostPosted: Wed Oct 29, 2003 7:23 am    Post subject: Reply with quote

shr1nk wrote:
well...
how do you open them?

in fact, how to you open .dmg AND .slt files????


With a mac.
_________________
www.ruinedsoft.com
Freeware development.
Back to top
View user's profile Send private message
shm
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2380
Location: Atlanta, Universe

PostPosted: Wed Oct 29, 2003 4:12 pm    Post subject: Reply with quote

iwasbiggs wrote:
shr1nk wrote:
well...
how do you open them?

in fact, how to you open .dmg AND .slt files????


With a mac.


uh.. linux runs on macs too :-P
_________________
what up
Back to top
View user's profile Send private message
shr1nk
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2003
Posts: 90

PostPosted: Wed Oct 29, 2003 4:29 pm    Post subject: Reply with quote

well, what i meant was, how do i open them under linux?

namely, i am using a g4 powerbook with gentoo on it and would like to open some .dmg or .slt files...

any ideas?
Back to top
View user's profile Send private message
Cicero
Apprentice
Apprentice


Joined: 21 Jul 2003
Posts: 220

PostPosted: Wed Oct 29, 2003 4:54 pm    Post subject: Reply with quote

* app-arch/stuffit
Latest version available: 5.2.0.611
Latest version installed: [ Not Installed ]
Size of downloaded files: 1,909 kB
Homepage: http://www.stuffit.com/
Description: Aladdin Software's StuffIt and StuffIt Expander

That'll take care of the .sit files
Back to top
View user's profile Send private message
shr1nk
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2003
Posts: 90

PostPosted: Wed Oct 29, 2003 9:52 pm    Post subject: Reply with quote

sweet
thanks, ill give it a try

now for the .dmg files... :P
Back to top
View user's profile Send private message
shm
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2380
Location: Atlanta, Universe

PostPosted: Wed Oct 29, 2003 11:44 pm    Post subject: Reply with quote

shr1nk wrote:
well, what i meant was, how do i open them under linux?

namely, i am using a g4 powerbook with gentoo on it and would like to open some .dmg or .slt files...

any ideas?


there is always maconlinux.. =)
_________________
what up
Back to top
View user's profile Send private message
shr1nk
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2003
Posts: 90

PostPosted: Wed Oct 29, 2003 11:56 pm    Post subject: Reply with quote

shm wrote:
shr1nk wrote:
well, what i meant was, how do i open them under linux?

namely, i am using a g4 powerbook with gentoo on it and would like to open some .dmg or .slt files...

any ideas?


there is always maconlinux.. =)


true...
mol rules :)
Back to top
View user's profile Send private message
shr1nk
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2003
Posts: 90

PostPosted: Sat Nov 01, 2003 9:43 pm    Post subject: Reply with quote

i've been reading around and it seems like *.dmg (disk image files) are often compressed

moreover it seems like they are only for os x...so if you want to use them, you need to run os x - you can't open or mount them in linux =/

damn them proprietary codecs!
Back to top
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Sun Nov 02, 2003 2:54 am    Post subject: Reply with quote

A codec is generally used for audio/video

.dmg files are sparse and/or compressed, plus, they're in the HFS+ format, which is not well supported by Linux.
Back to top
View user's profile Send private message
FishB8
l33t
l33t


Joined: 17 Mar 2003
Posts: 820

PostPosted: Sun Nov 02, 2003 3:54 am    Post subject: Reply with quote

zhenlin:

You say the HFS+ filesystem is not well supported, does this at least mean there is _some_ support? I use a portable firewire drive at work formated in HFS+ that I would like to mount on my gentoo box at home. I looked around and couldn't find much on linus HFS+ support. If it is possible how is this done? Is there a kernel patch that allows for the creation of an HFS+ module?
Back to top
View user's profile Send private message
hbmartin
Guru
Guru


Joined: 12 Sep 2003
Posts: 386
Location: Home is where the boxen are

PostPosted: Sun Nov 02, 2003 3:58 am    Post subject: Reply with quote

FishB8 wrote:
zhenlin:

You say the HFS+ filesystem is not well supported, does this at least mean there is _some_ support? I use a portable firewire drive at work formated in HFS+ that I would like to mount on my gentoo box at home. I looked around and couldn't find much on linus HFS+ support. If it is possible how is this done? Is there a kernel patch that allows for the creation of an HFS+ module?

A new driver was recently announced, hopefully it will help:
http://www.ardistech.com/hfsplus/

Harold
Back to top
View user's profile Send private message
FishB8
l33t
l33t


Joined: 17 Mar 2003
Posts: 820

PostPosted: Sun Nov 02, 2003 11:53 pm    Post subject: Reply with quote

Sweet. Exactly what I was looking for.
Back to top
View user's profile Send private message
krko7365
n00b
n00b


Joined: 29 Mar 2003
Posts: 9

PostPosted: Mon Feb 23, 2004 9:21 am    Post subject: hfs+ and dmg Reply with quote

So.... Does anyone know how to use this new driver to mount a dmg - image?
is it possible to uncompress the dmg file using something and then mount the resulting
hfs+ - image?
Back to top
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Sat Jun 18, 2005 9:46 pm    Post subject: Reply with quote

no?
_________________
C.
Back to top
View user's profile Send private message
dustfinger
Guru
Guru


Joined: 15 Aug 2004
Posts: 449

PostPosted: Tue Mar 14, 2006 11:03 pm    Post subject: Reply with quote

I have not tried it, but this site claims a solution.

dustfinger.
_________________
Unanswered Post Initiative:
https://forums.gentoo.org/viewtopic.php?t=119906
Back to top
View user's profile Send private message
playahater
Guru
Guru


Joined: 02 Jul 2005
Posts: 382
Location: Serbia

PostPosted: Tue Mar 14, 2006 11:46 pm    Post subject: Reply with quote

well . here`s my 2cents ..
i had that problem a while ago .. and .. didn`t manage to solve it . .:(

As far as i know .. there is no way (way that really works :) ) to mount it .. :( .. but there is a script (in portage) which can convert dmg to iso .. "dmg2iso", but that didn`t work for me, too ..
the problem is if you really have "true hfs Disk Image", as given baghira link sais :) (wt* is true hfs anyway : ), but if you do .. i think that there is no problem to convert it to iso nor mount it ..
so .. if you want to install that mac(dmg) .. u can do it, as far as i know, through lan .. copy it to some place and tell mac to boot from lan .. :) .. didn`t try that either .. :(

don`t forget to post result ... ;) .. i`ll probably need it soon .. :)

Cheers
_________________
http://droopia.net
Back to top
View user's profile Send private message
gr0x0rd
Guru
Guru


Joined: 12 Aug 2006
Posts: 311

PostPosted: Thu Jun 09, 2011 4:31 am    Post subject: Reply with quote

Not intending to resurrect old threads, but thought I would chip in my two bits... ran into this problem today, and this was the closest thread I could find to a solution...

Anyway, dmg2iso wasn't listed in portage, but a similar package was: dmg2img. This package was masked so I had to unmask it using /etc/portage/package.keywords.

Apparently this package is the successor of dmg2iso. The syntax appeared to be fairly simple, but it installed to /usr/sbin so you need to be root to use it. In the example below, substitute stevejobsiswaistingmytime.dmg with the name of your .dmg file and stupidmacfile.img with your desired img file name. There are some switches so feel free to look at these for yourself.
Code:
sudo dmg2img [opts] stevejobsiswaistingmytime.dmg stupidmacfile.img

This converts the (compressed?) dmg file to an img file in hfs format.

To mount this image, you'll need support for hfs and loopback devices in your kernel.
Code:
File systems  --->
 [*] Miscellaneous filesystems  --->
  <*>   Apple Macintosh file system support (EXPERIMENTAL)
  <*>   Apple Extended HFS file system support

Device Drivers  --->
 [*] Block devices  --->
  <*>   Loopback device support


Once you have these prereqs, you can mount the img file.
Code:
mkdir ihatemac
 sudo mount -t hfsplus -o loop stupidmacfile.img ihatemac
Hope this saves someone some time, I certainly would have appreciated it... :)
_________________
~g
emerge -FML...
Back to top
View user's profile Send private message
shanehou
n00b
n00b


Joined: 13 Jul 2013
Posts: 39

PostPosted: Mon Mar 24, 2014 6:38 am    Post subject: Reply with quote

gr0x0rd wrote:
Not intending to resurrect old threads, but thought I would chip in my two bits... ran into this problem today, and this was the closest thread I could find to a solution...

Anyway, dmg2iso wasn't listed in portage, but a similar package was: dmg2img. This package was masked so I had to unmask it using /etc/portage/package.keywords.

Apparently this package is the successor of dmg2iso. The syntax appeared to be fairly simple, but it installed to /usr/sbin so you need to be root to use it. In the example below, substitute stevejobsiswaistingmytime.dmg with the name of your .dmg file and stupidmacfile.img with your desired img file name. There are some switches so feel free to look at these for yourself.
Code:
sudo dmg2img [opts] stevejobsiswaistingmytime.dmg stupidmacfile.img

This converts the (compressed?) dmg file to an img file in hfs format.

To mount this image, you'll need support for hfs and loopback devices in your kernel.
Code:
File systems  --->
 [*] Miscellaneous filesystems  --->
  <*>   Apple Macintosh file system support (EXPERIMENTAL)
  <*>   Apple Extended HFS file system support

Device Drivers  --->
 [*] Block devices  --->
  <*>   Loopback device support


Once you have these prereqs, you can mount the img file.
Code:
mkdir ihatemac
 sudo mount -t hfsplus -o loop stupidmacfile.img ihatemac
Hope this saves someone some time, I certainly would have appreciated it... :)


I tried to mount Install OS X Mavericks.app.dmg, but it said:
Code:

mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

If I did 'dmesg | tail':
Code:

hfsplus: unable to find HFS+ superblock


I've also tried to use dmg2img and mount the img file, but the problem remained the same.

Searched a lot but never found a way...
_________________
A man with two right arms.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum