Lpic 2 Linux Engineer · Free Practice Question Medium

Question 2

A server running Linux fails to boot and drops to a GRUB rescue shell. The error message displayed is: 'error: file /boot/vmlinuz-5.10.0-23-generic not found.' The administrator inspects /boot/ and realizes that the kernel files are missing. What is the best way to resolve this issue?
  • A Reinstall the bootloader using grub-install
  • B Use a live CD to mount the root partition, chroot into it, and reinstall the kernel package
  • C Edit the GRUB boot parameters and manually specify an alternative kernel
  • D Use fsck to repair the /boot/ partition
Reveal correct answer

Correct answer: B

A. Reinstalling the bootloader using grub-install may fix issues related to the GRUB configuration, but it will not resolve the missing kernel files in the /boot/ directory. This choice does not address the root cause of the problem.

B. Using a live CD to mount the root partition, chroot into it, and reinstall the kernel package is the best way to resolve the issue of missing kernel files. This method allows the administrator to access the filesystem, install the necessary kernel files, and fix the boot problem effectively.

C. Editing the GRUB boot parameters and manually specifying an alternative kernel may temporarily boot the system, but it does not address the underlying issue of missing kernel files. This choice does not provide a permanent solution to the problem.

D. Using fsck to repair the /boot/ partition may help fix filesystem errors, but it will not automatically restore the missing kernel files. This choice focuses on repairing filesystem integrity rather than resolving the specific issue of missing kernel files.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need