Open P5-2005 opened 1 year ago
is this mean not supported to be mounted?
This is an experimental project, can you try on a different architecture (e.g. native Linux) to rule out any issue with your msys-mingw64 build
is this mean not supported to be mounted?
This is an experimental project, can you try on a different architecture (e.g. native Linux) to rule out any issue with your msys-mingw64 build
thanks, i will try it tomorrow and let you know its night here
i just tried on linux ubuntu: the mount work no issue for this :
p5@P5-2oo5:~$ fsapfsinfo ramdisk.dmg
fsapfsinfo 20231023
Apple File System (APFS) information:
Container information:
Identifier : ed39770e-f658-4e9f-a1ed-a9f78b9f66d5
Number of volumes : 1
Volume: 1 information:
Identifier : 69d34031-d919-4aa6-8fd6-a2cb1f7a2355
Name : SydneySecurityDawn20H19.arm64CustomerRamDisk
Compatible features : 0x00000002
(NX_FEATURE_LCFD)
Incompatible features : 0x00000008
Read-only compatible features : 0x00000000
Number of snapshots : 0
fsapfsinfo -H ramdisk.dmg
fsapfsinfo 20231023
Apple File System (APFS) information:
File system hierarchy:
/{69d34031-d919-4aa6-8fd6-a2cb1f7a2355}/
/{69d34031-d919-4aa6-8fd6-a2cb1f7a2355}/usr
/{69d34031-d919-4aa6-8fd6-a2cb1f7a2355}/usr/bin
/{69d34031-d919-4aa6-8fd6-a2cb1f7a2355}/usr/bin/peppytool
/{69d34031-d919-4aa6-8fd6-a2cb1f7a2355}/usr/bin/sed
/{69d34031-d919-4aa6-8fd6-a2cb1f7a2355}/usr/bin/TiSerialFlasher
/{69d34031-d919-4aa6-8fd6-a2cb1f7a2355}/usr/bin/orionmicroupdate
/{69d34031-d919-4aa6-8fd6-a2cb1f7a2355}/usr/bin/usbcfwflasher
but for this one not working at all, i get permission issue even if i use sudo :
p5@P5-2oo5:~$ fsapfsinfo 078-24038-344-16.4.dmg
fsapfsinfo 20231023
Apple File System (APFS) information:
Container information:
Identifier : 91d44005-604b-442e-8f0d-9885188d163a
Number of volumes : 1
Volume: 1 information:
Identifier : 5bc09a6e-f577-4007-a573-fd554970d9f6
Name : SydneyE20E247.D22D221SystemCryptex
Compatible features : 0x00000002
(NX_FEATURE_LCFD)
Incompatible features : 0x00000028
Read-only compatible features : 0x00000000
Number of snapshots : 0
fsapfsinfo -H 078-24038-344-16.4.dmg
fsapfsinfo 20231023
Apple File System (APFS) information:
File system hierarchy:
but for this one not working at all, i get permission issue even if i use sudo :
any indication if this is an unsupported format feature? or are you running with debug output? if so it can take quite a bit longer to generate all the output.
but for this one not working at all, i get permission issue even if i use sudo :
any indication if this is an unsupported format feature? or are you running with debug output? if so it can take quite a bit longer to generate all the output.
ramdisk.dmg is around 100MB but the other one is around 2Gb i didnt tried mount with verbose mode, i will try now
what type of dmg file are these? (libfsapfs only supports RAW storage media images and not specific UDIF formats https://github.com/libyal/libmodi/blob/main/documentation/Mac%20OS%20disk%20image%20types.asciidoc)
does ramdisk contain a file system from RAM?
what type of dmg file are these? does ramdisk contain a file system from RAM?
those are from ipsw of apple restore image, they add this new format on iOS from ios16, on macos i think they add on ventura(not sure) if you want to extract some few to try from your end you can use remotezip
if you want to extract some few to try from your end you can use remotezip
can you post here or drop me a mail on what you mean with this or how to reproduce this test data?
if you want to extract some few to try from your end you can use remotezip
can you post here or drop me a mail on what you mean with this or how to reproduce this test data?
here example:
C:\Users\PC\AppData\Local\Programs\Python\Python310\Scripts>python remotezip -l https://updates.cdn-apple.com/2023FallFCS/fullrestores/042-55954/2E3BA2A8-D348-4DBD-97D2-D06AE513AAC0/iPhone10,3,iPhone10,6_16.7_20H19_Restore.ipsw
Length DateTime Name
---------- ------------------- ----------------------------------------------------------
2726297600 2007-01-09 09:41:00 097-31042-021.dmg
109051931 2007-01-09 09:41:00 097-31665-023.dmg
106954779 2007-01-09 09:41:00 097-31841-023.dmg
10485760 2007-01-09 09:41:00 097-31912-023.dmg
4730391549 2007-01-09 09:41:00 097-31924-021.dmg
if you want to download, around 02GB file :
python remotezip https://updates.cdn-apple.com/2023FallFCS/fullrestores/042-55954/2E3BA2A8-D348-4DBD-97D2-D06AE513AAC0/iPhone10,3,iPhone10,6_16.7_20H19_Restore.ipsw 097-31042-021.dmg
if you want to extract some few to try from your end you can use remotezip
can you post here or drop me a mail on what you mean with this or how to reproduce this test data?
wonder if you already checked this: https://developer.apple.com/support/downloads/Apple-File-System-Reference.pdf
yes multiple versions over time, but the file system continuous to evolve over time. Also the library is working for most of the existing test case I have/know of.
also if i use apfs-fuse on wsl2-ubuntu about that dmg file, it mount like that(contents) :
p5@P5-2oo5:~$ sudo apfs-fuse 078-24038-344-16.4.dmg test/
p5@P5-2oo5:~$ sudo ls -la test
total 0
drw-r--r-- 1 root root 0 Mar 23 2023 private-dir
drwxr-xr-x 1 root root 2 Mar 23 2023 root
p5@P5-2oo5:~$ sudo ls -la test/root
total 0
drwxr-xr-x 1 root root 2 Mar 23 2023 System
drwxr-xr-x 1 root root 1 Mar 23 2023 usr
p5@P5-2oo5:~$
apfs-fuse has built in UDIF dmg support, are you sure you are not running into that as an issue?
i installed apfs-fuse just after, so i dont think the issue is related with that
i installed apfs-fuse just after, so i dont think the issue is related with that
I mean that the DMG you are using as input is not in the supported format. I'll take a look when time permits.
zipinfo iPhone10,3,iPhone10,6_16.7_20H19_Restore.ipsw | grep 078-24038-344-16.4.dmg
returns empty, can you point me to the correct test data?
zipinfo iPhone10,3,iPhone10,6_16.7_20H19_Restore.ipsw | grep .dmg
-rw-r--r-- 4.5 unx 2726297600 bx defN 07-Jan-09 09:41 097-31042-021.dmg
-rw-r--r-- 4.5 unx 109051931 bx defN 07-Jan-09 09:41 097-31665-023.dmg
-rw-r--r-- 4.5 unx 106954779 bx defN 07-Jan-09 09:41 097-31841-023.dmg
-rw-r--r-- 4.5 unx 10485760 bx defN 07-Jan-09 09:41 097-31912-023.dmg
-rw-r--r-- 4.5 unx 4730391549 bx stor 07-Jan-09 09:41 097-31924-021.dmg
097-31042-021.dmg
yes this one : 097-31042-021.dmg the file with +02GB
These might be in the IM4P format
00000000 30 84 06 80 00 15 16 04 49 4d 34 50 16 04 72 64 |0.......IM4P..rd|
00000010 73 6b 16 01 30 04 84 06 80 00 00 bc 9f f2 d0 a6 |sk..0...........|
00000020 7d c6 5c 01 00 00 00 00 00 00 00 0d 00 00 00 00 |}.\.............|
00000030 00 00 00 01 00 00 80 00 00 00 00 4e 58 53 42 00 |...........NXSB.|
00000040 10 00 00 00 68 00 00 00 00 00 00 00 00 00 00 00 |....h...........|
00000050 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 |................|
00000060 00 00 00 ec 73 65 78 ad 07 48 ec b5 54 1e b0 0a |....sex..H..T...|
00000070 65 d9 71 c8 04 00 00 00 00 00 00 0e 00 00 00 00 |e.q.............|
00000080 00 00 00 08 00 00 00 e8 00 00 00 62 50 00 00 00 |...........bP...|
00000090 00 00 00 3e 06 00 00 00 00 00 00 06 00 00 00 0e |...>............|
000000a0 00 00 00 04 00 00 00 02 00 00 00 09 00 00 00 05 |................|
000000b0 00 00 00 c6 04 00 00 00 00 00 00 70 01 00 00 00 |...........p....|
000000c0 00 00 00 01 04 00 00 00 00 00 00 00 00 00 00 01 |................|
000000d0 00 00 00 02 04 00 00 00 00 00 00 00 00 00 00 00 |................|
000000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000003f0 00 00 00 88 01 00 00 00 00 00 00 00 00 00 00 00 |................|
00000400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000530 00 00 00 00 00 00 00 00 00 00 00 01 00 04 00 06 |................|
00000540 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
libfsapfs requires a "raw" file system data
These might be in the IM4P format
00000000 30 84 06 80 00 15 16 04 49 4d 34 50 16 04 72 64 |0.......IM4P..rd| 00000010 73 6b 16 01 30 04 84 06 80 00 00 bc 9f f2 d0 a6 |sk..0...........| 00000020 7d c6 5c 01 00 00 00 00 00 00 00 0d 00 00 00 00 |}.\.............| 00000030 00 00 00 01 00 00 80 00 00 00 00 4e 58 53 42 00 |...........NXSB.| 00000040 10 00 00 00 68 00 00 00 00 00 00 00 00 00 00 00 |....h...........| 00000050 00 00 00 00 00 00 00 00 00 00 00 02 00 00 00 00 |................| 00000060 00 00 00 ec 73 65 78 ad 07 48 ec b5 54 1e b0 0a |....sex..H..T...| 00000070 65 d9 71 c8 04 00 00 00 00 00 00 0e 00 00 00 00 |e.q.............| 00000080 00 00 00 08 00 00 00 e8 00 00 00 62 50 00 00 00 |...........bP...| 00000090 00 00 00 3e 06 00 00 00 00 00 00 06 00 00 00 0e |...>............| 000000a0 00 00 00 04 00 00 00 02 00 00 00 09 00 00 00 05 |................| 000000b0 00 00 00 c6 04 00 00 00 00 00 00 70 01 00 00 00 |...........p....| 000000c0 00 00 00 01 04 00 00 00 00 00 00 00 00 00 00 01 |................| 000000d0 00 00 00 02 04 00 00 00 00 00 00 00 00 00 00 00 |................| 000000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 000003f0 00 00 00 88 01 00 00 00 00 00 00 00 00 00 00 00 |................| 00000400 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000530 00 00 00 00 00 00 00 00 00 00 00 01 00 04 00 06 |................| 00000540 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
libfsapfs requires a "raw" file system data
my test was on ios16.4 and ios16.5 it was raw :
p5@P5-2oo5:~$ head -n 15 078-24038-344-16.4.dmg | xxd | head -n 15
00000000: 3319 94c3 9893 cb89 0100 0000 0000 0000 3...............
00000010: 1900 0000 0000 0000 0100 0080 0000 0000 ................
00000020: 4e58 5342 0010 0000 0036 0a00 0000 0000 NXSB.....6......
00000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000040: 0200 0000 0000 0000 91d4 4005 604b 442e ..........@.`KD.
00000050: 8f0d 9885 188d 163a 5a11 0000 0000 0000 .......:Z.......
00000060: 1a00 0000 0000 0000 2000 0000 ac0a 0000 ........ .......
00000070: 6c42 0900 0000 0000 7e37 0900 0000 0000 lB......~7......
00000080: 0a00 0000 1500 0000 0800 0000 0200 0000 ................
00000090: 1000 0000 0500 0000 ab04 0000 0000 0000 ................
000000a0: 1ed8 0900 0000 0000 0104 0000 0000 0000 ................
000000b0: 0000 0000 0600 0000 0204 0000 0000 0000 ................
000000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
000000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
000000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
try on ios16.5 ipsw you will see its the raw one, seem they add im4p on 16.7
Please don't use screenshots in issue reports they are not universally accessible.
try on ios16.5 ipsw you will see its the raw one, seem they add im4p on 16.7
Again, can you point me to the correct test data? If you are not specific or keep changing the test parameters I cannot reproduce the issue.
here the link if you can try it : https://updates.cdn-apple.com/2023SpringFCS/fullrestores/032-85130/6AB0D10A-8AF9-4F6C-8CF5-A1B315CABE88/iPhone10,3,iPhone10,6_16.5_20F66_Restore.ipsw
Thanks, I'll give it a try later.
Still no 078-24038-344-16.4.dmg
zipinfo iPhone10,3,iPhone10,6_16.5_20F66_Restore.ipsw | grep .dmg
-rw-r--r-- 4.5 unx 10485760 bx defN 07-Jan-09 09:41 096-03536-083.dmg
-rw-r--r-- 4.5 unx 106954779 bx defN 07-Jan-09 09:41 096-03566-084.dmg
-rw-r--r-- 4.5 unx 4728546953 bx stor 07-Jan-09 09:41 096-04088-077.dmg
-rw-r--r-- 4.5 unx 2726297600 bx defN 07-Jan-09 09:41 096-04666-078.dmg
-rw-r--r-- 4.5 unx 109051931 bx defN 07-Jan-09 09:41 096-04690-083.dmg
Still no 078-24038-344-16.4.dmg
zipinfo iPhone10,3,iPhone10,6_16.5_20F66_Restore.ipsw | grep .dmg -rw-r--r-- 4.5 unx 10485760 bx defN 07-Jan-09 09:41 096-03536-083.dmg -rw-r--r-- 4.5 unx 106954779 bx defN 07-Jan-09 09:41 096-03566-084.dmg -rw-r--r-- 4.5 unx 4728546953 bx stor 07-Jan-09 09:41 096-04088-077.dmg -rw-r--r-- 4.5 unx 2726297600 bx defN 07-Jan-09 09:41 096-04666-078.dmg -rw-r--r-- 4.5 unx 109051931 bx defN 07-Jan-09 09:41 096-04690-083.dmg
for 16.5 its this dmg : 096-04666-078.dmg you will see its not im4p
is this mean not supported to be mounted?
the build used msys-mingw64 and libfuse is from winfsp
some stack: