Linux dd command to create a USB flash drive

Source: Internet
Author: User

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.