Illumadmin

Subscribe
Archives
March 15, 2024

Burn an ISO image (or .usb) to a USB device using the 'dd' command

Logging in as root, then:

1) Insert a USB key/device.

2) Identify your key/device and delete the partitions.

format -e

- Select your key (enter the index number displayed in front)

In the format menu that appears, write fdisk

fdisk

- Now delete each partition (this is choice 3).

- Repeat until there are no more partitions.

- Create a partition (choice 1). Type 4 (OTHER).

Enter 100% (so that your partition takes up 100% of the disk's capacity).

- Exit fdisk with choice 6 to save your changes.

- Exit format by typing:

quit

3) Burn an .iso file to the USB key.device.

Identify the name of the USB key (c?t0d0) (if you don't remember from the previous step).

iostat -En

For example, we will assume it is the key c2t0d0

dd if=/path/to/the/image.iso of=/dev/dsk/c2t0d0p0 bs=4194304

(don't forget the p0 at the end of c2t0d0)

Don't miss what's next. Subscribe to Illumadmin:
This email brought to you by Buttondown, the easiest way to start and grow your newsletter.