Cant mount DMG file.
Re: Cant mount DMG file.
Blch, probably too late to edit. The ones that the file command tell me are HFS files are the ones that I CAN mount with -o loop, as long as the hfsplus module is loaded. CAN CAN CAN. Grrr, stupid typos......
Ok, let me make sure I'm clear here, I see what mental shorthand made me right "can't" before.
I mean--if the file command comes back as HFS, I can mount it with -o loop. If it comes back as that executable, I cannot mount it. As for file returning "data", I don' t have any like that, so can't test.
Sorry all, for poor phrasing---I'm not sure if it was a typo or mental shorthand, but hopefully, this post clarifies.
Ok, let me make sure I'm clear here, I see what mental shorthand made me right "can't" before.
I mean--if the file command comes back as HFS, I can mount it with -o loop. If it comes back as that executable, I cannot mount it. As for file returning "data", I don' t have any like that, so can't test.
Sorry all, for poor phrasing---I'm not sure if it was a typo or mental shorthand, but hopefully, this post clarifies.
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: Cant mount DMG file.
If you're into revisionist history, I can make the edit and delete your last post. :-)
Re: Cant mount DMG file.
Heh might as well leave it now, just add a note to see later post.
Re: Cant mount DMG file.
I was downloaded one more [b]DMG[/b] file (also a install DVD image)
Try a [b]file .dmg[/b]. Has such results
[b]file Mac.OS.X.10.6.3.Retail.dmg[/b]
[b]Mac.OS.X.10.6.3.Retail.dmg: data[/b]
[b]file Mac\ OS\ X\ Leopard\ 10.5.4\ 9E25\ Retail.dmg[/b]
[b]Mac OS X Leopard 10.5.4 9E25 Retail.dmg: VAX COFF executable not stripped - version 376[/b]
If I right system can't to detect a type of file?
Try a [b]file .dmg[/b]. Has such results
[b]file Mac.OS.X.10.6.3.Retail.dmg[/b]
[b]Mac.OS.X.10.6.3.Retail.dmg: data[/b]
[b]file Mac\ OS\ X\ Leopard\ 10.5.4\ 9E25\ Retail.dmg[/b]
[b]Mac OS X Leopard 10.5.4 9E25 Retail.dmg: VAX COFF executable not stripped - version 376[/b]
If I right system can't to detect a type of file?
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: Cant mount DMG file.
There seem to be lots of different flavors of .dmg files. The latest Firefox download shows as a bzip2 compressed file. Renaming the original and uncompressing it results in a mountable image:
[root@c5 pschaffn]# file Firefox*
Firefox_3.6.3.dmg_orig: bzip2 compressed data, block size = 900k
Firefox_3.6.3.dmg: Apple Partition data block size: 2048, first type: Apple_partition_map, name: Apple, number of blocks: 2, second type: Apple_HFS, name: DiscRecording 4.0.1d4, number of blocks: 109088, third type: Apple_partition_map, name: Apple, number of blocks: 2,
[root@c5 pschaffn]# mount -t hfsplus -o loop Firefox_3.6.3.dmg /tmp/mac
[root@c5 pschaffn]# ls -AlFn /tmp/mac
total 180
lrwxrwxr-x 1 502 80 13 Apr 1 11:38 -> /Applications
drwxr-xr-x 1 502 80 3 Apr 1 11:38 .background/
-rw-r--r-- 1 502 80 12292 Apr 1 10:34 .DS_Store
drwxr-xr-x 1 502 80 3 Apr 1 11:29 Firefox.app/
-rw-r--r-- 1 502 80 165905 Apr 1 10:34 .VolumeIcon.icns
Trying something similar with a VirtualBox .dmg gives a small output file that fails to work:
[pschaffn@c5 pschaffn]$ bunzip2 VirtualBox-3.1.8-61349-OSX.dmg.bz2
bunzip2: VirtualBox-3.1.8-61349-OSX.dmg.bz2: trailing garbage after EOF ignored
[pschaffn@c5 pschaffn]$ ls -lFn VirtualBox-3.1.8-61349-OSX.dmg*
-rw------- 1 328313713 1002 5120 May 11 10:04 VirtualBox-3.1.8-61349-OSX.dmg
-rw-rw---- 1 328313713 1002 68913015 May 11 10:04 VirtualBox-3.1.8-61349-OSX.dmg_orig
[root@c5 pschaffn]# file VirtualBox-3.1.8-61349-OSX.dmg*
VirtualBox-3.1.8-61349-OSX.dmg: data
VirtualBox-3.1.8-61349-OSX.dmg_orig: bzip2 compressed data, block size = 100k
[root@c5 pschaffn]# umount /tmp/mac/
[root@c5 pschaffn]# mount -t hfsplus -o loop VirtualBox-3.1.8-61349-OSX.dmg /tmp/mac
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
[root@c5 pschaffn]# file Firefox*
Firefox_3.6.3.dmg_orig: bzip2 compressed data, block size = 900k
Firefox_3.6.3.dmg: Apple Partition data block size: 2048, first type: Apple_partition_map, name: Apple, number of blocks: 2, second type: Apple_HFS, name: DiscRecording 4.0.1d4, number of blocks: 109088, third type: Apple_partition_map, name: Apple, number of blocks: 2,
[root@c5 pschaffn]# mount -t hfsplus -o loop Firefox_3.6.3.dmg /tmp/mac
[root@c5 pschaffn]# ls -AlFn /tmp/mac
total 180
lrwxrwxr-x 1 502 80 13 Apr 1 11:38 -> /Applications
drwxr-xr-x 1 502 80 3 Apr 1 11:38 .background/
-rw-r--r-- 1 502 80 12292 Apr 1 10:34 .DS_Store
drwxr-xr-x 1 502 80 3 Apr 1 11:29 Firefox.app/
-rw-r--r-- 1 502 80 165905 Apr 1 10:34 .VolumeIcon.icns
Trying something similar with a VirtualBox .dmg gives a small output file that fails to work:
[pschaffn@c5 pschaffn]$ bunzip2 VirtualBox-3.1.8-61349-OSX.dmg.bz2
bunzip2: VirtualBox-3.1.8-61349-OSX.dmg.bz2: trailing garbage after EOF ignored
[pschaffn@c5 pschaffn]$ ls -lFn VirtualBox-3.1.8-61349-OSX.dmg*
-rw------- 1 328313713 1002 5120 May 11 10:04 VirtualBox-3.1.8-61349-OSX.dmg
-rw-rw---- 1 328313713 1002 68913015 May 11 10:04 VirtualBox-3.1.8-61349-OSX.dmg_orig
[root@c5 pschaffn]# file VirtualBox-3.1.8-61349-OSX.dmg*
VirtualBox-3.1.8-61349-OSX.dmg: data
VirtualBox-3.1.8-61349-OSX.dmg_orig: bzip2 compressed data, block size = 100k
[root@c5 pschaffn]# umount /tmp/mac/
[root@c5 pschaffn]# mount -t hfsplus -o loop VirtualBox-3.1.8-61349-OSX.dmg /tmp/mac
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Re: Cant mount DMG file.
Hm, I'm try to mount thise files in the Fedora 12. File also can't be mount. I don't know what the problem. May be linux realy can't mount SUCH images. :(
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: Cant mount DMG file.
I can confirm that the same .dmg files can mount in CentOS can be mounted in Fedora 12, and those that I cannot can't be mounted in Fedora 12 either. Apparently .dmg support in the Red Hat family is less robust than might be hoped. Can't speak to other distros.
Re: Cant mount DMG file.
Going from memory here, and so I could be wrong. However, the first time I tried with dmg files (don't remember what file .dmg was, I also tried with Ubuntu and Arch in VMs. I am 85-95 percent positive I got the same results.
My guess, and it's a guess from someone who doesn't know Mac that well, is that dmg's can be all sorts of different types of files, and despite the implication of diskimage from the name, they can be iso types, tarball types, and so on.
My guess, and it's a guess from someone who doesn't know Mac that well, is that dmg's can be all sorts of different types of files, and despite the implication of diskimage from the name, they can be iso types, tarball types, and so on.
-
- Retired Moderator
- Posts: 18276
- Joined: 2006/12/13 20:15:34
- Location: Tidewater, Virginia, North America
- Contact:
Re: Cant mount DMG file.
My rather limited experience supports your conclusions.
I sit at a Mac daily because given my employer-supplied choices that is the lesser evil, but first thing I do daily is fire up CentOS in VirtualBox and seldom look back. Tried to use the native Mac apps but they just did not measure up to my expectations.
This thread it the first time I have been motivated to try to mount a .dmg file on Linux. So far I have seen at least 4 different variants.
I sit at a Mac daily because given my employer-supplied choices that is the lesser evil, but first thing I do daily is fire up CentOS in VirtualBox and seldom look back. Tried to use the native Mac apps but they just did not measure up to my expectations.
This thread it the first time I have been motivated to try to mount a .dmg file on Linux. So far I have seen at least 4 different variants.