Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI 201-450 Exam - Topic 3 Question 106 Discussion

Which of the following command sequences can be used to extract files contained in a initramfs file (/boot/initramfs) which is used by the kernel at boot time?
C) cp /boot/initramfs /tmp/initramfs.gz; gunzip /tmp/initramfs.gz; mount /tmp/initramfs /mnt/ -o loop -t initramfs
A) cp /boot/initramfs /tmp/initramfs.gz; gzip -c /tmp/initramfs.gz; mkdir /tmp/initramfs.dir ; cd /tmp/initramfs.dir ; cpio -i < /tmp/initramfs
B) cp /boot/initramfs /tmp/initramfs.gz; gunzip /tmp/initramfs.gz; mkdir /tmp/initramfs.dir ; cd /tmp/initramfs.dir ; cpio -i < /tmp/initramfs
D) cp /boot/initramfs /tmp/initramfs.gz; gunzip /tmp/initramfs.gz; mkdir /tmp/initramfs.dir ; cd /tmp/initramfs.dir ; cpio -e /tmp/initramfs
E) cp /boot/initramfs /tmp/initramfs.gz; gunzip /tmp/initramfs.gz; mount /tmp/initramfs /mnt/ -o loop -t initrd

LPI 201-450 Exam - Topic 3 Question 106 Discussion

Actual exam question for LPI's 201-450 exam
Question #: 106
Topic #: 3
[All 201-450 Questions]

Which of the following command sequences can be used to extract files contained in a initramfs file (/boot/initramfs) which is used by the kernel at boot time?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Benton
9 months ago
D is interesting, but I don't think cpio -e is right.
upvoted 0 times
...
Delmy
9 months ago
Definitely not C, that won't work.
upvoted 0 times
...
Rory
9 months ago
Wait, can you really mount initramfs like that?
upvoted 0 times
...
Wynell
10 months ago
I think A looks good too, but not sure.
upvoted 0 times
...
Desmond
10 months ago
Option B is the correct one!
upvoted 0 times
...
Cordelia
10 months ago
I vaguely recall that we should not mount the initramfs directly. I think options C and E might be incorrect because of that.
upvoted 0 times
...
Karima
10 months ago
I’m a bit confused about the difference between using cpio with -i and -e. I hope I remember which one is correct for extracting files.
upvoted 0 times
...
Sina
10 months ago
I think option B looks familiar because it mentions gunzip and cpio, which we practiced in class. I feel like that’s the right approach.
upvoted 0 times
...
Leonora
11 months ago
I remember that to extract files from an initramfs, we usually need to decompress it first, but I'm not sure if we should use gzip or gunzip in this context.
upvoted 0 times
...
Antonio
11 months ago
I'm a bit unsure about the mount command options here. Do we really need to mount the initramfs file, or can we just extract the contents directly? I'll have to double-check the details on that.
upvoted 0 times
...
Roosevelt
11 months ago
Okay, let me think this through step-by-step. First, copy the file, then gunzip it, then use cpio to extract the contents. I think option B looks like the right sequence to me.
upvoted 0 times
...
Lenna
11 months ago
Ah, I've seen this type of question before. The key is to use the cpio command to extract the files from the initramfs. I'm pretty confident I can get this one right.
upvoted 0 times
...
Margart
11 months ago
Hmm, I'm a bit confused by all the different steps here. I'm not sure which one is the right approach. Maybe I should review my notes on working with initramfs files before attempting this.
upvoted 0 times
...
Werner
11 months ago
This looks like a tricky question, but I think I have a good strategy. I'll start by copying the initramfs file to a temporary location and gunzipping it. Then I'll try extracting the contents using cpio.
upvoted 0 times
...
Mitsue
1 year ago
I heard the kernel likes to keep its initramfs files on a need-to-know basis. Guess we're all on a need-to-know basis today!
upvoted 0 times
Dell
1 year ago
D) cp /boot/initramfs /tmp/initramfs.gz; gunzip /tmp/initramfs.gz; mkdir /tmp/initramfs.dir ; cd /tmp/initramfs.dir ; cpio -e /tmp/initramfs
upvoted 0 times
...
Ivory
1 year ago
B) cp /boot/initramfs /tmp/initramfs.gz; gunzip /tmp/initramfs.gz; mkdir /tmp/initramfs.dir ; cd /tmp/initramfs.dir ; cpio -i < /tmp/initramfs
upvoted 0 times
...
Catherin
1 year ago
A) cp /boot/initramfs /tmp/initramfs.gz; gzip -c /tmp/initramfs.gz; mkdir /tmp/initramfs.dir ; cd /tmp/initramfs.dir ; cpio -i < /tmp/initramfs
upvoted 0 times
...
...
Joesph
1 year ago
Wait, why are we extracting an initramfs file? Isn't that like, the kernel's private business? I hope this isn't going to be on the test!
upvoted 0 times
...
Roslyn
1 year ago
Hold up, is this a trick question? I bet the answer is Option E, because 'initrd' is the old-school name for initramfs, right?
upvoted 0 times
...
Cherrie
1 year ago
I've used Option C before to mount the initramfs image directly. It's a bit more straightforward than the cpio approach.
upvoted 0 times
Elise
1 year ago
I've never tried Option C, I usually stick with Option A for extracting initramfs files.
upvoted 0 times
...
Julio
1 year ago
I usually go with Option B, but I might try Option C next time.
upvoted 0 times
...
Zoila
1 year ago
I prefer Option C as well, it's easier to just mount the initramfs image.
upvoted 0 times
...
Emogene
1 year ago
I've never tried Option C before, but it sounds like a more straightforward method to extract the files.
upvoted 0 times
...
Virgina
1 year ago
I usually go with Option B, but I might try Option C next time for a simpler approach.
upvoted 0 times
...
Jules
1 year ago
I prefer Option C as well, it's easier to mount the initramfs image directly.
upvoted 0 times
...
...
Teddy
1 year ago
Option B looks the most comprehensive to me. Extracting the files from the initramfs image using cpio is the way to go.
upvoted 0 times
Jesusita
1 year ago
Let's go with option B then, it seems like the most comprehensive choice.
upvoted 0 times
...
Angella
1 year ago
Yes, I think Option B is the best one. It covers all the necessary steps for extracting the files from the initramfs image.
upvoted 0 times
...
Felix
1 year ago
Option B is definitely the way to go for extracting files from initramfs.
upvoted 0 times
...
Shaniqua
1 year ago
I agree, using cpio to extract the files seems like the right approach.
upvoted 0 times
...
Charisse
1 year ago
I agree, Option B seems like the correct choice. Using cpio to extract the files is the right approach.
upvoted 0 times
...
Rosio
1 year ago
I think option B is the correct one.
upvoted 0 times
...
...
Brigette
1 year ago
But option A involves using cpio to extract files from the initramfs file, which is the correct tool for this task.
upvoted 0 times
...
Sharen
1 year ago
I disagree, I believe the correct answer is B.
upvoted 0 times
...
Brigette
1 year ago
I think the correct answer is A.
upvoted 0 times
...

Save Cancel