sudo diskutil eraseVolume free NULL /dev/disk0s4
sudo diskutil eraseVolume free NULL /dev/disk0s5
sudo diskutil eraseVolume free NULL /dev/disk0s6
diskutil resizeVolume disk0s2 0b
$ sudo diskutil list
Password:
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *240.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS EL CAPITAN 188.9 GB disk0s2
3: Apple_HFS Recovery HD 650.0 MB disk0s3
[code]$ sudo gpt -r -vv show /dev/disk0
Password:
gpt show: /dev/disk0: mediasize=240057409536; sectorsize=512; blocks=468862128
gpt show: /dev/disk0: PMBR at sector 0
gpt show: /dev/disk0: Pri GPT at sector 1
gpt show: /dev/disk0: Sec GPT at sector 468862127
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 368878480 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
369288120 262144
369550264 1269536 3 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
370819800 98042295
468862095 32 Sec GPT table
468862127 1 Sec GPT header
$ diskutil cs list
No CoreStorage logical volume groups found
370819800 98042295
3: Apple_HFS Recovery HD 650.0 MB disk0s3
369288120 262144
sudo diskutil umount force disk0s3 ; sudo asr adjust --t /dev/disk0s3 --settype "Apple_Boot" ; diskutil resizeVolume disk0s2 0b ; diskutil list disk0
sudo diskutil umount force disk0s3 ; sudo asr adjust --t /dev/disk0s3 --settype "Apple_Boot" ; diskutil resizeVolume disk0s2 0b ; diskutil list disk0
$ sudo diskutil umount force disk0s3 ; sudo asr adjust --t /dev/disk0s3 --settype "Apple_Boot" ; diskutil resizeVolume disk0s2 0b ; diskutil list disk0
Password:
Volume Recovery HD on disk0s3 force-unmounted
Fsck /dev/disk0s3 ....10....20....30....40....50....60....70....80....90....100
Adjust completed successfully
Resizing to full size (fit to fill)
Started partitioning on disk0s2 EL CAPITAN
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 extended attributes file
Checking volume bitmap
Checking volume information
Checking volume information
The volume EL CAPITAN appears to be OK
Checking volume information
The volume EL CAPITAN appears to be OK
The volume EL CAPITAN appears to be OK
The volume EL CAPITAN appears to be OK
The volume EL CAPITAN appears to be OK
The volume EL CAPITAN appears to be OK
The volume EL CAPITAN appears to be OK
The volume EL CAPITAN appears to be OK
The volume EL CAPITAN appears to be OK
File system check exit code is 0
Resizing
Waiting for the disks to reappear
Finished partitioning on disk0s2 EL CAPITAN
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *240.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS EL CAPITAN 239.1 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s4
/dev/disk4 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *500.1 GB disk4
1: Apple_HFS Trekstor1 209.7 GB disk4s1
imac-de-aurelie:~ aurelieguthmann$ diskutil resizeVolume disk4s1 0b
Resizing to full size (fit to fill)
Error starting volume resize: Couldn't modify partition map (-69874)
df -H /Vol*/Trek*
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *323.2 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Mac HD 63.6 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
administrateur$ sudo diskutil cs list
Password:
No CoreStorage logical volume groups found
diskutil resizeVolume disk0s2 0b
Resizing to full size (fit to fill)
Started partitioning on disk0s2 Mac HD
Verifying the disk
Verifying file system
Volume could not be unmounted
Using live mode
Performing fsck_hfs -fn -l -x /dev/rdisk0s2
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 Mac HD appears to be OK
File system check exit code is 0
Restoring the original state found as mounted
Resizing
Modifying partition map
Copying booter
Growing file system
Finished partitioning on disk0s2 Mac HD
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *323.2 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Mac HD 322.3 GB disk0s2
3: Apple_Boot 650.0 MB disk0s4