baicai

白菜

一个勤奋的代码搬运工!

Creating a Debian USB boot disk on Mac system

Creating a Bootable USB Flash Drive on Mac
在 Mac 系统中制作 U 盘启动盘

In Mac systems, you don't need to download any additional tools to create a Linux bootable disk. Here's how:

Download the Debian DVD Image File#

Download the Debian CD/DVD image via HTTP/FTP: https://www.debian.org/CD/http-ftp/

amd64 DVD edition: https://cdimage.debian.org/debian-cd/current/amd64/iso-dvd/

Format the USB Drive#

Open the built-in Disk Utility in the system, insert the USB drive, and format it with the following settings:
Format: Mac OS Extended (Journaled)
Scheme: GUID Partition Map

Unmount the USB Disk#

# Execute the following commands in Terminal
# List the disks and find the identifier for your USB drive
diskutil list
# Output example: You can see the USB drive as /dev/disk2
/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *32.0 GB    disk2
   1:                       0xEF                         6.4 MB     disk2s2

 
# Unmount the USB drive
diskutil unmountDisk /dev/disk2

Import the Image#

# Execute the following commands
# if is the path of the image file
# of is the destination disk for import
# bs is the block size for read/write operations, too small will increase I/O and decrease efficiency, generally 1m~2m is sufficient.
sudo dd if=~/Downloads/debian-11.5.0-amd64-DVD-1.iso of=/dev/disk2 bs=2m
# or for USB drives, use rdisk2 instead
sudo dd if=~/Downloads/debian-11.5.0-amd64-DVD-1.iso of=/dev/rdisk2 bs=2m

  • if is the input file.
  • of is the output file.
  • bs is the transfer speed.

Wait for the Import to Complete#

This import process may take some time and could be quite long. Please be patient and wait.
Wait until you see "records in, records out" to indicate success.

Eject the USB Drive#

When the process is almost complete, the system may display a "Disk Not Recognized" message. Do not take any action yet. Wait for the Terminal dd command to finish executing, then use the following command to eject the USB drive.

diskutil eject /dev/disk2

After ejecting, select "Ignore" when prompted by the system.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.