Workbook 2: Hardware and Device Configuration Flashcards
What is a device driver? [5]
hardware, such as network interface cards, USB devices, and disks, use more specialized components of the kernel referred to as device drivers.
What is a static kernel image?
The static kernel image is the file that is loaded when your system is booted. lives in the /boot directory
What is the name of the static kernel image?
name vmlinuz-version
How can you determine which command line was used to boot the current instance of the kernel
When read, the file /proc/cmdline reports the command line that was used to boot the current instance of the kernel.
[root@station root]# cat /proc/cmdline
ro root=LABEL=/ vga=0x317
What is a kernel module? [6]
Supplementary device drivers (which are not needed during the initial stages of system booting), such as network interface drivers and sound card drivers, are usually implemented as kernel modules
Where are kernel modules stored in the filesystem? [6]
usually underneath the directory /lib/modules/version
What command generates a list of currently loaded kernel modules? [6]
The lsmod command
How can parameters be passed to modular device drivers as they are loaded? [6]
Whenever a module is loaded “on demand” by the kernel, the file /etc/modprobe.conf is examined for module parameters
What does the dmesg buffer contain? [7]
all messages emitted by the kernel, are stored in a dynamic kernel buffer referred to as the dmesg buffer. The dmesg buffer is a “ring buffer”.
What command outputs the current contents of the dmesg buffer? [8]
The current contents of the dmesg buffer can be dumped to standard out with the dmesg command.
Where can a snapshot of the dmesg buffer be found? [8]
a snapshot of the dmesg buffer is recorded in the file /var/log/dmesg.
What does the kudzu utility do? [8]
The kudzu utility is a bootup utility that detects newly added or removed hardware, and configures the machine appropriately
What is the absolute reference of the file that contains a dynamic database of currently detected hardware? [9]
The first, /etc/sysconfig/hwconf is
a dynamic database of currently detected hardware.
Give a command line that can be used to monitor hardware changed dynamically. [10]
The lshal command can also be used to monitor hardware changed dynamically, by adding a -m
command line switch.
What is the /proc filesystem? [11]
resource for determining hardware configuration is the proc filesystem.
Does Linux support SMP? [12]
Linux supports symmetric multiple processing, with support for up to 32 CPU’s, though more than 8 is seldom implemented in the x86 architecture.
What is the absolute reference of the file that reports information about detected CPUs? [12]
The proc filesystem file /proc/cpuinfo reports information about detected CPU(s).