Extended Brain Storage

Arch Linux: DMG Image Mount

Posted on November 2, 2013

How to mount Apple's macOS disk image (DMG) under Arch Linux...

Kernel Support Check

The condition is to have built in or compiled kernel drivers for HFS/XFS. In can be checked in Arch Linux as follows:

$ zcat /proc/config.gz | grep XFS
CONFIG_XFS_FS=m
CONFIG_XFS_QUOTA=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_XFS_RT=y
# CONFIG_XFS_WARN is not set
# CONFIG_XFS_DEBUG is not set
# CONFIG_VXFS_FS is not set

In Gentoo (or in any other linux distro where the kernel was manually built), it can be checked as follows:

$ grep XFS /usr/src/linux/.config
CONFIG_XFS_FS=y

Mounting the DMG Image

Mounting the DMGFILE.dmg as root into MOUNTPOINT can be performed as follows:

$ mount -t hfsplus -o loop DMGFILE.dmg /media/MOUNTPOINT

Tags: #Arch Linux #Gentoo Linux #macOS #DMG #mount #image #XFS #HFS #kernel #zcat

⏴ Previous Post Next Post ⏵