To create a bootable USB stick from a DVD ISO file on a Mac, follow these steps using the Terminal:
-
First, plug in your USB drive and make sure it's formatted as MS-DOS (FAT32).
-
Open Terminal (found in Applications > Utilities).
-
Identify the name of your USB drive. Run the following command and look for your USB drive's name:
diskutil list
- Unmount the USB drive using its identifier from the previous command. Replace
DiskXwith the identifier of your USB drive:
diskutil unmountDisk /dev/DiskX
- Now, create a temporary directory:
mkdir /tmp/usb-install
- Mount the USB drive at the temporary directory:
diskutil mount /dev/DiskXs1 /tmp/usb-install
- Write the ISO file to the USB drive:
hdiutil convert /path/to/your.iso -format UDRW -o /tmp/usb-install/install.dmg
- Mount the DMG file:
hdiutil attach /tmp/usb-install/install.dmg
- Copy the necessary files from the mounted DMG to the USB drive:
cp -R /Volumes/Macintosh\ HD/Applications/Install\ macOS.app /tmp/usb-install/
- Unmount the DMG file:
hdiutil detach /Volumes/Install\ macOS
- Eject the USB drive:
diskutil eject /dev/DiskX
Now, you should have a bootable USB stick with the contents of the DVD ISO file.
References: