101.1 Determine and configure hardware settings

Nerd Cafe

This involves working with:

  • BIOS/UEFI

  • Boot process

  • Hardware devices (PCI, USB, CPU info, etc.)

  • Tools like lspci, lsusb, dmesg, lsmod, modprobe, etc.

Step 1: Understand the Role of BIOS/UEFI

BIOS (Basic Input/Output System) or UEFI (Unified Extensible Firmware Interface) initializes hardware before the OS starts.

Tasks:

  • Configure boot device order

  • Enable/disable onboard devices

  • Manage virtualization support

  • Check CPU features like Hyper-Threading, VT-x, etc.

You must access BIOS/UEFI before the OS boots (usually by pressing Del, F2, or Esc at boot time).

Step 2: View Hardware Information from Within CentOS

2.1 Check CPU Info

2.2 View Memory Info

2.3 Check Disk Drives

or use:

2.4 View PCI Devices (e.g. network cards, GPUs)

You can install pciutils if lspci is not found:

2.5 View USB Devices

Install usbutils if needed:

Step 3: Kernel Messages and dmesg

3.1 View Boot Hardware Messages

Useful filters:

or:

This shows how hardware was detected and initialized during boot.

Step 4: Kernel Modules (Drivers)

Linux uses kernel modules to load drivers dynamically.

4.1 List Loaded Kernel Modules

4.2 Load a Kernel Module

Example: To load the e1000e network driver:

4.3 Unload a Kernel Module

4.4 Check Module Info

Step 5: Configure Modules to Load at Boot

Edit /etc/modules-load.d/ or use /etc/modprobe.d/

Example: Auto-load loop module on boot

Step 6: Check and Configure IRQs and DMA (optional for most modern systems)

View interrupt requests (IRQs):

Direct memory access (DMA) channels (less relevant on modern systems):

Step 7: Troubleshoot Hardware Detection

  • Check dmesg for errors.

  • Use lspci -v or lsusb -v for detailed info.

  • If a device is not working, identify its driver and ensure the module is loaded.

  • Check logs:

Summary of Important Commands

Command
Description

cat /proc/cpuinfo

View CPU details

cat /proc/meminfo

View memory usage

lsblk

List block storage devices

lspci

List PCI devices

lsusb

List USB devices

dmesg

Kernel and boot messages

lsmod

Show loaded modules

modprobe

Load/unload kernel modules

modinfo

View module info

journalctl -k

Kernel log messages

Keywords

BIOS, UEFI, CPU info, memory info, lsblk, fdisk, lspci, lsusb, dmesg, kernel modules, lsmod, modprobe, modinfo, CentOS, IRQ, DMA, journalctl, hardware detection, boot process, hardware configuration, nerd cafe

Last updated