Shrink your iPhone or iPad's storage to make room for Linux, and grow it back.
Back up your device first.
You need a Mac or a Linux PC (Python 3.9+) and a USB cable. Download the
latest release, unzip it and
open Terminal in the ResizeAPFS-v… folder. Then pick the method for your device:
| Method | Devices | iOS/iPadOS |
|---|---|---|
| DFU (palera1n) | A8 to A11 | 15 or later |
| DFU (checkra1n) | A7 to A11 | 12 to 14 |
| Dopamine, no DFU | A8 to A13 | 15.0 to 18.7.1, 26.0 to 26.0.1 |
| A14 and later | 15.0 to 17.3.1 |
- Run
./resize-apfs bootand answer which iOS version the device runs. - Put the device in DFU mode when asked.
- Unlock the device after iOS starts. Resize APFS opens by itself.
- On iOS 12 to 14: when you are done, type
donein the terminal to remove the app.
If the boot fails, enter DFU and run it again; it often takes a few tries. Stuck at the Apple logo: unplug the cable briefly. Close browsers that use WebUSB first.
- Connect the device, unlock it and trust the computer.
- Run
./resize-apfs boot --dopamine. - Sign in with your Apple ID when asked; it goes only to Apple. On a Mac signed in to Xcode, that account is used. Resize APFS is installed on the device.
- Turn on Developer Mode: Settings > Privacy & Security > Developer Mode. It appears only now. The device restarts; confirm Turn On.
- Trust your Apple ID on the device: Settings > General > VPN & Device Management, then press Enter in the terminal.
- Open Resize APFS and tap Continue. The screen restarts; unlock the device when it comes back, and Resize APFS opens again and shows your storage. If it does not open again by itself, open it within 20 seconds.
The device needs an internet connection for step 6. After a restart of the device, just open Resize APFS again. A free Apple ID signs the app for 7 days; run step 2 again when it stops opening.
Storage access comes from Dopamine, which the app carries inside.
Choose Adjust size, enter the new size, confirm, and wait for Completed and verified. Large shrinks run in steps; you can close the app, but don't restart the device until it is done.
| Device | iOS/iPadOS | Method |
|---|---|---|
| iPhone XR | 18.3.2 | Dopamine |
| iPad (6th generation) | 17.7.11 | Dopamine |
| iPhone 8 Plus | 16.7.16 | Dopamine |
| iPhone X (d221) | 16.7 | DFU (palera1n), Linux host |
| iPad (6th generation) | 17.7.11 | DFU (palera1n) |
| iPad mini 4 (J96) | 15.8.3 | DFU (palera1n), Linux host |
| iPad Air (J71) | 12.5.3 | DFU (checkra1n) |
| iPod touch 6 (N102) | 12.4 | DFU (checkra1n) |
Open ResizeAPFS.xcodeproj, or run ./scripts/run-simulator.sh. Host tests:
swift test -j 2. Build a release ZIP with ./scripts/build-device.sh,
./scripts/build-device-ios12.sh and ./scripts/package-release.sh preview.
Details: Device/README.md.
Pull requests are checked with the host tests (Check workflow). To release, raise
the version in VERSION in a pull request. When it is merged, the Publish workflow
builds that commit, tags it vX.Y.Z and publishes the release with all assets, as
the latest, in about 15 minutes. A push to main whose version is already tagged
releases nothing. A hand-pushed v* tag still builds and publishes as before.
MIT. See third-party notices. Built on prior work from Hoolock Linux and palera1n, including jbinit.


