Dernière édition par un modérateur:
diskutil list
Last login: Sun Jan 7 00:52:10 on ttys000
mbpdemacbookpro:~ pro$ diskutil list
/dev/disk0 (internal):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 251.0 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk1 133.7 GB disk0s2
3: Microsoft Basic Data BOOTCAMP 116.5 GB disk0s3
4: Windows Recovery 503.3 MB disk0s4
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +133.7 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 114.1 GB disk1s1
2: APFS Volume Preboot 20.6 MB disk1s2
3: APFS Volume Recovery 506.6 MB disk1s3
4: APFS Volume VM 1.1 GB disk1s4
mbpdemacbookpro:~ pro$
diskutil eraseVolume free null disk0s4
diskutil eraseVolume free null disk0s3
diskutil ap resizeContainer disk1 0b
diskutil list
Last login: Sun Jan 7 18:07:52 on ttys000
mbpdemacbookpro:~ pro$ diskutil eraseVolume free null disk0s4
Started erase on disk0s4
Unmounting disk
Finished erase on disk0
mbpdemacbookpro:~ pro$ diskutil eraseVolume free null disk0s3
Started erase on disk0s3 BOOTCAMP
Unmounting disk
Finished erase on disk0
mbpdemacbookpro:~ pro$ diskutil ap resizeContainer disk1 0b
Started APFS operation
Resizing APFS Container designated by APFS Container Reference disk1
Verifying storage system
Using live mode
Performing fsck_apfs -n -x -l /dev/disk0s2
Checking volume
Checking the container superblock
Checking the EFI jumpstart record
Checking the space manager
Checking the object map
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Verifying allocated space
warning: Overallocation Detected on Main device: (30903177+1) bitmap address (786508)
The volume /dev/disk0s2 appears to be OK
Storage system check exit code is 0
Growing APFS Physical Store disk0s2 from 133 657 763 840 to 250 685 575 168 bytes
Modifying partition map
Growing APFS data structures
Finished APFS operation
mbpdemacbookpro:~ pro$
diskutil list
Last login: Sun Jan 7 18:17:34 on ttys000
mbpdemacbookpro:~ pro$ diskutil list
/dev/disk0 (internal):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 251.0 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk1 250.7 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +250.7 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 126.3 GB disk1s1
2: APFS Volume Preboot 20.6 MB disk1s2
3: APFS Volume Recovery 506.6 MB disk1s3
4: APFS Volume VM 2.1 GB disk1s4
mbpdemacbookpro:~ pro$
Last login: Sat Feb 17 20:12:18 on console
You have new mail.
macbook-air-de-x:~ x$ diskutil list
/dev/disk0 (internal):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 251.0 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk1 120.5 GB disk0s2
3: Apple_Boot 134.2 MB disk0s3
4: Microsoft Basic Data BOOTCAMP 129.6 GB disk0s4
5: Windows Recovery 471.9 MB disk0s5
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +120.5 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 79.6 GB disk1s1
2: APFS Volume Preboot 19.8 MB disk1s2
3: APFS Volume Recovery 506.6 MB disk1s3
4: APFS Volume VM 1.1 GB disk1s4
macbook-air-de-x:~ x$
diskutil eraseVolume free null disk0s3
diskutil eraseVolume free null disk0s4
diskutil eraseVolume free null disk0s5
diskutil ap resizeContainer disk1 0b
diskutil list
Last login: Sat Mar 10 22:34:57 on console
You have new mail.
macbook-air-de-x:~ x$ diskutil eraseVolume free null disk0s3
Started erase on disk0s3 BOOTCAMP
Unmounting disk
Finished erase on disk0
macbook-air-de-x:~ x$ diskutil eraseVolume free null disk0s4
Started erase on disk0s4
Unmounting disk
Finished erase on disk0
macbook-air-de-x:~ x$ diskutil eraseVolume free null disk0s5
Unable to find disk for disk0s5
macbook-air-de-x:~ x$ diskutil ap resizeContainer disk1 0b
Started APFS operation
Resizing APFS Container designated by APFS Container Reference disk1
Verifying storage system
Using live mode
Performing fsck_apfs -n -x -l /dev/disk0s2
Checking volume
Checking the container superblock
Checking the EFI jumpstart record
Checking the space manager
Checking the object map
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Checking snapshot 1 of 1
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Verifying allocated space
warning: Overallocation Detected on Main device: (21137498+1) bitmap address (219217)
The volume /dev/disk0s2 appears to be OK
Storage system check exit code is 0
Growing APFS Physical Store disk0s2 from 120 649 129 984 to 250 685 575 168 bytes
Modifying partition map
Growing APFS data structures
Finished APFS operation
macbook-air-de-x:~ x$ diskutil list
/dev/disk0 (internal):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 251.0 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk1 250.7 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +250.7 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 80.3 GB disk1s1
2: APFS Volume Preboot 19.8 MB disk1s2
3: APFS Volume Recovery 509.8 MB disk1s3
4: APFS Volume VM 1.1 GB disk1s4
macbook-air-de-x:~ x$
Tout a parfaitement fonctionné. RAS.
diskutil ap deleteContainer disk2 "Macintosh HD"
Last login: Wed Mar 14 17:46:56 on ttys000
MacBook-Pro-de-steftb:~ steftb$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *128.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_CoreStorage Macintosh 127.2 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_HFS DATA 927.2 GB disk1s2
3: Microsoft Basic Data WIN 7 40.2 GB disk1s3
4: Apple_HFS Sans titre 32.2 GB disk1s4
/dev/disk2 (internal, virtual):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Macintosh +126.8 GB disk2
Logical Volume on disk0s2
CC414AB8-73EE-40B4-866C-8F2D74550AD0
Unencrypted
/dev/disk3 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *2.0 TB disk3
1: Windows_NTFS GRENIER 1.0 TB disk3s1
2: Apple_HFS PHOTOS 999.9 GB disk3s2
MacBook-Pro-de-steftb:~ steftb$ diskutil cs list
CoreStorage logical volume groups (1 found)
|
+-- Logical Volume Group B4FAB881-F5E3-4680-9509-8409C485DF62
=========================================================
Name: Macintosh
Status: Online
Size: 127175917568 B (127.2 GB)
Free Space: 18907136 B (18.9 MB)
|
+-< Physical Volume 823C7161-8513-48E4-BEE7-50EAB8048F88
| ----------------------------------------------------
| Index: 0
| Disk: disk0s2
| Status: Online
| Size: 127175917568 B (127.2 GB)
|
+-> Logical Volume Family 6FCF642D-7CF8-47DE-BFD3-7EF19CCF3634
----------------------------------------------------------
Encryption Type: None
|
+-> Logical Volume CC414AB8-73EE-40B4-866C-8F2D74550AD0
---------------------------------------------------
Disk: disk2
Status: Online
Size (Total): 126804688896 B (126.8 GB)
Revertible: Yes (no decryption required)
LV Name: Macintosh
Volume Name: Macintosh
Content Hint: Apple_HFS
MacBook-Pro-de-steftb:~ steftb$ diskutil eraseVolume free null disk1s4
Started erase on disk1s4 Sans titre
Unmounting disk
Error: -69877: Couldn't open device
MacBook-Pro-de-steftb:~ steftb$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *128.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_CoreStorage Macintosh 127.2 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_HFS DATA 927.2 GB disk1s2
3: Microsoft Basic Data WIN 7 40.2 GB disk1s3
4: Apple_HFS Sans titre 32.2 GB disk1s4
/dev/disk2 (internal, virtual):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS Macintosh +126.8 GB disk2
Logical Volume on disk0s2
CC414AB8-73EE-40B4-866C-8F2D74550AD0
Unencrypted
/dev/disk3 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *2.0 TB disk3
1: Windows_NTFS GRENIER 1.0 TB disk3s1
2: Apple_HFS PHOTOS 999.9 GB disk3s2
MacBook-Pro-de-steftb:~ steftb$ diskutil eraseVolume free null disk1s4
Started erase on disk1s4 Sans titre
Unmounting disk
Finished erase on disk1
MacBook-Pro-de-steftb:~ steftb$ diskutil eraseVolume free null disk1s3
Started erase on disk1s3 WIN 7
Unmounting disk
Finished erase on disk1