Page:
Delete an Installation
Pages
"When will Asahi Linux be done?"
Apple Platform Security Crash Course
Apple Silicon Subsystems
Broken Software
Codenames
Delete an Installation
Devices
Differences with other platforms
Display Controllers
Distro:Boot process guide
Distro:Differences from Arch Linux ARM
FAQ
FW:ADT
Feature Support
Glossary
HW: Clocks
HW: SPRR and GXF
HW:ACE3
HW:AGX
HW:AIC
HW:ANE
HW:AOP
HW:APCIe
HW:ARM System Registers Dumps
HW:ARM System Registers
HW:ASC
HW:AVD
HW:Apple Instructions
HW:CPU debug registers
HW:Debug USB
HW:GPIO
HW:MacBook Pro keyboard backlight (FPWM0)
HW:Memory map
HW:SEP
HW:SMC
HW:SMP spin up
HW:USB PD
HW:WDT
Home
Installing Gentoo with LiveCD
Introduction to Apple Silicon
Kernel config notes for distros
Low level serial debug
M1 Series Feature Support
M1 vs. PC Boot
M2 Series Feature Support
M3 Series Feature Support
Open OS Ecosystem on Apple Silicon Macs
Partitioning cheatsheet
Project:References
RE:Kernelcache
Reference Asahi kernel config
SW:AGX driver notes
SW:Alternative Distros
SW:Boot
SW:DT bindings
SW:Getting started
SW:Hypervisor
SW:Keyboard Layouts
SW:MachO Boot Protocol
SW:NVRAM
SW:Speakers Test Cases
SW:Speakers
SW:Storage
SW:Ubuntu Asahi Gambas
SW:Ubuntu Asahi Godot
SW:Ubuntu Asahi Mesa
SW:Ubuntu Asahi Qemu
Software known to have issues with 16k page size
Tethered Boot Setup (For Developers)
Tethered boot setup on macOS
Trivia
U Boot
Undoing early speaker support hacks
Yaks in need of shaving
m1n1:Developer Guide
m1n1:User Guide
macOS Sonoma Boot Failures
perf on M1 systems
3
Delete an Installation
kkeian edited this page 2025-01-09 19:40:01 -05:00
This is for default vanilla Asahi installs. These steps do not apply for custom partitioning setups.
Do not use Diskutil GUI
- Find the 3 partitions that Asahi installer creates.
Run the installer script and exit after you get to the disk information.
curl https://alx.sh | sh
Example disk information:
Partitions in system disk (disk0):
1: APFS [Macintosh HD] (380.00 GB, 6 volumes)
OS: [B ] [Macintosh HD] macOS v12.3 [disk3s1, D44D4ED9-B162-4542-BF50-9470C7AFDA43]
2: APFS [Asahi Linux] (2.50 GB, 4 volumes)
OS: [ *] [Asahi Linux] incomplete install (macOS 12.3 stub) [disk4s2, 53F853CF-4851-4E82-933C-2AAEB247B372]
3: EFI (500.17 MB)
4: Linux Filesystem (54.19 GB)
5: (free space: 57.19 GB)
6: APFS (System Recovery) (5.37 GB, 2 volumes)
OS: [ ] recoveryOS v12.3 [Primary recoveryOS]
[B ] = Booted OS, [R ] = Booted recovery, [? ] = Unknown
[ *] = Default boot volume
The partitions that Asahi installs are Asahi Linux
, EFI
, and Linux Filesystem
.
Note down the disk#s#
beside Asahi Linux line.
- Delete the "Asahi APFS container"
diskutil apfs deleteContainer disk<num-here>
- Find the partition numbers of EFI and Linux Filesystem partitions.
diskutil list
Example output:
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.3 GB disk0
1: Apple_APFS_ISC Container disk1 524.3 MB disk0s1
2: Apple_APFS Container disk4 362.6 GB disk0s2
(free space) 2.5 GB -
3: EFI EFI - FEDOR 524.3 MB disk0s4
4: Linux Filesystem 1.1 GB disk0s5
5: Linux Filesystem 127.7 GB disk0s6
6: Apple_APFS_Recovery Container disk3 5.4 GB disk0s7
/dev/disk4 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +362.6 GB disk4
Physical Store disk0s2
1: APFS Volume Macintosh HD 11.2 GB disk4s1
2: APFS Snapshot com.apple.os.update-... 11.2 GB disk4s1s1
3: APFS Volume Preboot 6.9 GB disk4s2
4: APFS Volume Recovery 1.0 GB disk4s3
5: APFS Volume Data 287.6 GB disk4s5
6: APFS Volume VM 20.5 KB disk4s6
- Delete the EFI and Linux Filesystem partitions
diskutil eraseVolume free free disk<num-here>s<num-here>
diskutil eraseVolume free free disk<num-here>s<-other-num-here>
Resize MacOS to fill disk again
- Get the logical Disk number corresponding to MacOS installation
diskutil list
Example output:
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.3 GB disk0
1: Apple_APFS_ISC Container disk1 524.3 MB disk0s1
2: Apple_APFS Container disk4 362.6 GB disk0s2
(free space) 2.5 GB -
3: EFI EFI - FEDOR 524.3 MB disk0s4
4: Linux Filesystem 1.1 GB disk0s5
5: Linux Filesystem 127.7 GB disk0s6
6: Apple_APFS_Recovery Container disk3 5.4 GB disk0s7
/dev/disk4 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +362.6 GB disk4
Physical Store disk0s2
1: APFS Volume Macintosh HD 11.2 GB disk4s1
2: APFS Snapshot com.apple.os.update-... 11.2 GB disk4s1s1
3: APFS Volume Preboot 6.9 GB disk4s2
4: APFS Volume Recovery 1.0 GB disk4s3
5: APFS Volume Data 287.6 GB disk4s5
6: APFS Volume VM 20.5 KB disk4s6
In the above example the /dev/disk# (synthesized)
line which has Macintosh HD listed under it
is the disk to note down. In this example you would expand logical disk4
- Resize - expand logical volume to fill the free space.
diskutil apfs resizeContainer disk<num-here> 0
Errors? Need More Background Information?
Feature Support:
Project related:
Platform documentation:
For users:
For developers:
- Yaks in need of shaving (HELP WANTED!)
- Tethered Boot Setup (For Developers)
- m1n1:User Guide Boot loader
- Hypervisor
- U-Boot
- Devicetree bindings
- Open OS ecosystem on Apple Silicon Macs
Wiki for the Asahi Linux project: https://asahilinux.org/