spaghettiCode
spaghettiCode

Reputation: 123

Loopback mount in OSX

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).

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.

Using:

mount -o loop rootfs.img /mnt/rootfs

replies that loop is not supported.

Upvotes: 12

Views: 20630

Answers (1)

S. T. Lee
S. T. Lee

Reputation: 320

Look here https://serverfault.com/questions/174909/mount-block-file-on-osx. Here are the correct parameters for 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

Upvotes: 22

Related Questions