macbook刪除windows后合並磁盤分區


由於我直接使用磁盤工具格式化了windows分區,不能合並到主分區

打開終端,列出卷

$ diskutil list
可以看到我給windows卷格式化后是 disk2 90.2G
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk1 910.0 GB disk0s2
3: Apple_APFS Container disk2 90.2 GB disk0s3

/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +910.0 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD - 數據 892.2 GB disk1s1
2: APFS Volume Preboot 287.5 MB disk1s2
3: APFS Volume Recovery 652.6 MB disk1s3
4: APFS Volume VM 1.1 GB disk1s4
5: APFS Volume Macintosh HD 14.9 GB disk1s5
6: APFS Snapshot com.apple.os.update-... 14.9 GB disk1s5s1

/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +90.2 GB disk2
Physical Store disk0s3



刪除卷

$ diskutil apfs deleteContainer disk2

Started APFS operation on disk2
Deleting APFS Container with all of its APFS Volumes
Unmounting Volumes
Deleting Volumes
Deleting Container
Wiping former APFS disks
Switching content types
1 new disk created or changed due to APFS operation
Disk from APFS operation: disk0s3
Finished APFS operation on disk2
Removing disk0s3 from partition map

檢查卷
發現多了(free space) 90.2G
$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk1 910.0 GB disk0s2
(free space) 90.2 GB -

/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +910.0 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD - 數據 892.2 GB disk1s1
2: APFS Volume Preboot 287.5 MB disk1s2
3: APFS Volume Recovery 652.6 MB disk1s3
4: APFS Volume VM 1.1 GB disk1s4
5: APFS Volume Macintosh HD 14.9 GB disk1s5
6: APFS Snapshot com.apple.os.update-... 14.9 GB disk1s5s1

合並分區
再進入磁盤管理,點擊mac分區后,你會發現+ 可以點了,點擊合並分區后等5分鍾左右,中間會卡死一下。

 

 



免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM