Skip to content

Instantly share code, notes, and snippets.

@jeanthom
Last active October 18, 2021 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeanthom/84fa9bc1fad7815758c988fd8e87470a to your computer and use it in GitHub Desktop.
Save jeanthom/84fa9bc1fad7815758c988fd8e87470a to your computer and use it in GitHub Desktop.
Using DiskWarrior from macOS recovery

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).

  1. Boot the Macintosh into recovery mode (Cmd+R at boot)
  2. Ensure the Macintosh is connected to the internet
  3. Open a terminal
  4. Create a RAM disk (I chose a 1GB size)
diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://2097152`
  1. Unzip DiskWarrior.dmg from the DiskWarrior5.zip Alsoft sent you, and upload it to some place that can be accessed via unsecured HTTP (I used transfer.sh)
  2. cd into the RAM disk and download DiskWarrior there:
cd /Volumes/RAM\ Disk/ && curl http://my.url.example.com/DiskWarrior.dmg -O
  1. Mount the disk image
hdiutil attach /Volumes/RAM\ Disk/DiskWarrior.dmg
  1. Copy DiskWarrior.app into the RAM disk
cp -r /Volumes/DM/Installer\ Items/DiskWarrior.app /Volumes/RAM\ Disk/
  1. Start DiskWarrior from the RAM disk
/Volumes/RAM \Disk/DiskWarrior.app/Contents/MacOS/DiskWarrior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment