Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] dmg2img hfs+ disk image
Date: Sat, 23 Feb 2019 09:31:27
Message-Id: 2177327.BMIOHo6aKt@dell_xps
In Reply to: Re: [gentoo-user] [OT] dmg2img hfs+ disk image by Andrew Udvare
1 On Saturday, 23 February 2019 00:57:45 GMT Andrew Udvare wrote:
2 > > On Feb 22, 2019, at 19:00, Mick <michaelkintzios@×××××.com> wrote:
3 > >
4 > > Hi All,
5 > >
6 > > A bit off topic, but given I'm trying this on a gentoo system and the high
7 > > cumulative knowledge of contributors to this M/L, I thought I might as
8 > > well
9 > > ask here. I'm trying to access the various partitions within a .dmg
10 > > archive,
11 > This way using the kernel HFS+ driver:
12 >
13 > https://github.com/nickl-/xchain-ios#prepare-your-prefix-no-mac
14 >
15 > This way without the driver:
16 >
17 > https://github.com/Tatsh/xchain#prepare-your-prefix-no-mac
18
19 WOW! I should have posted earlier. ;-)
20
21 Thanks Andrew. I tried with the kernel driver, since I have it built in the
22 kernel and also have sys-fs/diskdev_cmds and sys-fs/hfsplusutils already
23 installed, but don't have java available. It won't work:
24
25 =====================
26 # 7z x BaseSystem.dmg
27
28 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
29 p7zip Version 16.02 (locale=en_GB.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs
30 Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz (106E5),ASM)
31
32 Scanning the drive for archives:
33 1 file, 482126050 bytes (460 MiB)
34
35 Extracting archive: BaseSystem.dmg
36 --
37 Path = BaseSystem.dmg
38 Type = Dmg
39 Physical Size = 482126050
40 Method = Copy Zero2 ZLIB CRC
41 Blocks = 590
42 ----
43 Path = 4.hfs
44 Size = 2013085696
45 Packed Size = 482080513
46 Comment = disk image (Apple_HFS : 4)
47 Method = Copy Zero2 ZLIB CRC
48 --
49 Path = 4.hfs
50 Type = HFS
51 Physical Size = 2013085696
52 Method = HFS+
53 Cluster Size = 4096
54 Free Space = 740196352
55 Created = 2018-10-24 02:10:14
56 Modified = 2018-10-24 09:23:00
57
58 Everything is Ok
59
60 Folders: 10639
61 Files: 39974
62 Size: 1121934759
63 Compressed: 482126050
64
65 # ls -la
66 total 470844
67 drwxr-xr-x 3 michael michael 4096 Feb 23 08:43 .
68 drwxr-xr-x 7 michael michael 4096 Feb 22 19:22 ..
69 -rw-r--r-- 1 michael michael 482126050 Feb 22 19:25 BaseSystem.dmg
70 drwx------ 16 root root 4096 Oct 24 10:14 'OS X Base System'
71
72 # mount -t hfsplus -o loop 4.hfs /media/dmg
73 mount: /media/dmg: failed to setup loop device for 4.hfs.
74
75 It seems the 4.hfs image is not extracted as a separate component?
76
77 --
78 Regards,
79 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] [OT] dmg2img hfs+ disk image Andrew Udvare <audvare@×××××.com>