Workbook 2: Hardware and Device Configuration Flashcards
(44 cards)
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).
What is the absolute reference of the file that provides statistics about the amount of detected memory and current memory utilization? [13]
The proc filesystem file /proc/meminfo provides statistics about the amount of detected memory,
What are the naming conventions for (i) an IDE primary master disk (ii) an IDE primary slave disk (iii) an IDE secondary master disk (iv) an IDE secondary slave disk? [14/15]
1 hda - primary master
2. hdb - primary slave
3 hdc - secondary master
4. hdd secondary slave
In which directory can low level information about a primary master IDE disk be found? [15]
The proc filesystem directory /proc/ide contains subdirectories for every detected IDE drive
How does Linux usually refer to the first detected SCSI or SATA disk? [16]
Linux usually refers to the first detected SCSI drive as sda, the second drive as sdb, and so on.
What command lists all attached PCI devices? [23]
The lspci command can be used to list all attached PCI devices.
Give a command line that displays the available IRQ lines and any device drivers which are using them. [24]
The proc filesystem file /proc/interrupts displays the available IRQ lines,
Give a command line that outputs which ports have been claimed by which device driver. [25]
The proc filesystem file /proc/ioports displays which ports have been claimed by which device driver.