Blog Home
Updated: 2023 Oct 09

How to merge partitions using terminal commands on Mac

  1. Open the "Terminal" application.
  2. Enter the following command to list your hard drive and its partitions:

    diskutil list
    
  3. Erase a storage device.

    sudo diskutil eraseVolume "Free Space" %noformat% /dev/disk2s1
    sudo diskutil eraseVolume "Free Space" %noformat% /dev/disk2s2
    
  4. Format an external disk that you can use with both a Microsoft Windows-based computer and a Mac. 79437221b5bb0e159a3dc886f141d59b.png
  5. reference:

    [1]. Erase and reformat a storage device in Disk Utility on Mac

    [2]. Format a disk for Windows computers in Disk Utility on Mac

    [3]. File system formats available in Disk Utility on Mac

    [4]. Partition schemes available in Disk Utility on Mac

    [5]. 如何在Mac上合并两个分区

Comments:

Email questions, comments, and corrections to hi@smartisan.dev.

Submissions may appear publicly on this website, unless requested otherwise in your email.