Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-24-2008, 12:30 PM   #1
LQ Newbie
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
Is it possible to load a device driver into an offline kernel?

I know that sounds crazy, but I can't figure this one out.

I loaded up a Red Hat EL 4 system, and using the dd Grub option, I was able to load my RAID drivers at install time.

Weeks later, required kernel updates appear after running up2date. Like the newbie I am, I accept them and move on. The next time I boot, the kernel panics. It seems the new kernel doesn't include the RAID drivers (ADPAHCI).

I ended up selecting the OLD kernel to get the system back up and running, but, of course, I need the new kernel to have the RAID driver drivers.

Is there a way to install the RAID driver into the kernel when it's not running?

If not, is there a way to prompt at boot time to load the a RAID driver (a la dd command)?


Old 03-24-2008, 01:41 PM   #2
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Well, supplying the driver is compiled as a module, you would want to add the driver name to /etc/modules...but then you would have to worry about init-scripts loading at the proper time, and I don't even think they would work, assuming you may need the RAID driver to actually access the boot drive.

Alternately, you could compile the driver into the kernel, but that would mean you need to have the kernel sources available for compiling.
Old 03-24-2008, 07:50 PM   #3
HCL Maintainer
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 76
What’s generally used in this sort of thing is an initrd (initial ramdisk) which has the appropriate drivers for that small amount of time in between using the BIOS and using the kernel to handle RAID.

Perhaps your problem is a broken initrd, in which case you will have to remake it (making sure to specify RAID).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in compiling a char device driver formerly for kernel 2.4 on kernel 2.6 payretep Linux - Newbie 6 09-24-2007 06:43 AM
ejecting I/O to offline device c0mputerking Linux - Software 2 09-10-2007 02:18 PM
To load new display driver in new kernel akauts Linux - Kernel 0 02-14-2007 08:26 PM
Character Device driver: How to load it automatically ? shendeswanand Linux - Software 0 02-09-2006 10:59 PM
automatic driver load & device permissions xtravar Linux - Hardware 0 06-17-2005 01:30 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration