This short tutorial explains how to run DiskWarrior 5 from the macOS recovery without using a USB key (ideal for helping someone over the phone).
- Boot the Macintosh into recovery mode (Cmd+R at boot)
- Ensure the Macintosh is connected to the internet
- Open a terminal
- Create a RAM disk (I chose a 1GB size)
diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://2097152`
- Unzip
DiskWarrior.dmgfrom theDiskWarrior5.zipAlsoft sent you, and upload it to some place that can be accessed via unsecured HTTP (I used transfer.sh) cdinto the RAM disk and download DiskWarrior there:
cd /Volumes/RAM\ Disk/ && curl http://my.url.example.com/DiskWarrior.dmg -O
- Mount the disk image
hdiutil attach /Volumes/RAM\ Disk/DiskWarrior.dmg
- Copy DiskWarrior.app into the RAM disk
cp -r /Volumes/DM/Installer\ Items/DiskWarrior.app /Volumes/RAM\ Disk/
- Start DiskWarrior from the RAM disk
/Volumes/RAM \Disk/DiskWarrior.app/Contents/MacOS/DiskWarrior