|Description||Familiarity with the components that go into building desktop and server computers.|
Key Knowledge Areas:
The following is a partial list of the used files, terms and utilities:
- Hard drives and partitions, motherboards, processors, power supplies, optical drives, peripherals
- Display types
Topic 4.2 of the LPI Linux essentials exam looks at computer hardware. In this video we will take a tour of driver management within Linux; so a little modprobe, lsmod and hwinfo.
Firstly we can look at how the /proc directory holds so much information about the running system. Taking a look a at the /proc/partitions file we will see that it lists are partitions, perhaps this is more easily shown with the command fdisk(/sbin/fdisk).
You will find that many commands in Linux relating to the system do rely on the information found in /proc and just present this to the sysadmin in a more formatted way. We can move on from this to lsmod(/sbin/lsmod) to list the loaded modules or drivers. This command formats the information found /proc/modules.
If we want to unload a driver we can use the command modprobe(/sbin/modprobe), in the example we unload the parallel port driver:
modprobe -r parport_pc
To load it again we could use the same command but without the -r.
Another useful command is hwinfo(/usr/sbin/hwinfo), we can take a look at:
The command hwinfo list the hardware and the driver used to access the hardware, including the command and any options used in loading the driver. hwinfo is a very useful reporting and diagnostics tool that you shouldn’t overlook.