2.0 KiB
2.0 KiB
Creating a Bootable Debian USB Drive on macOS
Prerequisites:
- Debian ISO image (downloaded from https://www.debian.org/)
- USB drive with sufficient capacity (at least 4GB)
- macOS computer
Steps:
- Identify the USB drive's disk identifier:
- Open Terminal and run
diskutil list. - Locate the entry for your USB drive and note its disk identifier (e.g.,
disk4).
- Unmount the USB drive:
- Run
diskutil unmountDisk /dev/diskX(replaceXwith the correct disk identifier).
- Write the ISO to the USB drive:
-
With progress bar:
sudo dd if=/path/to/debian.iso of=/dev/rdiskX bs=1m status=progress -
Without progress bar:
sudo dd if=/path/to/debian.iso of=/dev/rdiskX bs=1m -
Replace
/path/to/debian.isowith the actual path to your ISO file.
- Wait for the process to complete:
- This might take a few minutes, depending on the ISO size and USB speed.
- Verify the process (optional):
- Run
diskutil listagain to check if the ISO was written correctly.
- Eject the USB drive:
- Run
diskutil eject /dev/diskX.
Additional notes:
- Password prompt: You'll be prompted for your password when using
sudo. - Double-check disk identifier: Ensure you're using the correct one to avoid overwriting data.
- Errors: If you encounter errors, carefully review the commands and disk identifiers. Seek assistance if needed.
- Progress bar options:
status=progress: Basic progress bar within theddcommand.pv: Pipe the output ofddthroughpvfor a visual progress bar.dialog: Combinepvwithdialogfor a more interactive progress bar.
Booting from the USB drive:
- Insert the USB drive into the target computer.
- Start or restart the computer.
- Hold down the Option (⌥) key while booting.
- Select the USB drive labeled "EFI Boot" from the Startup Manager.
- The Debian installation process will begin.