linux下使用苹果dmg格式文件
linux下使用苹果dmg格式文件 参考红帽官网:http://www.cn.redhat.com/kbase/0708/5667.php 安装环境: Download dmgmounter http://sourceforge.net/projects/dmgmount/files/dmgmount/dmgmounter-0.1/dmgmounter-0.1.tar.gz/download 版本:CentOS 5.4 # uname -r 2.6.18-128.el5 详细步骤: # ll -d ''Squid Manager 1.2.dmg'' -rwxrwxrwx 1 root root 403641 Jan 26 2003 Squid Manager 1.2.dmg # file ''Squid Manager 1.2.dmg'' =================此处和官网上描述的不一致 Squid Manager 1.2.dmg: VAX COFF executable not stripped - version 2274 我们先按照官网的试一下: # mount -t hfsplus -o loop ''Squid Manager 1.2.dmg'' /mnt mount: wrong fs type, bad option, bad superblock on /dev/loop1, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so 根据提示我们尝试dmesg 和tail两个命令,出现下面结果: # tail ''Squid Manager 1.2.dmg'' <key>Name</key> <string></string> </dict> </array> </dict> </dict> </plist> ld[1]\mish[1] .. `de.锌?憷V?V?.杩?阈.????? [1]?沭20 de.Qx??V?e.锌??g[1]?[1]????[1][1][1]PMSingle VolumeApple_HFS ???? ldhFblkxplst?P??P[1]`Single Volume (Apple~S : 0??[1]0?? ..[1] /~?q`[1]|[1]|.锌?嗬r???%@.`.?嗬..\.锌?嗬$B.X?淅~k[1] ?.[root@song ~]# XshellXshellXshellXshellXshellXshellXshellXshellXshellXshell -bash: XshellXshellXshellXshellXshellXshellXshellXshellXshellXshell: command not found # dmesg ''Squid Manager 1.2.dmg'' : : : eth1: link up eth1: no IPv6 routers present eth1: link down eth1: link up hfs: unable to find HFS superblock hfs: can''t find a HFS filesystem on dev loop0. hfs: unable to find HFS superblock hfs: unable to find HFS superblock hfs: unable to find HFS superblock hfs: unable to find HFS superblock hfs: can''t find a HFS filesystem on dev loop1. Google后得知须下载一个额外的挂载脚本: 下载 http://sourceforge.net/projects/dmgmount/files/dmgmount/dmgmounter-0.1/dmgmounter-0.1.tar.gz/download 解压缩 # tar -zxvf dmgmounter-0.1.tar.gz –C /root/dmgmounter 执行如下命令: # /root/dmgmounter/dmg2img/dmg2img /root/Squid\ Manager\ 1.2.dmg /mnt/my.img dmg2img v0.3a is derived from dmg2iso by vu1tur (to@vu1tur.eu.org) /root/Squid Manager 1.2.dmg --> /mnt/my.img reading property list, 3947 bytes from address 396670 ... decompressing: opening partition 0 ... 99.97 % ok opening partition 1 ... ok Archive successfully decompressed as /mnt/my.img Linux users should be able to mount the archive [as root] by : modprobe hfsplus mount -t hfsplus -o loop /mnt/my.img /mnt # modprobe hfsplus # lsmod | grep hfsplus hfsplus 75589 0 # mount -t hfsplus -o loop /mnt/my.img /media mount: wrong fs type, bad option, bad superblock on /dev/loop1, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so Google后,网上有的说kernel需要时2.6.15版本以上,但是我们还是出现问题了.在网上查了很久也没有线索.其实我们仔细观察的话,我们会发现在dmesg命令报错时,我专门把末 |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |