Determine and Configure Hardware Settings (2) Flashcards
Objective 101.1 Weight 2
Your system has SCSI disks. What device file represents the 2nd disk on the system’s third partition?
- /dev/hda3
- /dev/sda3
- /dev/sr2
- /dev/hdb3
- /dev/sdb3
- /dev/fd2
- /dev/sdb3
SCSI devices are represented by /dev/sd* device files. The first disk would be listed as a, while the second disk is listed as b. Finally, the partition numbers start at 1 for the 1st partition, 2 for the second and so on. Therefore, the correct device file name for this disk is /dev/sdb3.
Which of the following is true concerning Logical Volume Management (LVM)?
- LVM uses logical volumes instead of directly using disk partitions.
- LVM logical volumes are made up portions from a single designated volume group.
- LVM volume groups are made up of one or more physical volumes.
- LVM physical volumes are actually disk partitions that have been designated to be a physical volume.
- Even if a partition is hasn’t been designated as a LVM physical volume, it can be in a LVM volume group.
- LVM uses logical volumes instead of directly using disk partitions.
- LVM logical volumes are made up portions from a single designated volume group.
- LVM volume groups are made up of one or more physical volumes.
- LVM physical volumes are actually disk partitions that have been designated to be a physical volume.
All of the statements are true, except, “Even if a partition is hasn’t been designated as a LVM physical volume, it can be in a LVM volume group.” A disk partition CANNOT participate in a volume group, if it is has not yet been designated as a LVM physical volume.
Your system has two optical drives. What device file represents the 2nd optical drive?
- /dev/hda2
- /dev/sda2
- /dev/sr1
- /dev/hdb2
- /dev/sdb2
- /dev/fd1
- /dev/sr1
Optical devices are represented by /dev/sr* device files. The first device would be listed as 0, while the second disk is listed as 1, and so on. Therefore, the correct device file name for the second optical device on this system is /dev/sr1.
Which of the following files does the lsdev utility pull its information to display from?
- /proc/dma
- /proc/interrupts
- /proc/filesystems
- /proc/scsi
- /proc/ioports
- /proc/swaps
- /proc/dma, 2. /proc/interrupts AND 5. /proc/ioports
The lsdev utility pulls its information to display from the /proc/dma, /proc/interrupts, and /proc/ioports files.
Which of the following could be considered a kernel module?
- device drivers
- filesystem drivers
- memory drivers
- network drivers
- system calls
- executable loaders
- device drivers
- filesystem drivers
- network drivers
- system calls
- executable loaders
Kernel modules include device drivers, filesystem drivers, network drivers, system calls, and executable loaders.
Where are kernel module files stored in the Linux directory structure?
- /dev/
- /lib/modules
- /dev/drivers
- /proc/driver
- /proc/module
- /var/lib/modules
- /lib/modules
Kernel module files are stored in the /lib/modules/ directory tree. There are specific to particular kernels, and typically stored in /lib/modules/*/kernel/drivers, where * is a wildcard for the Linux kernel version.
Where are udev rules stored in the Linux directory structure?
- /sys
- /etc
- /proc
- /dev
- /lib
- /var/lib
- /etc
The udev rules stored in the /etc directory, more specifically in the /etc/udev/rules.d/ directory.
Name two essential commands to identify connected devices in a Linux system and what they do.
lspci will show all devices connected to the PCI bus.
lsusb will show connected USB devices.
In order for a hardware device to be fully operational within a Linux system, what software component is required?
Hardware requires kernel modules and kernel drivers to be fully operational.
What command, including arguments, would you execute to get kernel modules for a PCI device with address 00:14.0?
lspci -s 00:14.0 -k will display kernel drivers for the device and the kernel modules capable of handling it.
What command, including arguments, show USB devices mappings as a hierarchical tree?
lsusb -t shows displays usb mappings as a tree.
What Linux package provides tools to handle common tasks with Linux kernel modules.
The kmod package
What information does the lsmod command provide?
The lsmod command lists all the loaded kernel modules, their size and which modules are using /dependent on the module.
What command, including argument, can be used to remove a module from a running system?
modprobe -r <module> will remove a module.</module>
If a kernel module is causing an issue, how can it be prevented from loading?
The module can be added to /etc/modprobe.d/blacklist.conf OR preferably a separate configuration file can be created, /etc/modprobe.d/<module_name>.conf.</module_name>