exam questions

Exam XK0-004 All Questions

View all questions & answers for the XK0-004 exam

Exam XK0-004 topic 1 question 205 discussion

Actual exam question from CompTIA's XK0-004
Question #: 205
Topic #: 1
[All XK0-004 Questions]

An administrator needs a bootable USB for installing a new Linux machine. The administrator downloaded the image file and named it as Linux_OS.iso in the / tmp directory. Which of the following commands will accomplish that task?

  • A. dd input=/tmp/Linux_OS.iso of=/dev/sda bs=512
  • B. dd in=/tmp/Linux_OS.iso out=/dev/sdb bs=512
  • C. dd if=/tmp/Linux_OS.iso of=/dev/sda bs=512
  • D. dd if=/tmp/Linux_OS.iso out=/dev/sdb1 bs=512
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Reference:
https://medium.com/the-blog-of-ehsan-nazim/how-to-make-linux-isos-bootable-from-usb-flash-drive-the-command-line-way-380fca04e096

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Dan_Dan_The_Data_Center_Man
Highly Voted 3 years, 6 months ago
Correct Answer C. dd if=/tmp/Linux_OS.iso of=/dev/sda bs=512 dd if=<file> of=<device> bs=512 <file> is the name of the ISO image <device> is the device name of your USB flash drive bs=512 tells dd to read/write in 512 byte chunks.
upvoted 10 times
...
Dreydrey
Most Recent 3 years ago
isn't sda reserved for system drive and its partitions?usb are labeled as sdb or sdc so for me the answer is D
upvoted 1 times
RichardJRL
3 years ago
You tend not to write an ISO to a partition on a USB stick (e.g. /dev/sdb1) but to the drive itself (e.g. /dev/sdb). The process of writing/unpacking the ISO to the USB stick itself will result in the correct partitions being created. Whether it is sda or sdb or anything else is immaterial here - we are not specifically told which drive to write to in the question, so we have to assume that the right drive (whatever that is) is given as the output path in each option BUT option D has the incorrect syntax for the dd command. The "Output File" option is 'of=' NOT 'out='
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago