• Stars
    star
    272
  • Rank 151,235 (Top 3 %)
  • Language
    C++
  • License
    GNU General Publi...
  • Created over 11 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

FUSE module for .dmg files (containing an HFS+ filesystem)

darling-dmg

This project allows ordinary users to directly mount OS X disk images under Linux via FUSE. darling-dmg is part of Darling - http://www.darlinghq.org

Without darling-dmg, the only way to do this would be to manually extract the DMG file, become root and mount the HFS+ filesystem as root. This is slow, wasteful and may even crash your system. The project's author has seen the Linux HFS+ implementation cause kernel crashes.

Supported file types

  • DMG (UDIF) files containing an Apple Disk Image.
  • Apple Disk Images containing an HFS+/HFSX file system.
  • HFS+/HFSX file systems (incl. file systems embedded within HFS).

This means, darling-dmg can mount DMG files or unpacked DMG files or a single partition carved out of the latter.

Read only access only.

Build Requirements

Dependency Required version Notes
GCC/Clang >5 (GCC), >3 (Clang) Compiler with C++11 support
CMake 3.10 Build system
pkg-config Library-agnostic package detection
OpenSSL Base64 decoding
Bzip2 Decompression
Zlib Decompression
FUSE 2.x (not 3.x) Userspace filesystem support
libicu Unicode support
libxml2 XML (property list) parsing

darling-dmg requires a C++11-capable compiler, CMake >3.10 and make alongside the remaining dependencies mentioned above. Below are common ways to install library dependencies.

On Fedora (and derivatives):

sudo dnf install fuse-devel bzip2-devel libicu-devel libxml2-devel openssl-devel zlib-devel pkgconf

On Debian (and derivatives):

sudo apt-get install libfuse-dev libbz2-dev libicu-dev libxml2-dev libssl-dev libz-dev pkg-config

On Alpine Linux:

sudo apk add fuse-dev bzip2-dev icu-dev libxml2-dev openssl-dev zlib-dev pkgconf

Usage

darling-dmg <file-to-mount> <where-to-mount> [FUSE arguments]

Accessing resource forks

Resource forks are available via xattrs (extended attributes) or preferably under the name /original/filename#..namedfork#rsrc.

Reusability

Some people have had success with using darling-dmg as a library for their own use.

More Repositories

1

darling

Darwin/macOS emulation layer for Linux
Objective-C
11,307
star
2

darling-docs

Darling Docs
41
star
3

darling-installer

OS X Installer counterpart (installs .pkg files)
C++
38
star
4

darling-newlkm

Darling's new kernel module
C
29
star
5

darling-docker

Dockerfile for Darling
Python
27
star
6

darling-corecrypto

CoreCrypto reimplementation under GPL-3
C
23
star
7

darling-foundation

The Darling Foundation framework, derived from Apportable Foundation
Objective-C
16
star
8

darling-security

Apple's Security framework
C
16
star
9

LibrarySymbols

A Repo For Storing Information On MacOS' Library Symbols
Rust
15
star
10

darlingserver

Darling's userspace kernel server (much like Wine's wineserver)
C
14
star
11

darling-gdb

GDB that can debug Mach-Os on Linux
C
13
star
12

darling-metal

An ABI-compatible implementation of Metal and related frameworks (e.g. MetalKit, MetalPerformanceShaders)
Objective-C
9
star
13

darling-appkit

Darling's implementation of AppKit
Objective-C
8
star
14

darling-xnu

C
8
star
15

darling-libnetwork

Open-source reimplementation of Apple's libnetwork
Objective-C
6
star
16

darling-TextEdit

Objective-C
6
star
17

darling-adv_cmds

Apple's adv_cmds package
C
6
star
18

darling-iokituser

Apple's IOKitUser
C
6
star
19

blog

The source code for the Darling development blog
JavaScript
6
star
20

darling-commoncrypto

Apple CommonCrypto
C
6
star
21

darling-objc4

Apple's Objective-C runtime
Objective-C++
6
star
22

darling-dyld

C
5
star
23

darling-network_cmds

C
5
star
24

darling-cfnetwork

Darling implementation of CFNetwork
C
5
star
25

darling-IOHIDFamily

Apple's IOHIDFamily
C++
5
star
26

www.darlinghq.org

Repository containing the project's main website
HTML
5
star
27

darling-zip

Apple's version of zip/unzip
C
5
star
28

darling-syslog

Apple's syslog project
C
4
star
29

darling-dtrace

C
4
star
30

darling-SmartCardServices

SmartCardServices-55111
C
4
star
31

darling-swift

Bundled swift libraries
Shell
4
star
32

darling-openssh

C
4
star
33

darling-configd

Apple's configd
C
4
star
34

darling-pam_modules

pam_modules-159.50.4
C
4
star
35

darling-libauto

Apple's libauto library
Objective-C
4
star
36

darling-libdispatch

Apple's GCD
C
4
star
37

darling-WTF

C++
4
star
38

darling-cctools

Apple's cctools
C
4
star
39

darling-openpam

C
4
star
40

darling-system_cmds

system_cmds-735.30.2
C
4
star
41

darling-BerkeleyDB

Apple's version of BerkeleyDB
HTML
4
star
42

darling-apr

Apple's version of apr
C
4
star
43

darling-libpthread

Apple's libpthread library
C
4
star
44

darling-coretls

Apple's CoreTLS framework
C
3
star
45

darling-libplatform

C
3
star
46

darling-icu

Apple's version of ICU
C++
3
star
47

darling-bc

Apple's bc package
C
3
star
48

darling-bmalloc

C++
3
star
49

darling-libclosure

Apple's libclosure library (Blocks)
Objective-C
3
star
50

darling-openssl

Darling build of Apple's version of OpenSSL 0.9.8
C
3
star
51

darling-shell_cmds

Apple's shell_cmds package
C
3
star
52

darling-IONetworkingFamily

Apple's IONetworkingFamily
C++
3
star
53

darling-JavaScriptCore

C
3
star
54

darling-WebCore

C++
3
star
55

darling-file

Apple's file package
C
3
star
56

darling-IOGraphics

Apple's IOGraphics
C++
3
star
57

darling-applegdb

Apple's modified version of GDB
C
3
star
58

darling-tcsh

tcsh-67
C
3
star
59

darling-DSTools

DSTools-162
Objective-C
3
star
60

darling-screen

GNU screen packaged by Apple
C
3
star
61

darling-Heimdal

Heimdal-498.50.8
C
3
star
62

darling-bash

Apple's version of Bash
C
3
star
63

darling-text_cmds

Apple's text_cmds package
C
3
star
64

darling-awk

Apple's awk package
C
3
star
65

darling-vim

Apple's release of VIM
Vim Script
2
star
66

darling-OpenLDAP

Apple's OpenLDAP-528.60.1
C
2
star
67

darling-SecurityTokend

SecurityTokend-55111
C++
2
star
68

darling-bsm

C
2
star
69

darling-xar

C
2
star
70

darling-basic_cmds

basic_cmds-55
C
2
star
71

darling-opendirectory

C
2
star
72

darling-top

C
2
star
73

darling-llvmCore

Apple's llvmCore package
C++
2
star
74

darling-perl

Perl
2
star
75

darling-removefile

C
2
star
76

darling-Libsystem

C
2
star
77

darling-quartzcore

Darling's implementation of QuartzCore
2
star
78

darling-netcat

Apple's netcat package
C
2
star
79

darling-iostoragefamily

Apple's IOStorageFamily
C++
2
star
80

darling-openssl_certificates

OpenSSL Certificates for Darling
Python
2
star
81

darling-security_dotmac_tp

Apple's security_dotmac_tp framework
C++
2
star
82

darling-files

Apple's files package
Roff
2
star
83

darling-remote_cmds

Apple's remote_cmds
C
2
star
84

darling-swift-corelibs-foundation

Swift
2
star
85

darling-MITKerberosShim

Apple's MITKerberosShim-77
C
2
star
86

darling-libutil

C
2
star
87

darling-bzip2

Fork of bzip2 for Darling build
C
2
star
88

darling-file_cmds

Apple's file_cmds package
C
2
star
89

darling-man

Makefile
2
star
90

darling-python

Python 2.6/2.7 sources from Apple
Python
2
star
91

darling-libunwind

C++
2
star
92

darling-developer_cmds

Apple's developer_cmds package
C
2
star
93

darling-mDNSResponder

Apple's mDNSResponder-1096.60.2
C
2
star
94

darling-appdb-database

2
star
95

darling-libarchive

Apple's libarchive package
C
2
star
96

darling-DirectoryService

C++
2
star
97

darling-keymgr

C
2
star
98

darling-ncurses

HTML
2
star
99

darling-gnudiff

Apple's (gnu)diff package
C
2
star
100

darling-misc_cmds

misc_cmds-33
C
2
star