Chinaunix首页 | 论坛 | 博客
  • 博客访问: 833177
  • 博文数量: 117
  • 博客积分: 2595
  • 博客等级: 少校
  • 技术积分: 1204
  • 用 户 组: 普通用户
  • 注册时间: 2009-09-18 18:16
文章分类

全部博文(117)

文章存档

2013年(1)

2012年(2)

2011年(18)

2010年(95)

2009年(1)

分类: LINUX

2010-04-25 12:04:34

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的某些压缩了。。解压即可。应该是这样自的。

阅读(7561) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~