You are configuring a Linux server and need to determine which hard drive partition is currently mounted as the root filesystem. Which file should you inspect?
Trap 1: /var/log/dmesg
This log tracks kernel-level boot messages.
Trap 2: /etc/passwd
This file contains user account information.
Trap 3: /proc/partitions
/proc/partitions lists block devices and their sizes, not mount points; /proc/mounts shows which partition is mounted at /. It is tempting because it enumerates partitions, but it carries no mount information, so it cannot reveal the root filesystem.
- A
/var/log/dmesg
Why it fails: This log tracks kernel-level boot messages.
- B
/etc/passwd
Why it fails: This file contains user account information.
- C
/proc/partitions
Why it fails: /proc/partitions lists block devices and their sizes, not mount points; /proc/mounts shows which partition is mounted at /. It is tempting because it enumerates partitions, but it carries no mount information, so it cannot reveal the root filesystem.
- D
/etc/fstab
This file defines how filesystems are mounted at boot.