Dernière édition par un modérateur:
diskutil resizeVolume disk0s2 0b ; diskutil list disk0
Last login: Wed Sep 18 07:03:10 on ttys000
MacBook-Pro-de-Benjamin:~ benjaminmerlin$ diskutil resizeVolumes disk0s2 0b ; diskutil list disk0
diskutil: did not recognize verb "resizeVolumes"; type "diskutil" for a list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 235.6 GB disk0s2
3: Apple_HFS Recovery HD 650.0 MB disk0s3
MacBook-Pro-de-Benjamin:~ benjaminmerlin$
Last login: Wed Sep 18 07:06:59 on ttys000
MacBook-Pro-de-Benjamin:~ benjaminmerlin$ diskutil resizeVolume disk0s2 0b ; diskutil list disk0
Resizing to full size (fit to fill)
Started partitioning on disk0s2 Macintosh HD
Error: -69743: The new size must be different than the existing size
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 235.6 GB disk0s2
3: Apple_HFS Recovery HD 650.0 MB disk0s3
MacBook-Pro-de-Benjamin:~ benjaminmerlin$
csrutil status
Last login: Wed Sep 18 07:10:14 on ttys001
MacBook-Pro-de-Benjamin:~ benjaminmerlin$ csrutil status
System Integrity Protection status: disabled.
MacBook-Pro-de-Benjamin:~ benjaminmerlin$
sudo gpt show disk0
MacBook-Pro-de-Benjamin:~ benjaminmerlin$ sudo gpt show disk0
Password:
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 460171264 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
460580904 262144
460843048 1269536 3 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
462112584 28122135
490234719 32 Sec GPT table
490234751 1 Sec GPT header
MacBook-Pro-de-Benjamin:~ benjaminmerlin$
462112584 28122135
3: Apple_HFS Recovery HD 650.0 MB disk0s3
460580904 262144
sudo asr adjust --t /dev/disk0s3 --settype "Apple_Boot"
MacBook-Pro-de-Benjamin:~ benjaminmerlin$ sudo asr adjust --t /dev/disk0s3 --settype "Apple_Boot"
asr: Target for adjust mode must be a partition with no mounted volume
MacBook-Pro-de-Benjamin:~ benjaminmerlin$
sudo diskutil umount force disk0s3 ; sudo asr adjust --t /dev/disk0s3 --settype "Apple_Boot"
MacBook-Pro-de-Benjamin:~ benjaminmerlin$ sudo diskutil umount force disk0s3 ; sudo asr adjust --t /dev/disk0s3 --settype "Apple_Boot"
Password:
Volume Recovery HD on disk0s3 force-unmounted
Fsck /dev/disk0s3 ....10....20....30....40....50....60....70....80....90....100
Adjust completed successfully
MacBook-Pro-de-Benjamin:~ benjaminmerlin$
diskutil list disk0
Last login: Wed Sep 18 13:45:33 on ttys001
MBP-de-Benjamin:~ benjaminmerlin$ diskutil list disk0
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 235.6 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
MBP-de-Benjamin:~ benjaminmerlin$
3: Apple_Boot Recovery HD 650.0 MB disk0s3
diskutil resizeVolume disk0s2 0b ; diskutil list disk0
Last login: Wed Sep 18 19:10:42 on ttys001
MBP-de-Benjamin:~ benjaminmerlin$ diskutil resizeVolume disk0s2 0b ; diskutil list disk0
Resizing to full size (fit to fill)
Started partitioning on disk0s2 Macintosh HD
Verifying the disk
Verifying file system
Using live mode
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 multi-linked directories
Checking volume bitmap
Checking volume information
The volume Macintosh HD appears to be OK
File system check exit code is 0
Resizing
Modifying partition map
Copying booter
Growing file system
Finished partitioning on disk0s2 Macintosh HD
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 250.0 GB disk0s2
3: Apple_Boot 650.0 MB disk0s4
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 250.0 GB disk0s2
3: Apple_Boot 650.0 MB disk0s4
MBP-de-Benjamin:~ benjaminmerlin$
3: Apple_Boot 650.0 MB disk0s4
sudo gpt show disk0
MBP-de-Benjamin:~ benjaminmerlin$ sudo gpt show disk0
Password:
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 488293392 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
488703032 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
489972568 262151
490234719 32 Sec GPT table
490234751 1 Sec GPT header
MBP-de-Benjamin:~ benjaminmerlin$