我使用Debian Linux 2.6.8-686 ,AMD64 2500+ ,512M DDR内存,普通IDE硬盘。通过查看系统启动信息,我发现hotplug启动花了很多时间。那么我们就对它进行处理吧。
首先以root身份在终端运行/etc/init.d/hotplug start,你将得到类似以下信息:
引用:Starting hotplug subsystem:
pci
amd64-agp: already loaded
shpchp: loaded successfully
pciehp: loaded successfully
sata_via: loaded successfully
via82cxxx: already loaded
uhci-hcd: already loaded
uhci-hcd: already loaded
uhci-hcd: already loaded
uhci-hcd: already loaded
ehci-hcd: already loaded
snd-via82xx: already loaded
via-rhine: already loaded
ignoring pci display device 01:00.0
ignoring pci display device 01:00.1
pci [success]
usb
usbhid: already loaded
usb-storage: loaded successfully
usb [success]
ide
ide [success]
input
evdev: already loaded
tsdev: already loaded
mousedev: already loaded
evdev: already loaded
joydev: already loaded
input [success]
scsi
sd_mod: loaded successfully (for disk)
scsi [success]
done.
然后我将amd64-agp, via82cxxx, uhci-hcd, ehci-hcd, snd-via82xx, via-rhine, usbhid, usb-storage 添加到/etc/modules文件中。每个单词一行,不包括逗号。其它的模块我不需要。你可能会根据需要添加其它所列出的模块。
然后运行mv /etc/init.d/hotplug /etc/init.d/hotplug_moved 这样,hotplug以后就不再起作用了。
版本敏感!上面的方法只针对特定的版本,不要轻易尝试!
补充: 你最好还是编译内核。
tonyanzh 于 2008-03-18 15:43:23发表:
感觉还是稳定一点得好。
欲速则不达啊~~
litkt 于 2008-03-18 15:25:40发表:
hotplug还是必要的,否则PCMCIA和USB硬件怎么办?
省这点时间不值得。