LPIC-1 Exam 101 v5 (Linux Administrator) — Question 115

When booting from the hard disk, a computer successfully loads the Linux kernel and initramfs but hangs during the subsequent startup tasks. The system is booted using a Linux based rescue CD to investigate the problem. Which of the following methods helps to identify the root cause of the problem?

Answer options

Correct answer: C

Explanation

The correct answer is C because the /var/log directory contains important log files that can provide insight into errors that occurred during the boot process. Option A is less effective since it relies on logs that may not reflect the current state after the hang. Option B is incorrect as /proc/kmsg is a virtual file that may not hold useful historical logs. Option D, while useful, requires more steps and may not directly address the problem compared to checking /var/log. Option E is unhelpful as it merely suggests restarting without further investigation.