![macOS のコマンドラインから生の APFS ファイルシステムをマウントするにはどうすればよいですか?](https://rvso.com/image/1555388/macOS%20%E3%81%AE%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%83%A9%E3%82%A4%E3%83%B3%E3%81%8B%E3%82%89%E7%94%9F%E3%81%AE%20APFS%20%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0%E3%82%92%E3%83%9E%E3%82%A6%E3%83%B3%E3%83%88%E3%81%99%E3%82%8B%E3%81%AB%E3%81%AF%E3%81%A9%E3%81%86%E3%81%99%E3%82%8C%E3%81%B0%E3%82%88%E3%81%84%E3%81%A7%E3%81%99%E3%81%8B%3F.png)
APFS ファイルシステムを含む RAW イメージの作成は非常に簡単です。
$ hdiutil create -megabytes 1 -layout NONE -fs apfs -volname unicode unicode.dmg
created: /Users/daniel/test/apfs/unicode.dmg
今、実行しようとしている特定のテスト用のファイルをそこに入れたいのですが、添付できないようです:
$ hdiutil attach unicode.dmg
hdiutil: attach failed - no mountable file systems
診断:
$ 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
ここでの出力は、ブロック サイズとボリューム ラベルが間違っているため、不確かなようです。何が起こっているのかわかりません。APFS は、特定の条件下でのみマウントされるものの 1 つですか? そうであれば、どのような条件ですか? または、すでに持っているこの 1 つのイメージをマウントするために回避する方法はありますか?