- 论坛徽章:
- 0
|
2.4内核 使用脚本:\r\n###########################################################################################\r\n#This is a tool to look for scsi device on Linux.\r\n# The variables stand for as below:\r\n#\r\n# a == hostadapter id (first one being 0)\r\n# b == SCSI channel on hostadapter (first one being 0)\r\n# c == ID\r\n# d == LUN (first one being 0)\r\n#\r\n# After runing the script, you can read the file at /proc/scsi/scsi by \"cat\" command\r\n# to confirm what devices have been added.\r\n# \r\n# Written by Neeki\r\n##########################################################################################\r\n\r\n#!/bin/bash\r\necho \" Looking for scsi devices.......\"\r\nfor ((a=0;a<=15;a++))\r\ndo\r\n for ((b=0;b<=15;b++))\r\n do\r\n for ((c=0;c<=15;c++))\r\n do\r\n for ((d=0;d<=15;d++))\r\n do\r\n echo \"scsi add-single-device $a $b $c $d\" > /proc/scsi/scsi\r\n done \r\n done\r\n done\r\ndone\r\necho \"Done\"\r\n\r\n2.6正确安装了光纤卡驱动,重启就可以识别,没有识别的情况下,检查st sg\r\n标准 Enterprise Linux 版本中包含可供装入的 sg 和 st 模块。这些模块是按需装入的。此外,如果内核中没有这些模块,您也可以装入它们。请使用下列命令:\r\n/sbin/modprobe st\r\n/sbin/modprobe sg\r\nLinux 驱动程序会自动创建设备文件\r\n驱动器设备文件:\r\n/dev/nstX\r\n机械手设备文件:\r\n/dev/sgX |
|