LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   force detect hardware (https://www.linuxquestions.org/questions/linux-newbie-8/force-detect-hardware-812633/)

elainelaw 06-07-2010 06:34 AM

force detect hardware
 
after I reboot the server , I found that there is hardware is not detected , I tried to use the command "kudzu" , but still not work , can advise how can I force detect hardware ? thx

g33ky 06-07-2010 08:37 AM

Hello Elaine,

If the modules doesn't loads, or the systems doesn't detects any previously added peripheral, you may try to :

1#
Code:

/etc/init.d/kudzu start
2# halt the system properly (halt command...)
3# unplug the card/equipment and re-plug it in another bus
4# power on your server

Then, could you tell me if the kudzu auto-configuration assistant loads up (don't forget to press 'i' when booting up) ?

g33ky

BTW, which version of RHEL (or Fedora) are you running ? Thx

elainelaw 06-07-2010 08:47 AM

Quote:

Originally Posted by g33ky (Post 3995352)
Hello Elaine,

If the modules doesn't loads, or the systems doesn't detects any previously added peripheral, you may try to :

1#
Code:

/etc/init.d/kudzu start
2# halt the system properly (halt command...)
3# unplug the card/equipment and re-plug it in another bus
4# power on your server

Then, could you tell me if the kudzu auto-configuration assistant loads up (don't forget to press 'i' when booting up) ?

g33ky

BTW, which version of RHEL (or Fedora) are you running ? Thx


thx reply ,

but what I want is just not reboot the system again , I would like to force to rescan the device .

Thx

g33ky 06-07-2010 09:32 AM

Ok,

Can you tell me what kind of hardware do you want to be found by the system ? Any HBA, ethernet card, SCSI equipment or other ?

It would be perfect if could give me the kind, manufacturer, and product type of the card. So that I could give you the precise command to reload the driver stack.

But if you feel a little ninja, this is the path to follow :

For example, to force a rescan for a QLogic HBA :
Code:

# echo "scsi-qlascan" > /proc/scsi/<driver-name>/<adapter-id>
Where:
- <driver-name> = qla2100, qla2200, qla2300 (2.4 kernel drivers) or qla2xxx (2.6 kernel drivers)
- <adapter-id> = the instance number of the HBA

Then, you have to force the 'mid-layer' to rebuild the node entry table :

Code:

# echo "scsi add-single-device 0 1 2 3" >/proc/scsi/scsi
Where:
- "0 1 2 3" = your "Host Channel ID LUN"

That's it. Don't forget to give me the details if you want me to help you a little bit more.

Thanx,


g33ky

calande 05-28-2011 05:43 AM

How could I force my computer to scan wifi dongles at boot up? I have to unplug and plug the dongle back in to get detected at every boot up... :(
Thanks,


All times are GMT -5. The time now is 03:29 AM.