101-500 Exam QuestionsBrowse all questions from this exam

101-500 Exam - Question 113


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?

Show Answer
Correct Answer: C

When diagnosing boot issues, it is essential to examine persistent system logs for clues about what went wrong. The /var/log directory contains log files generated by different services and parts of the operating system, including logs pertinent to the boot process. These logs can provide detailed information about errors and messages that occurred during the boot sequence, making it possible to identify the root cause of the problem. Therefore, investigating the files within /var/log on the computer's hard disk for possible errors is the most effective method to troubleshoot the issue.

Discussion

8 comments
Sign in to comment
CuriousLinuxCatOption: C
Jul 24, 2021

During boot, the logs are stored in dmesg, but are later transferred to /var/logs when the boot has finished. In this example, it was successfully rebooted with a rescue disk, hence one needs to go look at /var/logs because your OS transferred it there!

napstervkOption: C
Jul 29, 2021

dmesg es volatil, todo se queda guardado en log, SIEMPRE, log es lo primero

BodescuOption: D
Jun 15, 2021

If you have a look to the dmesg, you will get the live system dmesg. So, need to chroot first, then, dmesg. D is the right answer :)

iwkno6Option: C
Jul 28, 2021

After dmesg writes the contents of the ring buffer, it ends up in /var/log/messages, hence within /var/log, so C is correct.

ismael_1_Option: D
Sep 15, 2020

la correcta es la D.

ilputtoOption: C
Nov 1, 2020

I think is C. the chroot might be also correct, but you will not able to use dmesg to troubleshoot the first boot process.

catita3Option: C
Mar 19, 2023

I had a hard time with this one. All options are wrong to me, even option C. It says, "Investigating the file /var/log ...", but /var/log is not a file; it is a directory. It is not well written.

sugishoOption: C
Nov 3, 2020

The log after the initialization process by the kernel is completed cannot be found without looking at the / var / log / messages file.