12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Detecting Hardware157LISTING 6.7ContinuedWelcome to GNU Parted! Type ‘help’ to view a list of commands.(parted) printDisk /dev/sda: 300GBSector size (logical/physical): 512B/512BPartition Table: msdosNumber Start End Size Type File system Flags1 32.3kB 107MB 107MB primary ext33 107MB 100GB 99.9GB primary lvm2 100GB 300GB 200GB primary ntfs bootDetecting HardwareAfter the installation program probes for hardware and maps the IDs to the appropriatekernel module (if available), the kernel module information is written to the /etc/modprobe.conf file so it can be used on subsequent boots.TIPFor a list of all kernel modules loaded, issue the lsmod command as described in the“Listing and Configuring Kernel Modules” section later in this chapter.6But, what should you do if a device is not configured by the installation program? You canuse tools to probe the hardware and discover information that can be used to manuallyconfigure the device. This section discusses two tools for this purpose: Kudzu and ddcprobe.Detecting Hardware with KudzuWhat happens when you add a new device after installation? The Kudzu program runseach time the system boots and performs a hardware probe. If new hardware is found,Kudzu attempts to map it to a kernel module. If successful, the information is saved, andthe device is configured.The Kudzu program includes an initialization script, /etc/rc.d/init.d/kudzu, which isrun at boot time (unless disabled). A list of configured hardware for the system is storedin /etc/sysconfig/hwconf, a file maintained by Kudzu. If Kudzu finds new hardware notin this file, it prompts the administrator to configure it. If Kudzu detects removed hardware,it prompts the administrator to remove the configuration. If the administratorconfirms the removal, it is removed from the hwconf file as well.Instead of reading /etc/sysconfig/hwconf, issue the kudzu --probe command to viewthe list of hardware detected by Kudzu. To narrow down the results, you can also specifythe bus or class:kudzu --probe --bus=

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!