Bonjour à tous,

sous macOS, l'utilitaire Apple fsck_apfs constate la corruption d'un volume 
APFS (volume externe, impossible à monter), mais ne peut le réparer.


% sudo fsck_apfs /dev/disk4s1 
Password:
** Checking the container superblock.
   Checking the checkpoint with transaction ID 4278894.
** Checking the EFI jumpstart record.
** Checking the space manager.
** Checking the space manager free queue trees.
** Checking the object map.
** Checking the encryption key structures.
** Checking volume /dev/rdisk4s1.
** Checking the APFS volume superblock.
   The volume OSX was formatted by newfs_apfs (748.77.8) and last modified by 
apfs_kext (2235.41.1).
** Checking the object map.
error: btn: oid (345621), xid (4278156), type (0x40000003), subtype (0xb), 
flags (0x6) level (0)
error: btn: invalid key order: minkey is less than index 0 (should be equal)
minkey        : 63 f8 00 00 00 00 00 00 2c f7 0b 00 00 00 00 00  index 0 key   
: fd a8 57 00 00 00 00 00 08 21 39 00 00 00 00 00  index 1 key   : 0e a9 57 00 
00 00 00 00 0c e9 3f 00 00 00 00 00  Checking if the parent's minkey can be 
updated...
error: btn: oid (394781), xid (4278888), type (0x40000003), subtype (0xb), 
flags (0x4) level (1)
error: btn: unable to repair minkey
   Object map is invalid.
** The volume /dev/rdisk4s1 with UUID 95EA38E5-E132-4498-A975-53259C4A7C4C was 
found to be corrupt and cannot be repaired.
** Verifying allocated space.
** The volume /dev/rdisk4s1 with UUID 95EA38E5-E132-4498-A975-53259C4A7C4C 
could not be verified completely.


Une sauvegarde de ce volume existe. Mais si l'un d'entre vous a été confronté à 
ce type de corruption et l'a réparé, ses conseils sont les bienvenus; ça peut 
servir pour une situation future similaire mais sans sauvegarde. Le web ne m'a 
pas donné grand chose en réponse aux mots clés "error: btn: invalid key order: 
minkey is less than index 0 (should be equal)".

Pour l'anecdote, c'est l'outil "migration" fourni par Apple, lors d'une lecture 
des données utilisateur de l'ancienne machine, qui a laissé ce volume APFS dans 
cet état. Seul un accès en lecture aurait pourtant dû être nécessaire sur ce 
volume APFS. Un "corner case" sans doute.

Merci pour vos conseils.


--
Frédéric Dumas
f.du...@ellis.siteparc.fr



_______________________________________________
Liste de diffusion du %(real_name)s
http://www.frsag.org/

Répondre à