Am vazut ca de cele mai multe ori raspunsul la intrebarile “How can I merge primary APFS partition with other empty APFS partition?” sau “Cum stergem partitia BOOTCAMP si adaugam volumul unui container APFS existent?” este reinstalarea toatala a macOS cu formatarea HDD-ului.
Ei bine, sunt si alte solutii mult mai simple si care nu necesita o reinstalare de sistem ce ar putea sa dureze cateva ore cu aplicatii si setari personalizate.
In cazul in care ati folosit Boot Camp Assistant pentru a va instala un sistem de operare paralel (Windows7, Windows 10, etc), pe macOS a aparut o noua partitie numita BOOTCAMP. Aceasta partitie tine de cele mai multe ori sistemul de operare paralel, ea fiind creata in timpul procesului de instalare din spatiul partitiei primare. Master. Daca doriti sa renuntati la sistemul de operare paralel instalat pe Mac, MacBook si vreti ca spatiul ocupat de partia “BOOTCAMP” sa fie sters si adaugat partitiei macOS, atunci aveti de urmat un tutorial simplu care va ocupa mult mai putin timp decat sa reinstalati intregul sistem de operare macOS.
Cum putem sterge o paritite si cum adaugam spatiul ramas liber unei partitii APFS – Resize APFS Container
In scenariul nostru avem de a face cu un hard de 250 GB impartit intr-o partite (container) APFS principala de 199 GB (Apple_APFS Container disk1 – disk0s2) si una pe care am avut BOOTCAMP de 50.7 GB (Apple_HFS Untitled – disk0s3) ce urmeaza sa fie stearsa, iar spatiul ei de 50.7 GB sa fie adaugat partitiei principale. La final vom obtine o singura partitie de 250GB.
1. Stergem volumul disk0s3 fara sa-l formatam. In acest fel vom obtine un spatiu liber pe disk pe care ulterior il putem adauga la disk0s2.
sudo diskutil eraseVolume "Free Space" %noformat% /dev/disk0s3
2. Alocam partitiei APFS principale spatiul ramas liber pe disk in urma operatiunii de mai sus.
diskutil apfs resizeContainer disk0s2 0
La final o sa obtinem o singura partitie “macOS” / disk0s2 de 250 GB.
In situatia in care aveti mai multe partitii trebuie sa fiti foarte atenti ce anume stergeti. Identificati corect numele partitiei pe care doriti sa o stergeti, apoi executati linia de comanda. Pentru vizualizarea tuturor partiilor si volumelor disponibile, executati in Terminal comanda: diskutil list.
Acest tutorial este facut facut pe o versiune beta a macOS Mojave, insa este compatibil si macOS High Sierra.
I tried what you suggested your port, but can’t seem to get it done. My Mac has 3 main partitions (drives I can see mounted in the desktop). Mojave, High Sierra and Bootcamp. I want to keep Bootcamp as it is, but I want to merge the High Sierra one into the new Mojave partition. The old High Sierra partition is the biggest, 2.9 TB vs 200 GB of Mojave.
diskutier list gives me lots of partitions and to make things worst, each partition (Mojave and Sierra) have recovery mode partitions and I can’t get rid of the one in Sierra either.
After using diskutil list in terminal this is what I get:
Last login: Mon Oct 15 11:18:13 on console
iMac-de-iMac5K:~ imac5k$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *121.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk2 121.1 GB disk0s2
/dev/disk1 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *3.0 TB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_APFS Container disk2 2.7 TB disk1s2
3: Apple_APFS Container disk3 199.4 GB disk1s3
4: Microsoft Basic Data BOOTCAMP 70.9 GB disk1s4
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme – +2.9 TB disk2
Physical Stores disk0s2, disk1s2
/dev/disk3 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme – +199.4 GB disk3
Physical Store disk1s3
1: APFS Volume Macintosh HD 140.1 GB disk3s1
2: APFS Volume Preboot 45.6 MB disk3s2
3: APFS Volume Recovery 512.4 MB disk3s3
4: APFS Volume VM 4.3 GB disk3s4
iMac-de-iMac5K:~ imac5k$
Any advice?, it’s driving me crazy not knowing how to merge everything without a full reinstall/format…
Hi, thank you for this amazing tutorial. Worked like a charm!
Большое тебе, человеческое спасибо!!!
Dzięki bracie, udało się..nawet taki zgred jak jak to zrobił..
Olá, tentei fazer o que você sugeriu mas não consegui realocar o espaço liberado na partição principal.
Meu disco inicialmente (diskutil 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 Untitled 939.5 MB disk0s2
3: Apple_HFS Untitled 939.5 MB disk0s3
4: Apple_APFS Container disk1 248.6 GB disk0s4
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme – +248.6 GB disk1
Physical Store disk0s4
1: APFS Volume Macintosh HD 190.8 GB disk1s1
2: APFS Volume Preboot 44.9 MB disk1s2
3: APFS Volume Recovery 510.3 MB disk1s3
4: APFS Volume VM 2.1 GB disk1s4
Removi os volumes disk0s2 e disk0s3:
sudo diskutil eraseVolume “Free Space” %noformat% /dev/disk0s2
sudo diskutil eraseVolume “Free Space” %noformat% /dev/disk0s3
E meu disco ficou da seguinte maneira:
diskutil 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_APFS Container disk1 248.6 GB disk0s4
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme – +248.6 GB disk1
Physical Store disk0s4
1: APFS Volume Macintosh HD 190.8 GB disk1s1
2: APFS Volume Preboot 44.9 MB disk1s2
3: APFS Volume Recovery 510.3 MB disk1s3
4: APFS Volume VM 2.1 GB disk1s4
Porém ao executar o comando: diskutil apfs resizeContainer disk0s4 0, tenho o seguinte erro:
Started APFS operation
Error: -69743: The new size must be different than the existing size
Não consigo encontrar os (quase) 2gb que dos discos que apaguei, e nem alocar esse espaço livre na minha partição principal. Sabe como posso resolver?
마법의 주문 다른 건 전부 가짜 sudo diskutil eraseVolume “Free Space” %noformat% /dev/
Eres el puto amo!
Geniooooo!!!!!
Super util, probado con Catalina, muchas gracias !!
Спасибо!
Все получилось по вашей инструкции после кривой установки винды
Enfin une explication claire et efficace. On trouve plein de choses sur internet mais inutilisables et confondant container, partition, volume etc. MERCI !