Linux Foundation Certified System Administrator: Creating USB Storage Media from Disk Image |

Create USB Storage Media from Disk Image |

Question

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

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

B

The command that can be used to create a USB storage media from a disk image is the dd command. The dd command is a utility used to copy data from one file or block device to another. It can be used to write disk images to USB storage media.

The syntax for using dd to write a disk image to a USB storage media is as follows:

javascript
dd if=/path/to/disk/image of=/dev/sdX bs=4M conv=fdatasync status=progress

Where:

  • if specifies the input file, which is the disk image that you want to write to the USB storage media.
  • of specifies the output file, which is the USB storage media that you want to write the disk image to.
  • bs specifies the block size to use when copying data. In this example, we're using a block size of 4 megabytes (4M).
  • conv=fdatasync ensures that all data has been written to the USB storage media before the command exits.
  • status=progress shows the progress of the operation as it is running.

Note: The sdX in the of parameter should be replaced with the appropriate device identifier for the USB storage media. You can determine the device identifier by running the lsblk command before and after plugging in the USB storage media. The newly added device will be the one that wasn't there before.

Therefore, the correct answer to the question is B. dd.