Explanation: The command dd can be used to create a USB storage media from a disk image. The command dd is a low-level utility that can copy and convert data from one source to another, such as files, devices, or pipes. It can be used to create a bootable USB drive from an ISO image or a raw disk image. The syntax is: dd if=input of=output [options]. For example, to create a USB storage media from a disk image file named linux.img, the command would be:
dd if=linux.img of=/dev/sdb
This will copy the contents of linux.img to the device /dev/sdb, which is assumed to be the USB drive. The device name may vary depending on the system, so it is important to check the correct device name beforerunning the command. The command dd can also accept various options, such as bs to specify the block size, status to show the progress, or conv to apply conversions to the data. For example, to create a USB storage media from an ISO image file named linux.iso, with a block size of 4 MB and a progress indicator, the command would be:
dd if=linux.iso of=/dev/sdb bs=4M status=progress
The command dd is also known as "disk destroyer" because it can overwrite data without warning or confirmation. Therefore, it is advisable to use it with caution and backup any important data before using it. The other options are not correct because:
- gdisk is a command to create and manipulate GUID partition tables (GPT), but it does not create a USB storage media from a disk image1.
- cc is a command to compile C programs, but it does not create a USB storage media from a disk image2.
- fdisk is a command to create and manipulate DOS partition tables, but it does not create a USB storage media from a disk image3.
- mount is a command to mount file systems, but it does not create a USB storage media from a disk image4. References:
- How to Create a Bootable Linux USB Flash Drive, the Easy Way
- dd(1) — Linux manual page
- How to use the dd command in Linux - TechRepublic
- LPI Exam 101 Detailed Objectives, section 1.101.3