![¿Cómo monto un sistema de archivos APFS sin formato desde la línea de comandos en macOS?](https://rvso.com/image/1555388/%C2%BFC%C3%B3mo%20monto%20un%20sistema%20de%20archivos%20APFS%20sin%20formato%20desde%20la%20l%C3%ADnea%20de%20comandos%20en%20macOS%3F.png)
Crear una imagen sin formato con un sistema de archivos APFS es bastante sencillo:
$ hdiutil create -megabytes 1 -layout NONE -fs apfs -volname unicode unicode.dmg
created: /Users/daniel/test/apfs/unicode.dmg
Ahora quiero colocar archivos para una prueba particular que estoy intentando realizar, pero parece que no puedo adjuntarlos:
$ hdiutil attach unicode.dmg
hdiutil: attach failed - no mountable file systems
Diagnóstico:
$ hdiutil imageinfo unicode.dmg
nx_kernel_mount:1366: checkpoint search: largest xid 2, best xid 2 @ 3
nx_kernel_mount:1366: checkpoint search: largest xid 2, best xid 2 @ 3
nx_kernel_mount:1366: checkpoint search: largest xid 2, best xid 2 @ 3
nx_kernel_mount:1366: checkpoint search: largest xid 2, best xid 2 @ 3
nx_kernel_mount:1366: checkpoint search: largest xid 2, best xid 2 @ 3
nx_kernel_mount:1366: checkpoint search: largest xid 2, best xid 2 @ 3
Backing Store Information:
URL: file:///Users/tester/test/apfs/unicode.dmg
Name: unicode.dmg
Class Name: CBSDBackingStore
Class Name: CRawDiskImage
Checksum Type: none
Size Information:
Total Bytes: 1048576
Compressed Ratio: 1
Sector Count: 2048
Total Non-Empty Bytes: 1048576
Compressed Bytes: 1048576
Total Empty Bytes: 0
Format: UDRW
Format Description: raw read/write
Checksum Value:
Properties:
Encrypted: false
Kernel Compatible: true
Checksummed: false
Software License Agreement: false
Partitioned: false
Compressed: no
Segments:
0: /Users/tester/test/apfs/unicode.dmg
partitions:
partition-scheme: none
block-size: 512
appendable: false
partitions:
0:
partition-name: whole disk
partition-start: 0
partition-synthesized: true
partition-length: 2048
partition-hint: unknown partition
partition-filesystems:
APFS: Untitled
burnable: false
Resize limits (per hdiutil resize -limits):
min cur max
2048 2048 2048
El resultado aquí parece dudoso porque el tamaño del bloque y la etiqueta del volumen son incorrectos. Así que no estoy seguro de lo que está pasando. ¿APFS es una de esas cosas que sólo se monta bajo alguna condición específica? Si es así, ¿qué condición? ¿O hay alguna manera de solucionarlo para montar esta imagen que ya tengo?