标签: hdiutil

我无法挂载 DMG,出现“不可挂载的文件系统”错误

我下载了一些商业 Mac 软件 (CSSEdit) 的 DMG,但我发现 DMG 无法安装。我尝试了来自同一家公司的另一张图片,然后尝试了一些来自其他软件的图片。其中大约一半会安装,一半不会。错误总是“没有可挂载的文件系统”

我的 google-foo 只显示了一些孤立的事件,并反复建议重新启动(我有两次)。磁盘也不会从磁盘工具挂载(尝试从那里验证或修复它也没有任何效果)。我还尝试使用几种不同的程序多次重新下载此图像。

我最近更新到 10.5.8 以防万一。

这是我尝试从命令行挂载 DMG 时得到的粘贴。

loki:下载 peter$ hdiutil attach CSSEdit\ 2.6.dmg -Verbose
正在初始化…
DIBackingStoreInstantiatorProbe:接口0,得分100,CBSDBackingStore
DIBackingStoreInstantiatorProbe:接口1,得分-1000,CBundleBackingStore
DIBackingStoreInstantiatorProbe:接口2,得分-1000,CRAMBackingStore
DIBackingStoreInstantiatorProbe:接口3,得分100,CCarbonBackingStore
DIBackingStoreInstantiatorProbe:接口4,得分-1000,CDevBackingStore
DIBackingStoreInstantiatorProbe:接口5,得分-1000,CCURLBackingStore
DIBackingStoreInstantiatorProbe:接口6,得分-1000,CVectoredBackingStore
DIBackingStoreInstantiatorProbe:选择 CBSDBackingStore
DIBackingStoreInstantiatorProbe:接口0,得分100,CBSDBackingStore
DIBackingStoreInstantiatorProbe:接口1,得分-1000,CBundleBackingStore
DIBackingStoreInstantiatorProbe:接口2,得分-1000,CRAMBackingStore
DIBackingStoreInstantiatorProbe:接口3,得分100,CCarbonBackingStore
DIBackingStoreInstantiatorProbe:接口4,得分-1000,CDevBackingStore
DIBackingStoreInstantiatorProbe:接口5,得分-1000,CCURLBackingStore
DIBackingStoreInstantiatorProbe:接口6,得分-1000,CVectoredBackingStore
DIBackingStoreInstantiatorProbe:选择 CBSDBackingStore
DIFileEncodingInstantiatorProbe:接口0,得分-1000,CMacBinaryEncoding
DIFileEncodingInstantiatorProbe:接口1,得分-1000,CAppleSingleEncoding
DIFileEncodingInstantiatorProbe:接口2,得分-1000,CEncryptedEncoding
DIFileEncodingInstantiatorProbe:没有选择。
DIFileEncodingInstantiatorProbe:接口 0,得分 900,CUDIFEncoding
DIFileEncodingInstantiatorProbe:选择 CUDIFEncoding
DIFileEncodingNewWithBackingStore: CUDIFEncoding
DIFileEncodingNewWithBackingStore:实例化器返回 0
DIFileEncodingInstantiatorProbe:接口0,得分-1000,CSegmentedNDIFEncoding
DIFileEncodingInstantiatorProbe:接口1,得分-1000,CSegmentedUDIFEncoding
DIFileEncodingInstantiatorProbe:接口2,得分-1000,CSegmentedUDIFRawEncoding
DIFileEncodingInstantiatorProbe:没有选择。
DIDiskImageInstantiatorProbe:接口0,得分0,CDARTDiskImage
DIDiskImageInstantiatorProbe:接口1,得分0,CDiskCopy42DiskImage
DIDiskImageInstantiatorProbe:接口2,得分-1000,CNDIFDiskImage
DIDiskImageInstantiatorProbe:接口3,得分1000,CUDIFDiskImage
CRawDiskImage:数据叉长度 0x000000000022EE83 (2289283) 不是 512 的倍数。
DIDiskImageInstantiatorProbe:接口5,得分-100,CRawDiskImage
DIDiskImageInstantiatorProbe:接口6,得分-100,CShadowedDiskImage
DIDiskImageInstantiatorProbe:接口7,得分0,CSparseDiskImage
DIDiskImageInstantiatorProbe:接口8,得分0,CSparseBundleDiskImage
DIDiskImageInstantiatorProbe:接口9,得分-1000,CCFPlugInDiskImage
DIDiskImageInstantiatorProbe:接口10,得分-100,CWrappedDiskImage
DIDiskImageInstantiatorProbe:选择 CUDIFDiskImage
DIDiskImageNewWithBackingStore:CUDIFDiskImage
DIDiskImageNewWithBackingStore:实例化器返回 …

dmg-image hdiutil disk-image macos

18
推荐指数
2
解决办法
14万
查看次数

在命令行上安装 DMG 时绕过许可协议

我正在使用 puppet 自动化我的 Mac 安装。作为其中的一部分,我需要安装几个 .dmg 格式的程序。

我使用以下方法安装它们:

sudo /usr/bin/hdiutil mount -plist -nobrowse -readonly -quiet -mountrandom /tmp Program.dmg
Run Code Online (Sandbox Code Playgroud)

问题是某些 .dmg 文件附带了许可证,因此脚本无法接受许可证。(使用 puppet 运行时没有 stdin/out,所以我无法手动批准它继续。)

有没有办法预先批准或强制批准许可证?

dmg-image hdiutil macos

16
推荐指数
4
解决办法
6172
查看次数

缩小 .sparseimage

我有一个.sparseimage,尽管只在它的文件之后30GB占据的我的硬盘空间90GB。如何回收.sparseimage和压缩文件使用的空白空间?

mac disk-utility hdiutil sparseimage macos

16
推荐指数
2
解决办法
1万
查看次数

在 Mac OS X 10.6 中将 .iso 转换为 .img

我正在尝试将 .iso 文件(Ubuntu 光盘映像)转换为 .img 文件。

我运行这样的命令:

hdiutil convert -format UDRW -o ubuntu.img ubuntu-11.04-server-amd64.iso

但无论如何,我得到错误: hdiutil: convert failed - not recognized

我不知道如何解决这个问题,或者我还能如何转换。有什么帮助吗?

iso-image hdiutil conversion macos

9
推荐指数
1
解决办法
2万
查看次数

挂载具有读写权限的 ISO 映像

我正在按照这些说明创建跨平台 CD。我在 Mountain Lion 中遇到了一个问题,我无法以读写方式安装映像。

当我在终端中输入以下内容时:

hdiutil attach -readwrite ~/2013CD.iso
Run Code Online (Sandbox Code Playgroud)

我收到以下消息:

hdiutil: attach failed - Function not implemented
Run Code Online (Sandbox Code Playgroud)

有没有办法解决?我需要能够以读写方式挂载图像以对其进行更改。

iso-image hdiutil osx-mountain-lion

9
推荐指数
1
解决办法
2万
查看次数

8
推荐指数
1
解决办法
7829
查看次数

无法卸载 dmg。持续显示“资源繁忙”

“工作区”是一个加密的 dmg,我在其中保存代码。我通常不会卸载它,但我需要进行备份,但它拒绝让我卸载:

\n\n
mark@mark-macbook-air /Volumes$ lsof | grep Workspace\nmark@mark-macbook-air /Volumes$ lsof Workspace\nmark@mark-macbook-air /Volumes$ hdiutil detach /Volumes/Workspace\nhdiutil: couldn\'t unmount "disk1" - Resource busy\nmark@mark-macbook-air /Volumes$ hdiutil unmount /Volumes/Workspace\nhdiutil: unmount: "/Volumes/Workspace" failed to unmount due to error 49168.\nhdiutil: unmount failed - Resource busy\nmark@mark-macbook-air /Volumes$ ls\nMacintosh HD@ Workspace/\n
Run Code Online (Sandbox Code Playgroud)\n\n

如果我尝试通过 Finder 卸载:

\n\n
"The disk \xe2\x80\x9cWorkspace\xe2\x80\x9d couldn\xe2\x80\x99t be ejected because \xe2\x80\x9cTerminal\xe2\x80\x9d is using it.".\n
Run Code Online (Sandbox Code Playgroud)\n\n

我只打开了一个终端窗口。看来我可以关闭终端,但因为我很确定它没有使用它,所以我运行sudo lsof并看到了几个“mds”和一个“login”。MDS 是聚光灯的一部分,因此我在卷上禁用了聚光灯索引。这杀死了一些进程。我现在只剩下两个:

\n\n
mark@mark-macbook-air /Volumes$ sudo lsof /Volumes/Workspace/\nCOMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME\nlogin …
Run Code Online (Sandbox Code Playgroud)

dmg-image hdiutil lsof macos

5
推荐指数
2
解决办法
2万
查看次数