Determine and Configure Hardware Settings (2) Flashcards

Objective 101.1 Weight 2

1
Q

Your system has SCSI disks. What device file represents the 2nd disk on the system’s third partition?

  1. /dev/hda3
  2. /dev/sda3
  3. /dev/sr2
  4. /dev/hdb3
  5. /dev/sdb3
  6. /dev/fd2
A
  1. /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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following is true concerning Logical Volume Management (LVM)?

  1. LVM uses logical volumes instead of directly using disk partitions.
  2. LVM logical volumes are made up portions from a single designated volume group.
  3. LVM volume groups are made up of one or more physical volumes.
  4. LVM physical volumes are actually disk partitions that have been designated to be a physical volume.
  5. Even if a partition is hasn’t been designated as a LVM physical volume, it can be in a LVM volume group.
A
  1. LVM uses logical volumes instead of directly using disk partitions.
  2. LVM logical volumes are made up portions from a single designated volume group.
  3. LVM volume groups are made up of one or more physical volumes.
  4. 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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Your system has two optical drives. What device file represents the 2nd optical drive?

  1. /dev/hda2
  2. /dev/sda2
  3. /dev/sr1
  4. /dev/hdb2
  5. /dev/sdb2
  6. /dev/fd1
A
  1. /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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which of the following files does the lsdev utility pull its information to display from?

  1. /proc/dma
  2. /proc/interrupts
  3. /proc/filesystems
  4. /proc/scsi
  5. /proc/ioports
  6. /proc/swaps
A
  1. /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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which of the following could be considered a kernel module?

  1. device drivers
  2. filesystem drivers
  3. memory drivers
  4. network drivers
  5. system calls
  6. executable loaders
A
  1. device drivers
  2. filesystem drivers
  3. network drivers
  4. system calls
  5. executable loaders

Kernel modules include device drivers, filesystem drivers, network drivers, system calls, and executable loaders.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Where are kernel module files stored in the Linux directory structure?

  1. /dev/
  2. /lib/modules
  3. /dev/drivers
  4. /proc/driver
  5. /proc/module
  6. /var/lib/modules
A
  1. /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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Where are udev rules stored in the Linux directory structure?

  1. /sys
  2. /etc
  3. /proc
  4. /dev
  5. /lib
  6. /var/lib
A
  1. /etc

The udev rules stored in the /etc directory, more specifically in the /etc/udev/rules.d/ directory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Name two essential commands to identify connected devices in a Linux system and what they do.

A

lspci will show all devices connected to the PCI bus.

lsusb will show connected USB devices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

In order for a hardware device to be fully operational within a Linux system, what software component is required?

A

Hardware requires kernel modules and kernel drivers to be fully operational.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What command, including arguments, would you execute to get kernel modules for a PCI device with address 00:14.0?

A

lspci -s 00:14.0 -k will display kernel drivers for the device and the kernel modules capable of handling it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What command, including arguments, show USB devices mappings as a hierarchical tree?

A

lsusb -t shows displays usb mappings as a tree.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What Linux package provides tools to handle common tasks with Linux kernel modules.

A

The kmod package

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What information does the lsmod command provide?

A

The lsmod command lists all the loaded kernel modules, their size and which modules are using /dependent on the module.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What command, including argument, can be used to remove a module from a running system?

A

modprobe -r <module> will remove a module.</module>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

If a kernel module is causing an issue, how can it be prevented from loading?

A

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>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What command displays information about Linux kernel modules?

A

modinfo displays information about kernel modules including author, description, license, parameters and filename.

17
Q

What is unique about the /proc and /sys filesystems with respect to traditional filesystems?

A

/proc and /sys are pseudo filesystems and exist RAM, not on disk partitions. They only exists while a system is running.

18
Q

Which Linux file stores detailed information about the CPU?

A

/pro/cpuinfo

19
Q

Which Linux file can identify which device is generating large numbers of interrupts?

A

/proc/interrupts

20
Q

Which Linux file stores currently registered Input/Output port regions in use?

A

/proc/ioports

21
Q

Which Linux file stores registered DMA (direct memory access) channels in use?

A

/proc/dma

22
Q

Which Linux subsystem is responsible for handling removable devices?

A

Removable devices, also known as hot-pluggable, are managed by udev.

23
Q

Which linux system directory is associated with mass storage devices?

A

/dev

24
Q

Suppose an operating system is unable to boot after adding a second SATA disk to the system.
Knowing that all parts are not defective, what could be the possible cause for this error?

A

The boot device order should be configured in the BIOS setup utility, otherwise the BIOS may
not able to run the bootloader.

25
Q

Suppose you want to make sure the external video card connected to the PCI bus of your newly
acquired desktop computer really is the one advertised by the manufacturer, but opening the
computer case will void the warranty. What command could be used to list the details of the
video card, as they were detected by the operating system?

A

lspci
lspci will list detailed information about all devices currently connected to the PCI
bus.

26
Q

The following line is part of the output generated by command lspci:

03:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2208 [Thunderbolt]
(rev 05)

What command should you execute to identify the kernel module in use for this specific
device?

A

lspci -s 03:00.0 -k
or
lspci -s 03:00.0 -v

27
Q

A system administrator wants to try different parameters for the bluetooth kernel module
without rebooting the system. However, any attempt to unload the module with

modprobe -r bluetooth

results in the following error:

modprobe: FATAL: Module bluetooth is in use.

What is the possible cause for this error?

A

The bluetooth module maybe in use by a running application.