Tuesday, September 21, 2010

Load RAID driver during the Ubuntu installation

For an instance of installing RAID driver, see
http://ubuntuforums.org/showthread.php?t=1578282

First you will need to copy the driver to a floppy disk or USB stick. During the text-based part of the installer, but before it starts to probe for hardware drivers, do the following:
  • Press Ctrl-Alt-F2 to switch to a BusyBox prompt
  • Insert the floppy that contains your driver file
  • Type:

    Code:
    mkdir /mount/usb
    mount -t vfat /dev/sda1 /mnt/usb
    cp /mnt/usb/megaraid.ko /lib/modules/2.6.32-24-generic/kernel/drivers/scsi/
  • Press Ctrl-Alt-F1 to switch back to the installation, and allow the install to go ahead.

Note that the kernel version I have supplied in the 'cp' command (2.6.32-24-generic) may be different for your install. I have taken this from a stock Ubuntu Server 10.04.1 installation CD. To see what version you have, type:

Code:
uname -r
at the BusyBox prompt.