Skip to content

Ubuntu Asahi installer fails with "Not enough available space to resize" after removing old Asahi Linux partitions #423

@lou483

Description

@lou483

I'm trying to replace Asahi Linux with Ubuntu Asahi on my Apple Silicon Mac, but the installer is stuck in a loop showing "Not enough available space to resize."

What I've done:

  • Ran sudo ./RemoveAsahi.sh to remove Asahi Linux
  • Removed all Linux partitions from Asahi Linux using Disk Utility
  • Removed the EFI - ASAHI partition
  • Ran the Ubuntu Asahi installer with: curl -sL https://ubuntuasahi.org/install | sh

RemoveAsahi.sh output:

______________________________________________________________________________
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
===========================    REMOVE ASAHI LINUX   ==============================
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
______________________________________________________________________________
WARNING: Ensure you have backups before proceeding!
Current [disk0] layout:
______________________________________________________________________________
/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         152.5 GB   disk0s2
   3:                  Apple_HFS Temp                    524.3 MB   disk0s4
   4:                  Apple_HFS Temp                    939.5 MB   disk0s5
   5:                  Apple_HFS Temp                    90.9 GB    disk0s6
                    (free space)                         134.7 MB   -
   6:        Apple_APFS_Recovery Container disk3         5.4 GB     disk0s7
Continue with [disk0]? (y/n): y
No Asahi APFS UEFI partition found
______________________________________________________________________________
Final verification:
Current [disk0] layout:
______________________________________________________________________________
/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         152.5 GB   disk0s2
   3:                  Apple_HFS Temp                    524.3 MB   disk0s4
   4:                  Apple_HFS Temp                    939.5 MB   disk0s5
   5:                  Apple_HFS Temp                    90.9 GB    disk0s6
                    (free space)                         134.7 MB   -
   6:        Apple_APFS_Recovery Container disk3         5.4 GB     disk0s7
______________________________________________________________________________
WARNING: System may temporarily freeze during resize operation
Resize macOS System [disk0s2] to reclaim space? (y/n): y
Resizing [disk0s2]...
Started APFS operation
Error: Failed to resize [disk0s2]
______________________________________________________________________________
Operation completed

Current error from the Ubuntu Asahi installer:

Collecting system information...
  Product name: Mac mini (2023)
  SoC: Apple M2
  Device class: j473ap
  Product type: Mac14,3
  Board ID: 0x24
  Chip ID: 0x8112
  System firmware: iBoot-11881.101.1
  Boot UUID: 968BCCCF-70A3-4523-AA4F-0B32B9678DD7
  Boot VGID: 968BCCCF-70A3-4523-AA4F-0B32B9678DD7
  Default boot VGID: 968BCCCF-70A3-4523-AA4F-0B32B9678DD7
  Boot mode: macOS
  OS version: 15.4.1 (24E263)
  OS restore version: 24.5.263.0.0,0
  Main firmware version: 15.4.1 (24E263)
  No Fallback System Firmware / rOS
  SFR version: 24.5.263.0.0,0
  SystemRecovery version: 24.7.84.0.0,0 (15.6 24G84)


Collecting partition information...
  System disk: disk0

Collecting OS information...

Partitions in system disk (disk0):
  1: APFS [Macintosh HD] (152.50 GB, 7 volumes)
    OS: [B*] [Macintosh HD] macOS v15.4.1 [disk4s1s1, 968BCCCF-70A3-4523-AA4F-0B32B9678DD7]
  2: Apple_HFS (524.29 MB)
  3: Apple_HFS (939.52 MB)
  4: (free space: 134.22 MB)
  5: Apple_HFS (90.87 GB)
  6: (free space: 134.68 MB)
  7: APFS (System Recovery) (5.37 GB, 2 volumes)
    OS: [  ] recoveryOS v15.4.1 [Primary recoveryOS]

  [B ] = Booted OS, [R ] = Booted recovery, [? ] = Unknown
  [ *] = Default boot volume

Using OS 'Macintosh HD' (disk4s1s1) for machine authentication.
No actions available on this system.
No partitions have enough free space to be resized, and there is
nothing else to be done.

Current disk layout (diskutil list):

/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         152.5 GB   disk0s2
   3:                  Apple_HFS Temp                    524.3 MB   disk0s4
   4:                  Apple_HFS Temp                    939.5 MB   disk0s5
   5:                  Apple_HFS Temp                    90.9 GB    disk0s6
                    (free space)                         134.7 MB   -
   6:        Apple_APFS_Recovery Container disk3         5.4 GB     disk0s7

/dev/disk4 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +152.5 GB   disk4
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            18.0 GB    disk4s1
   2:              APFS Snapshot com.apple.os.update-... 18.0 GB    disk4s1s1
   3:                APFS Volume Preboot                 15.7 GB    disk4s2
   4:                APFS Volume Recovery                2.3 GB     disk4s3
   5:                APFS Volume Data                    80.8 GB    disk4s5
   6:                APFS Volume VM                      20.5 KB    disk4s6
   7:                APFS Volume Senza nome              901.1 KB   disk4s7

The RemoveAsahi.sh script failed to resize disk0s2 with the error "Error: Failed to resize [disk0s2]." After the script ran, the disk layout shows ~92.4 GB of space in temporary HFS partitions (disk0s4, disk0s5, disk0s6) plus 134.7 MB of unallocated free space, yet the Ubuntu Asahi installer refuses to resize and says "Available space: 0 B."

The installer doesn't offer options to choose which partition to resize or provide more granular control over partition selection. The temporary HFS partitions appear to be blocking the resize operation.

I need either a way to manually consolidate this space so both the RemoveAsahi script and the Ubuntu Asahi installer can recognize it, or information on how to properly prepare the disk for Ubuntu Asahi installation after the RemoveAsahi script fails.

Thank you for any guidance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions