Tutorials

How to use DD

How to use dd to burn an iso img to a USB stick.

Given an iso image /path/to/image.iso and a device /dev/sdx, which is the mount point of the USB stick, the following command copies the iso image onto the usb stick:

sudo dd bs=4M if=/path/to/image.iso of=/dev/sdx && sync

In the above command replace /path/to/image.iso with the actual path of the iso image to be copied. And replace /dev/sdx with the actual mount point of the usb stick. You can find out the mount point by looking at the output of lsblk:

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 698,7G  0 disk 
|-sda1   8:1    0 690,7G  0 part /
|-sda2   8:2    0     1K  0 part 
`-sda5   8:5    0   7,9G  0 part [SWAP]
sdc      8:32   1   7,6G  0 disk 
`-sdc1   8:33   1   7,6G  0 part 
sr0     11:0    1  1024M  0 rom

In the above example, the mount point of a 8GB usb stick is /dev/sdc.

Options: