How-to-open dmg files in linux!
下载了金山词霸的mac版本,想看linux能用不,挂载的时候出现问题
ayanmw@debian:~/Desktop$ sudo mount ./powerword_macosx_beta_1.0.0.dmg ./xdict -o loop -t hfs
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
ayanmw@debian:~/Desktop$ dmesg|tail
[ 1203.916030] iso9660: Corrupted directory entry in block 0 of inode 2112
[ 1203.916030] iso9660: Corrupted directory entry in block 0 of inode 2112
[ 1240.161118] end_request: I/O error, dev fd0, sector 0
[ 1250.082285] UDF-fs: No VRS found
[ 1250.085830] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 1250.086230] ISOFS: changing to secondary root
[15197.071219] hfs: can't find a HFS filesystem on dev loop0.
[15259.355322] hfs: can't find a HFS filesystem on dev loop0.
[15266.466061] VFS: Can't find ext3 filesystem on dev loop0.
[15291.544877] hfs: can't find a HFS filesystem on dev loop0.
|
用新利得下载hfsutils,还是不行,又安装几个hfs的工具,还是不行。
如何打开dmg文件呢???
ayanmw@debian:~/Desktop$ file powerword_macosx_beta_1.0.0.dmg
powerword_macosx_beta_1.0.0.dmg: VAX COFF executable - version 2148
|
看来我是错的,上面所指的dmg是文件系统的image。而我的就是个软件包。。
继续发现。。。
下载了一个软件
ayanmw@debian:~/Desktop/dmgmounter-0.1/dmg2img$ ./dmg2img ~/Desktop/powerword_macosx_beta_1.0.0.dmg ~/Desktop/dmgmounter-0.1/my.img
dmg2img v0.3a is derived from dmg2iso by vu1tur (to@vu1tur.eu.org)
/home/ayanmw/Desktop/powerword_macosx_beta_1.0.0.dmg --> /home/ayanmw/Desktop/dmgmounter-0.1/my.img
reading property list, 8591 bytes from address 12552472 ...
decompressing:
opening partition 0 ... 100.00 % ok
opening partition 1 ... ok
Archive successfully decompressed as /home/ayanmw/Desktop/dmgmounter-0.1/my.img
Linux users should be able to mount the archive [as root] by :
modprobe hfsplus
mount -t hfsplus -o loop /home/ayanmw/Desktop/dmgmounter-0.1/my.img /mnt
|
可以看到了,金山词霸.app 看来没法用。。。
dmg文件是用了zlib的某些压缩了。。解压即可。应该是这样自的。
阅读(7683) | 评论(0) | 转发(0) |