On Saturday, 23 February 2019 00:57:45 GMT Andrew Udvare wrote:
> > On Feb 22, 2019, at 19:00, Mick <michaelkintz...@gmail.com> wrote:
> > 
> > Hi All,
> > 
> > A bit off topic, but given I'm trying this on a gentoo system and the high
> > cumulative knowledge of contributors to this M/L, I thought I might as
> > well
> > ask here.  I'm trying to access the various partitions within a .dmg
> > archive,
> This way using the kernel HFS+ driver:
> 
> https://github.com/nickl-/xchain-ios#prepare-your-prefix-no-mac
> 
> This way without the driver:
> 
> https://github.com/Tatsh/xchain#prepare-your-prefix-no-mac

WOW!  I should have posted earlier.  ;-)

Thanks Andrew.  I tried with the kernel driver, since I have it built in the 
kernel and also have sys-fs/diskdev_cmds and sys-fs/hfsplusutils already 
installed, but don't have java available.  It won't work:

=====================
# 7z x BaseSystem.dmg 

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_GB.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs 
Intel(R) Core(TM) i7 CPU       Q 720  @ 1.60GHz (106E5),ASM)

Scanning the drive for archives:
1 file, 482126050 bytes (460 MiB)

Extracting archive: BaseSystem.dmg
--            
Path = BaseSystem.dmg
Type = Dmg
Physical Size = 482126050
Method = Copy Zero2 ZLIB CRC
Blocks = 590
----
Path = 4.hfs
Size = 2013085696
Packed Size = 482080513
Comment = disk image (Apple_HFS : 4)
Method = Copy Zero2 ZLIB CRC
--
Path = 4.hfs
Type = HFS
Physical Size = 2013085696
Method = HFS+
Cluster Size = 4096
Free Space = 740196352
Created = 2018-10-24 02:10:14
Modified = 2018-10-24 09:23:00

Everything is Ok                                                               

Folders: 10639
Files: 39974
Size:       1121934759
Compressed: 482126050

# ls -la
total 470844
drwxr-xr-x  3 michael michael      4096 Feb 23 08:43  .
drwxr-xr-x  7 michael michael      4096 Feb 22 19:22  ..
-rw-r--r--  1 michael michael 482126050 Feb 22 19:25  BaseSystem.dmg
drwx------ 16 root    root         4096 Oct 24 10:14 'OS X Base System'

# mount -t hfsplus -o loop 4.hfs /media/dmg
mount: /media/dmg: failed to setup loop device for 4.hfs.

It seems the 4.hfs image is not extracted as a separate component?

-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to