- Home
- Server Administration
- LPIC-2 Linux Engineer 201
16.
Which two of the following kernel features should you compile into the main kernel file of
a regular disk - based x 86 - 64 installation to simplify booting the system? (Select two.)
- A.Drivers for your boot disk's ATA controller or SCSI host adapter
- B.Support for your root ( / ) filesystem
- C.Drivers for your USB port
- D.Framebuffer drivers for your video card
- Answer & Explanation
- Report
Answer : [A, B]
Explanation :
Explanation :
The Linux kernel needs to be able to access your hard disk to continue past the most basic boot stage, so it needs drivers for your hard disk's ATA controller or SCSI host adapter as well as support for whatever filesystem you use on your root ( / ) partition in the kernel itself. Alternatively, these drivers can be placed on an initial RAM disk, but this configuration requires more work. The USB port isn't needed during the boot process, so option C is incorrect. (CD - ROM drivers are, of course, needed for CD - ROM - based distributions, but the question specified a hard - disk - based installation.) Although video card support is required by most installations, basic text - mode video support is standard, and drivers in the X Window System handle GUI video. The framebuffer drivers specified in option D are definitely optional on the x 86 and x 86 - 64 platforms, making option D incorrect. |
17.
You've compiled and installed a new kernel, of version 2.6.35.4. You now want to prepare
an initial RAM disk. Which two of the following commands will do so, depending on your
distribution? (Select two options.)
- A.mkinitrd - o /boot/initrd - 2.6.35.4 2.6.35.4
- B.mkinitrd /boot/initrd - 2.6.35.4 2.6.35.4
- C.mkinitramfs /boot/initramfs - 2.6.35.4 2.6.35.4
- D.mkinitramfs - o /boot/initramfs - 2.6.35.4 2.6.35.4
- Answer & Explanation
- Report
Answer : [B, D]
Explanation :
Explanation :
The mkinitrd and mkinitramfs utilities both generate initial RAM disks. The four options use each of these two commands, varying in which ones use a - o parameter prior to the initial RAM disk filename and which ones do not. Since the mkinitrd command does not use a - o parameter but mkinitramfs does require this parameter, that makes options B and D correct, while options A and C are incorrect. |
18.
Which of the following commands might you type while in /usr/src/linux , after copying
the configuration file from an old kernel, to use the old kernel's options and update the
configuration for new options in the new kernel?
- A.make config
- B.make allmodconfig
- C.make oldconfig
- D.make mrproper
- Answer & Explanation
- Report
Answer : [C]
Explanation :
Explanation :
In the Linux kernel, the oldconfig target to make does as the question specifies, so option C is correct. Option A is used to query the user in text mode about every kernel option. This differs from the action of the oldconfig option in that oldconfig omits options that are already present in the old configuration file, greatly shortening the configuration process. Option B is incorrect because it discards the old configuration file and builds a new one with as many options being specified as modular build as possible. Option D causes all the intermediate files and configuration files to be deleted. |
19.
In which of the following circumstances would it make the least sense to patch a kernel?
- A.You have recent stable kernel source code and you need to add support for a new kernel feature that's not in that version.
- B.You have recent kernel source, but it has a buggy driver. A fix is available in a later kernel and is available as a patch for your current kernel.
- C.You have recent kernel source, but it has a buggy driver. A fix is available in a later kernel and is available as a patch for your current kernel.
- D.You have kernel source from your distribution maintainer and you want to compile a “ generic ” kernel for your system.
- Answer & Explanation
- Report
Answer : [D]
Explanation :
Explanation :
Kernel source code from distribution maintainers is usually heavily patched, making application of new patches to create a “ generic ” kernel difficult. Thus, option D is a poor choice for patching; it's probably better to download the desired kernel version directly in this case. Options A and B both describe cases in which patching is reasonable: You must apply a third - party patch for a new kernel feature (option A) or an updated driver (option B). In the case of option B, you could elect to upgrade to the newer kernel (by downloading the whole thing or by applying a patch) or simply apply the patch for the fix, but a patch is a reasonable approach in any case. Option C describes a good candidate for patching; you're upgrading over a very small version difference, which is likely to be an easy patch to apply. |
20.
You've downloaded the patch - 2.6.35.4.bz2 file. What program will you use as part of
the patch operation to handle this file's compression?
- A.bunzip2
- B.gunzip
- C.tar
- D.cpio
- Answer & Explanation
- Report
Answer : [A]
Explanation :
Explanation :
The .bz2 filename extension indicates that the patch file is compressed with bzip2 . Such files can be uncompressed with bunzip2 , as option A specifies. Option B's gunzip program is used to uncompress files compressed with gzip ; such files typically have .gz extensions, so this option is incorrect. The tar and cpio programs specified by options C and D handle archive files, but patch files are not archive files, so these options are both incorrect. |