Linux dd command to create a USB flash drive
As the boot Disk of the USB flash drive, Ubuntu has a graphical interface tool Startup Disk Creator, which is easy to use, but the disadvantage is that it can only be used to create the boot Disk of Ubuntu, which is not supported by other systems. What should I do if I want to create a Fedora system boot disk under Ubuntu? It doesn't matter. What about dd commands!
The dd command is used to copy files. It can be automatically converted to the corresponding format. When we were playing Raspberry Pi, we also used the dd command to burn the system, remember?
$ Sudo dd bs = 4 M if = ~ /Raspberrypi/2014-09-09-wheezy-raspbian.img of =/dev/sdb & sync
This is the simple usage of the dd command, so we can also use it to burn a CD and boot a USB flash drive for other systems.
The files burned during Raspberry Pi are img-format system images, and it doesn't matter if we want to make a file in iso format for Linux releases such as Fedora, to solve the formatting problem, run the dd command.
$ Dd -- help
Usage: dd [OPERAND]...
Or: dd OPTION
Copy a file, converting and formatting according to the operands.
The process is similar. First, you need to umount your own USB flash drive:
$ Df-h
Filesystem Size Used Avail Use % Mounted on
/Dev/sdb1 3.8G 880 K 3.8G 1%/media/linc/87CD-7F86
$ Umount/dev/sdb1
Then run the dd command:
$ Sudo dd bs = 4 M if = ~ /Linux_images/Fedora-Live-Workstation-i686-21-5.iso of =/dev/sdb & sync
[Sudo] password for linc:
318 + 1 records in
318 + 1 records out
1336934400 bytes (1.3 GB) copied, 171.331 s, 7.8 MB/s
Note that the target in the dd command is sdb and there is no label.
This article permanently updates the link address: