View previous topic :: View next topic |
Author |
Message |
hanzotutu Apprentice
Joined: 10 Apr 2003 Posts: 170
|
Posted: Tue Oct 07, 2003 4:39 am Post subject: Is there any way to mount *.dmg in gentoo? |
|
|
any idea? |
|
Back to top |
|
|
Kesereti Guru
Joined: 07 Nov 2002 Posts: 520
|
Posted: Tue Oct 07, 2003 5:20 am Post subject: |
|
|
Umm...one question:
What is a .dmg file? ^_^ |
|
Back to top |
|
|
Cicero Apprentice
Joined: 21 Jul 2003 Posts: 220
|
Posted: Tue Oct 07, 2003 5:46 am Post subject: |
|
|
a disk image in mac OS X. and I have no idea how one would mount one. try loopback with HFS |
|
Back to top |
|
|
Kesereti Guru
Joined: 07 Nov 2002 Posts: 520
|
Posted: Tue Oct 07, 2003 6:01 am Post subject: |
|
|
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 |
|
|
Cicero Apprentice
Joined: 21 Jul 2003 Posts: 220
|
Posted: Tue Oct 07, 2003 10:49 pm Post subject: |
|
|
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 |
|
|
hbmartin Guru
Joined: 12 Sep 2003 Posts: 386 Location: Home is where the boxen are
|
Posted: Thu Oct 09, 2003 3:07 am Post subject: |
|
|
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 |
|
|
shr1nk Tux's lil' helper
Joined: 21 Jun 2003 Posts: 90
|
Posted: Wed Oct 29, 2003 4:24 am Post subject: |
|
|
well...
how do you open them?
in fact, how to you open .dmg AND .slt files???? |
|
Back to top |
|
|
iwasbiggs Apprentice
Joined: 17 Jan 2003 Posts: 203
|
Posted: Wed Oct 29, 2003 7:23 am Post subject: |
|
|
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 |
|
|
shm Advocate
Joined: 09 Dec 2002 Posts: 2380 Location: Atlanta, Universe
|
Posted: Wed Oct 29, 2003 4:12 pm Post subject: |
|
|
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 _________________ what up |
|
Back to top |
|
|
shr1nk Tux's lil' helper
Joined: 21 Jun 2003 Posts: 90
|
Posted: Wed Oct 29, 2003 4:29 pm Post subject: |
|
|
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 |
|
|
Cicero Apprentice
Joined: 21 Jul 2003 Posts: 220
|
Posted: Wed Oct 29, 2003 4:54 pm Post subject: |
|
|
* 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 |
|
|
shr1nk Tux's lil' helper
Joined: 21 Jun 2003 Posts: 90
|
Posted: Wed Oct 29, 2003 9:52 pm Post subject: |
|
|
sweet
thanks, ill give it a try
now for the .dmg files... |
|
Back to top |
|
|
shm Advocate
Joined: 09 Dec 2002 Posts: 2380 Location: Atlanta, Universe
|
Posted: Wed Oct 29, 2003 11:44 pm Post subject: |
|
|
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 |
|
|
shr1nk Tux's lil' helper
Joined: 21 Jun 2003 Posts: 90
|
Posted: Wed Oct 29, 2003 11:56 pm Post subject: |
|
|
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 |
|
|
shr1nk Tux's lil' helper
Joined: 21 Jun 2003 Posts: 90
|
Posted: Sat Nov 01, 2003 9:43 pm Post subject: |
|
|
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 |
|
|
zhenlin Veteran
Joined: 09 Nov 2002 Posts: 1361
|
Posted: Sun Nov 02, 2003 2:54 am Post subject: |
|
|
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 |
|
|
FishB8 l33t
Joined: 17 Mar 2003 Posts: 820
|
Posted: Sun Nov 02, 2003 3:54 am Post subject: |
|
|
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 |
|
|
hbmartin Guru
Joined: 12 Sep 2003 Posts: 386 Location: Home is where the boxen are
|
Posted: Sun Nov 02, 2003 3:58 am Post subject: |
|
|
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 |
|
|
FishB8 l33t
Joined: 17 Mar 2003 Posts: 820
|
Posted: Sun Nov 02, 2003 11:53 pm Post subject: |
|
|
Sweet. Exactly what I was looking for. |
|
Back to top |
|
|
krko7365 n00b
Joined: 29 Mar 2003 Posts: 9
|
Posted: Mon Feb 23, 2004 9:21 am Post subject: hfs+ and dmg |
|
|
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 |
|
|
CarloJekko Veteran
Joined: 31 Mar 2005 Posts: 1315 Location: Baia Domizia :-)
|
Posted: Sat Jun 18, 2005 9:46 pm Post subject: |
|
|
no? _________________ C. |
|
Back to top |
|
|
dustfinger Guru
Joined: 15 Aug 2004 Posts: 449
|
|
Back to top |
|
|
playahater Guru
Joined: 02 Jul 2005 Posts: 382 Location: Serbia
|
Posted: Tue Mar 14, 2006 11:46 pm Post subject: |
|
|
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 |
|
|
gr0x0rd Guru
Joined: 12 Aug 2006 Posts: 311
|
Posted: Thu Jun 09, 2011 4:31 am Post subject: |
|
|
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 |
|
|
shanehou n00b
Joined: 13 Jul 2013 Posts: 39
|
Posted: Mon Mar 24, 2014 6:38 am Post subject: |
|
|
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 |
|
|
|