Linux OSX 中的环回挂载
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4549310/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Loopback mount in OSX
提问by awesome71717
I am trying to mount an .img file (rootfs.img) so I can modify the features of the firmware for a derivitive of the 4fff N618 (Pandigital Novel).
我正在尝试挂载一个 .img 文件 (rootfs.img),以便我可以修改固件的功能,以获得 4fff N618(Pandigital Novel)的衍生物。
I have flashed it with the firmware of the bqAvant and it is fully operational, but I cannot find a way to do a loopback mount with OSX 10.5, neither do I have a cd with a linux distro. The efi won't even let me boot from a usb device using rEFIt.
我已经用 bqAvant 的固件刷新了它并且它可以完全运行,但是我找不到用 OSX 10.5 进行环回挂载的方法,我也没有带有 linux 发行版的 cd。efi 甚至不允许我使用 rEFIt 从 USB 设备启动。
Using:
使用:
mount -o loop rootfs.img /mnt/rootfs
mount -o loop rootfs.img /mnt/rootfs
replies that loop is not supported.
回复不支持循环。
回答by S. T. Lee
Look here https://serverfault.com/questions/174909/mount-block-file-on-osx. Here are the correct parameters for hdiutil
:
看这里https://serverfault.com/questions/174909/mount-block-file-on-osx。以下是 的正确参数hdiutil
:
$ hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount <filename>
Example:
例子:
$ hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount /Users/me/backup.rdisk4s2.dd
Example Output:
示例输出:
/dev/disk6