nerdexam
LPI

201-450 · Question #38

Which of the following commands can be used to access the content of a ramdisk file (/boot/initrd) used by the kernel at boot time?

The correct answer is D. cp /boot/initrd /tmp/initrd.gz; gunzip initrd.gz; mount /tmp/initrd /mnt/ -o loop. See the full explanation below for the reasoning.

System Startup

Question

Which of the following commands can be used to access the content of a ramdisk file (/boot/initrd) used by the kernel at boot time?

Options

  • Amount /boot/initrd /mnt/ -0 loop; cat /mnt
  • Bmkintird -d /boot/initrd; mount /boot/initrd /mnt/ -o loop
  • Ccp /boot/initrd /tmp/initrd.gz; mount /tmp/initrd /mnt/ -o loop
  • Dcp /boot/initrd /tmp/initrd.gz; gunzip initrd.gz; mount /tmp/initrd /mnt/ -o loop
  • Ecp /boot/initrd /tmp/initrd.gz; gunzip initrd.gz; mount /tmp/initrd /mnt/

How the community answered

(61 responses)
  • A
    2% (1)
  • B
    8% (5)
  • C
    5% (3)
  • D
    84% (51)
  • E
    2% (1)

Topics

#initrd#ramdisk#loop mount#gunzip initrd

Community Discussion

No community discussion yet for this question.

Full 201-450 Practice