10.13 High Sierra Session ne s'ouvre pas

Bloc de code:
-bash-3.2# diskutil cs resizeStack 8437CEE6-CE6C-4A4D-8031-7490152C94DE 250g jhfs+ Clone 0b
The Core Storage Logical Volume UUID is 8437CEE6-CE6C-4A4D-8031-7490152C94DE
Started CoreStorage operation
Checking prerequisites for resizing Logical-Physical volume stack
Shrinking Logical-Physical volume stack
Verifying file system
Volume was successfully unmounted
Performing fsck_hfs -fn -x /dev/rdisk20
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume Macintosh HD appears to be OK
File system check exit code is 0
Restoring the original state found as mounted
Shrinking file system
Shrinking Logical Volume
Resizing Core Storage Logical Volume structures
Resized Core Storage Logical Volume to 249 999 998 976 bytes
Shrinking Core Storage Physical Volume from 499 248 103 424 to 250 352 320 512 bytes
Shrinking Core Storage data structures
Resizing Core Storage Physical Volume structures
Resized Core Storage Physical Volume to 250 352 320 512 bytes
Copying booter
Shrinking partition for Physical Volume and adding new partitions
Modifying partition map
Initialized /dev/rdisk0s4 as a 232 GB case-insensitive HFS Plus volume with a 24576k journal
Mounting disk
Finished CoreStorage operation
-bash-3.2#
 
Dernière édition par un modérateur:
La commande est passée. Passe un :
Bloc de code:
diskutil list

  • et poste le tableau retourné (n'oublie pas la fenêtre de code !)
 
Bloc de code:
-bash-3.2# diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage Macintosh HD            250.4 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s5
   4:                  Apple_HFS Clone                   248.8 GB   disk0s4

/dev/disk1 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        +2.1 GB     disk1
   1:                  Apple_HFS OS X Base System        2.0 GB     disk1s1

/dev/disk2 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            untitled               +5.2 MB     disk2

/dev/disk3 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            untitled               +524.3 KB   disk3

/dev/disk4 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            untitled               +524.3 KB   disk4

/dev/disk5 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            untitled               +524.3 KB   disk5

/dev/disk6 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            untitled               +2.1 MB     disk6

/dev/disk7 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            untitled               +524.3 KB   disk7

/dev/disk8 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            untitled               +524.3 KB   disk8

/dev/disk9 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            untitled               +12.6 MB    disk9

/dev/disk10 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            untitled               +4.2 MB     disk10

/dev/disk11 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            untitled               +1.0 MB     disk11

/dev/disk12 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            untitled               +2.1 MB     disk12

/dev/disk13 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            untitled               +524.3 KB   disk13

/dev/disk14 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            untitled               +524.3 KB   disk14

/dev/disk15 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            untitled               +1.0 MB     disk15

/dev/disk16 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            untitled               +6.3 MB     disk16

/dev/disk17 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            untitled               +6.3 MB     disk17

/dev/disk18 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            untitled               +524.3 KB   disk18

/dev/disk19 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            untitled               +2.1 MB     disk19

/dev/disk20 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Macintosh HD           +250.0 GB   disk20
                                 Logical Volume on disk0s2
                                 8437CEE6-CE6C-4A4D-8031-7490152C94DE
                                 Unlocked Encrypted

-bash-3.2#
 
Parfait. Alors hop ! opération clonage.

Passe d'abord la commande :
Bloc de code:
caffeinate -dimsu &

  • qui va empêcher le Mac de dormir pendant l'opération ; elle passe sans commentaire

Passe ensuite la commande :
Bloc de code:
cp -av /Volumes/"Macintosh HD"/* /Volumes/Clone

  • mets "Macintosh HD" aves des "" ; pas d'espace entre HD" et /* ; un espace entre /* et /Volumes---
  • la commande clone Macintosh HD dans Clone
  • une ligne s'affiche par fichier copié
  • la copie suit l'ordre alphabétique des dossiers > sous-dossiers > fichiers

=> si tu vois un défilé de lignes démarrer à l'écran > c'est que le clonage est lancé. Attends jusqu'à l'arrêt du défilé et au retour de l'invite de commande -bash-3.2# en signal de complétion. Tu peux laisser ton Mac sans surveillance. Préviens quand tout est fini.
 
Alors passe la commande :
Bloc de code:
df -H /Volumes/Clone

  • la commande mesure l'occupation du volume Clone

Poste ici le tableau.
 
Bloc de code:
-bash-3.2# df -H /Volumes/Clone
Filesystem     Size   Used  Avail Capacity iused      ifree %iused  Mounted on
/dev/disk0s4   249G   244G   4.5G    99%  972329 4293994950    0%   /Volumes/Clone
-bash-3.2#
 
244 Go : c'est bon. La commande cp a toujours tendance à délayer à la copie (il était temps que ça s'arrête ici).

À présent il convient de reformater le volume Macintosh HD --> veux-tu le reformater sans toucher le CoreStorage Chiffré qui le supporte ? - ou bien supprimer aussi le CoreStorage Chiffré pour remonter un volume standard ?
 
Alors passe la commande :
Bloc de code:
diskutil eraseVolume jhfs+ "Macintosh HD" disk20

  • mets "Macintosh HD" avec des ""
  • la commande reformate le seul volume Macintosh HD > perché sur le Volume Logique disk20 du CoreStorage

Poste l'affichage retourné par la commande.
 
Bloc de code:
-bash-3.2# diskutil eraseVolume jhfs+ "Macintosh HD" disk20
Started erase on disk20 Macintosh HD
Unmounting disk
Erasing
Initialized /dev/rdisk20 as a 233 GB case-insensitive HFS Plus volume with a 24576k journal
Mounting disk
Finished erase on disk20 Macintosh HD
-bash-3.2#
 
Le formatage est bien passé. Finalisation du sauvetage à présent (ce qui va prendre du temps) -->

  • a) dans la fenêtre des 4 Utilitaires macOS > lance l'option : "Ré-installer macOS" --> à destination du volume Macintosh HD reformaté > ce qui va donner une installation propre.
  • b) en fin d'installation > une page te propose de récupérer des données --> coche la case : "À partir d'un autre Mac ou d'une sauvegarde Time Machine" > et choisis le volume Clone en "source". L'«Assistant de migration» va te proposer de récupérer ton compte > des applications > des réglages --> n'exclus rien et lance. S'il te propose en chemin une mise-à-jour d'iTunes --> refuse > car ça plante la migration. Une récupération par l'«Assistant de migration» est toujours très lente > avec un débit de copie très variable.

=> tu n'auras qu'à dire si tu as pu ré-ouvrir ta session à la fin.
 
Bien !

Dans ta session d'utilisateur ouverte > va à : Applications > Utilitaires > et lance le Terminal.app (c'est le Terminal de macOS cette fois-ci). Dans la fenêtre ouverte > passe (l'une après l'autre) les commandes (en copier-coller direct = avantage d'une vraie session d'utilisateur -->
Bloc de code:
diskutil eraseVolume free null disk0s4
diskutil resizeVolume disk0s2 0b

  • la 1ère supprime la partition n°4 qui supporte le volume Clone
  • la 2è récupère l'espace libéré par la suppression --> à la partition n°2 qui supporte le volume Macintosh HD

Si tu n'as pas eu de message d'erreur --> repasse pour finir un :
Bloc de code:
diskutil list

  • et poste le tableau des disques.
 
Bloc de code:
Last login: Mon Apr 30 15:07:03 on ttys000
macbook-pro:~ Manon$ diskutil resizeVolume disk0s2 0b
disk0s2 is a Core Storage Physical Volume (use a diskutil coreStorage verb instead to resize)
macbook-pro:~ Manon$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage Macintosh HD            250.4 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

/dev/disk1 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Macintosh HD           +250.0 GB   disk1
                                 Logical Volume on disk0s2
                                 8437CEE6-CE6C-4A4D-8031-7490152C94DE
                                 Unlocked Encrypted

macbook-pro:~ Manon$
 
La partition du volume Clone a bien été supprimée > mais je n'avais pas tenu compte pour la récupération de cet espace du fait que le volume Macintosh HD est l'hôte d'un CoreStorage. Il faut la commande spéciale que voici -->
Bloc de code:
diskutil coreStorage resizeStack  8437CEE6-CE6C-4A4D-8031-7490152C94DE 0b

  • passe-la > et poste l'affichage retourné par la commande + le tableau d'un nouveau :
    Bloc de code:
    diskutil list
 
Bloc de code:
Last login: Mon Apr 30 15:10:06 on ttys000
macbook-pro:~ Manon$ diskutil coreStorage resizeStack  8437CEE6-CE6C-4A4D-8031-7490152C94DE 0b
The Core Storage Logical Volume UUID is 8437CEE6-CE6C-4A4D-8031-7490152C94DE
Started CoreStorage operation
Checking prerequisites for resizing Logical-Physical volume stack
Growing Logical-Physical volume stack
Verifying file system
Volume could not be unmounted
Using live mode
Performing fsck_hfs -fn -l -x /dev/rdisk1
Performing live verification
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume Macintosh HD appears to be OK
File system check exit code is 0
Restoring the original state found as mounted
Growing Core Storage Physical Volume from 250 352 320 512 to 499 248 103 424 bytes
Copying booter
Growing disk partition
Modifying partition map
Growing Core Storage data structures
Resizing Core Storage Physical Volume structures
Resized Core Storage Physical Volume to 499 248 103 424 bytes
Growing Logical Volume
Resizing Core Storage Logical Volume structures
Resized Core Storage Logical Volume to 498 895 781 888 bytes
Growing file system
Finished CoreStorage operation
macbook-pro:~ Manon$
macbook-pro:~ Manon$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage Macintosh HD            499.2 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s4

/dev/disk1 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Macintosh HD           +498.9 GB   disk1
                                 Logical Volume on disk0s2
                                 8437CEE6-CE6C-4A4D-8031-7490152C94DE
                                 Unlocked Encrypted

macbook-pro:~ Manon$
 
Bloc de code:
Last login: Mon Apr 30 15:10:06 on ttys000
macbook-pro:~ Manon$ diskutil coreStorage resizeStack  8437CEE6-CE6C-4A4D-8031-7490152C94DE 0b
The Core Storage Logical Volume UUID is 8437CEE6-CE6C-4A4D-8031-7490152C94DE
Started CoreStorage operation
Checking prerequisites for resizing Logical-Physical volume stack
Growing Logical-Physical volume stack
Verifying file system
Volume could not be unmounted
Using live mode
Performing fsck_hfs -fn -l -x /dev/rdisk1
Performing live verification
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume Macintosh HD appears to be OK
File system check exit code is 0
Restoring the original state found as mounted
Growing Core Storage Physical Volume from 250 352 320 512 to 499 248 103 424 bytes
Copying booter
Growing disk partition
Modifying partition map
Growing Core Storage data structures
Resizing Core Storage Physical Volume structures
Resized Core Storage Physical Volume to 499 248 103 424 bytes
Growing Logical Volume
Resizing Core Storage Logical Volume structures
Resized Core Storage Logical Volume to 498 895 781 888 bytes
Growing file system
Finished CoreStorage operation
macbook-pro:~ Manon$
macbook-pro:~ Manon$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage Macintosh HD            499.2 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s4

/dev/disk1 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Macintosh HD           +498.9 GB   disk1
                                 Logical Volume on disk0s2
                                 8437CEE6-CE6C-4A4D-8031-7490152C94DE
                                 Unlocked Encrypted

macbook-pro:~ Manon$
 
La récupération d'espace a fonctionné --> le volume Macintosh HD fait dans les 499 Go désormais.

Problème résolu !
 
Bloc de code:
Last login: Mon Apr 30 15:10:06 on ttys000
macbook-pro:~ Manon$ diskutil coreStorage resizeStack  8437CEE6-CE6C-4A4D-8031-7490152C94DE 0b
The Core Storage Logical Volume UUID is 8437CEE6-CE6C-4A4D-8031-7490152C94DE
Started CoreStorage operation
Checking prerequisites for resizing Logical-Physical volume stack
Growing Logical-Physical volume stack
Verifying file system
Volume could not be unmounted
Using live mode
Performing fsck_hfs -fn -l -x /dev/rdisk1
Performing live verification
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume Macintosh HD appears to be OK
File system check exit code is 0
Restoring the original state found as mounted
Growing Core Storage Physical Volume from 250 352 320 512 to 499 248 103 424 bytes
Copying booter
Growing disk partition
Modifying partition map
Growing Core Storage data structures
Resizing Core Storage Physical Volume structures
Resized Core Storage Physical Volume to 499 248 103 424 bytes
Growing Logical Volume
Resizing Core Storage Logical Volume structures
Resized Core Storage Logical Volume to 498 895 781 888 bytes
Growing file system
Finished CoreStorage operation
macbook-pro:~ Manon$
macbook-pro:~ Manon$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage Macintosh HD            499.2 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s4

/dev/disk1 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Macintosh HD           +498.9 GB   disk1
                                 Logical Volume on disk0s2
                                 8437CEE6-CE6C-4A4D-8031-7490152C94DE
                                 Unlocked Encrypted

macbook-pro:~ Manon$