101-500 practice question 6 of 30

Which of the following commands can be used to create a USB storage media from a disk image?

Full set: 246 questions
Answer options
A: gdisk
B: dd Correct answer
C: cc
D: fdisk
E: mount
Correct Answer:
B. dd
Explanation

The dd command is a core Linux utility for low-level copying and conversion of data. It reads from an input source and writes to an output destination block by block, making it ideal for creating exact copies of disk images. To create a bootable USB drive from an image file (e.g., image.iso), one would use a command like dd if=image.iso of=/dev/sdX, where /dev/sdX is the USB device. This directly writes the image's boot sectors and filesystems onto the target device.

Why Incorrect

A. gdisk is a text-mode partitioning tool for GUID Partition Table (GPT) disks; it manages partitions, but does not write disk images.
C. cc is the command to invoke the C compiler, used for software development, not disk imaging.
D. fdisk is a partitioning tool for Master Boot Record (MBR) disks; it creates and modifies partitions, but does not write data/images to them.
E. mount is used to attach an existing filesystem on a device to a directory in the system's file tree; it does not write images.

References

1. The GNU Core Utilities, (2023). dd: convert and copy a file. Section 13.1. Retrieved from https://www.gnu.org/software/coreutils/manual/htmlnode/dd-invocation.html.

2. Arch Linux Wiki, (2023). USB flash installation medium. Section "Using basic command line utilities". Retrieved from https://wiki.archlinux.org/title/USBflashinstallationmedium#Usingbasiccommandlineutilities.

3. Fedora Docs, (2023). Fedora Installation Guide, Chapter 3. Preparing for Installation. Section "Making USB Media on Linux". Retrieved from https://docs.fedoraproject.org/en-US/fedora/latest/install-guide/making-media/MakingUSBMediaonLinux/.

Scroll to Top