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)- A2% (1)
- B8% (5)
- C5% (3)
- D84% (51)
- E2% (1)
Topics
#initrd#ramdisk#loop mount#gunzip initrd
Community Discussion
No community discussion yet for this question.