Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Recovering SSD Storage to my main macOS partition

I recently installed a linux partition using Asahi Linux on my MacBook Air 2022, I split my SSD in half, such that 110GB went to the linux partition and the rest to the Linux partition. However, when I decided to resize these partitions using diskutility, I couldn't find the Linux partition, and deleted one that seemed like it. interestingly enough, I couldn't find any other 110GB partition other than the macOS one, so I deleted one that was only registered to have 2.5GB but wasn't really related to the macOS disk.


Nonetheless, I still can't seem to find the 110GB partition that I should delete and the Linux disk disappeared from my booting options. My main macOS disk still has 110GB of storage and I wish to go back to 251GB


Attached are DiskUtil screenshotsThank you for the support

MacBook Air, macOS 13.4

Posted on Oct 18, 2023 6:15 AM

Reply
Question marked as Best reply

Posted on Oct 18, 2023 7:07 AM

Thanks!


It seems that you might have installed Asahi Linux twice? It looks like all of the Asahi partitions are intact but there's 105 GB of unclaimed space on your drive.


Assuming your disk identifiers remain the same (run "diskutil list" again), complete these steps to uninstall Asahi Linux and reclaim all of your drive space back. This erases any data stored in Asahi Linux.


  1. Back up your Mac, ideally using Time Machine.
  2. Eject and disconnect your Kingston USB drive.
  3. Delete the stub APFS container for Asahi Linux: diskutil apfs deleteContainer disk0s3
  4. Delete the hidden EFI partition: diskutil erasevolume free free disk0s4
  5. Delete the Linux root filesystem: diskutil erasevolume free free disk0s5
  6. It looks like you're running from normal macOS, and can skip this step. However, if you're in macOS Recovery, make sure the Data volume is unlocked using your login password: diskutil apfs unlock disk4s6
  7. Resize your macOS APFS container to full: diskutil apfs resizeContainer disk0s2 0


At this point, your Mac should now have the full 250 GB of storage returned to it.

Similar questions

5 replies
Question marked as Best reply

Oct 18, 2023 7:07 AM in response to torakoishi

Thanks!


It seems that you might have installed Asahi Linux twice? It looks like all of the Asahi partitions are intact but there's 105 GB of unclaimed space on your drive.


Assuming your disk identifiers remain the same (run "diskutil list" again), complete these steps to uninstall Asahi Linux and reclaim all of your drive space back. This erases any data stored in Asahi Linux.


  1. Back up your Mac, ideally using Time Machine.
  2. Eject and disconnect your Kingston USB drive.
  3. Delete the stub APFS container for Asahi Linux: diskutil apfs deleteContainer disk0s3
  4. Delete the hidden EFI partition: diskutil erasevolume free free disk0s4
  5. Delete the Linux root filesystem: diskutil erasevolume free free disk0s5
  6. It looks like you're running from normal macOS, and can skip this step. However, if you're in macOS Recovery, make sure the Data volume is unlocked using your login password: diskutil apfs unlock disk4s6
  7. Resize your macOS APFS container to full: diskutil apfs resizeContainer disk0s2 0


At this point, your Mac should now have the full 250 GB of storage returned to it.

Oct 18, 2023 6:31 AM in response to torakoishi

Hi torakoishi,


Asahi Linux relies on three partitions to boot successfully:


  • A hidden EFI partition,
  • A separate APFS container containing a "stub" macOS, and
  • The Linux root partition (formatted as ext4).


It looks like you correctly deleted the Linux root partition, along with the volume group inside the stub container, but the stub container and the hidden EFI partition remain. Disk Utility doesn't show EFI partitions to the user, so you'll need to use Terminal to complete the uninstall.


To help me understand your disk layout, can you please complete these steps:


  1. Quit Disk Utility.
  2. Open Terminal:
    1. If you're running macOS, it's located in Applications -> Utilities.
    2. If you're in macOS Recovery, select Utilities from the top menu bar, then choose Terminal.
  3. In Terminal, type "diskutil list" without the quotes and hit Enter (Return).
  4. Post the full output here.

Oct 18, 2023 6:50 AM in response to Encryptor5000

/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *251.0 GB   disk0
   1:             Apple_APFS_ISC Container disk1         524.3 MB   disk0s1
   2:                 Apple_APFS Container disk4         110.0 GB   disk0s2
   3:                 Apple_APFS Container disk2         2.5 GB     disk0s3
   4:                        EFI EFI - EDEN              500.2 MB   disk0s4
   5:           Linux Filesystem                         27.0 GB    disk0s5
                    (free space)                         105.1 GB   -
   6:        Apple_APFS_Recovery Container disk3         5.4 GB     disk0s6

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

/dev/disk4 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +110.0 GB   disk4
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            9.1 GB     disk4s1
   2:              APFS Snapshot com.apple.os.update-... 9.1 GB     disk4s1s1
   3:                APFS Volume Preboot                 4.7 GB     disk4s2
   4:                APFS Volume Recovery                799.3 MB   disk4s3
   5:                APFS Volume Data                    38.2 GB    disk4s5
   6:                APFS Volume VM                      20.5 KB    disk4s6

/dev/disk5 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *123.7 GB   disk5
   1:                 DOS_FAT_32 KINGSTON                123.7 GB   disk5s1


The "EDEN" Disk is the one I named for Asahi Linux, now I'm wondering how I would delete it.

Recovering SSD Storage to my main macOS partition

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.