SuSE 9.2, aacraid module.
I have a SuSE 9.2 machine which requires the aacraid module to boot. The module wasn't configured and installed by SuSE during installation (I had to select it from the hardware drivers option).
I have the following drive setup:
/dev/sda1 - boot files are here, mounted as /boot once we're up and running.
/dev/sdb1 - data files are here, including /etc, /bin, /sbin, etc.
/dev/sdb2 - swap drive
I understand that SuSE Linux loads a ramdisk for preboot purposes. I understand that the ramdisk is stored as initrd inside of the /dev/sda1/boot directory. I know that mkinitrd is used to create the initrd image used to boot.
My problem is that the only way I can get access to the drives right now is to use the SuSE boot disk, go to drivers, load the aacraid driver, and then drop into rescue mode and manually mount /dev/sda1 and /dev/sdb1. I mount /dev/sda1 as /rescue/boot and /dev/sdb1 as /rescue/mnt/sdb1.
I will refer to the ramdisk created by the rescue system as /rescue.
What I've Tried
I have a properly edited /mnt/sdb1/etc/sysconfig/kernel file which lists aacraid as a required module. I copy this file to /rescue/etc/sysconfig/kernel so it is in the default location and I don't have to specify a ton of command line options.
/rescue/boot is actually /dev/sda1/boot which contains all my boot files, but /rescue/boot is the default for most of mkinitrd's options so hopefully that's okay.
So I have a properly configured /rescue/etc/sysconfig/kernel. I can't seem to figure out what to do past this point.
Using mkinitrd -k vmlinuz -i initrd-2.4.21-149-new results in
Root device: /dev/root mounted as / as ext2
Kernel version: 2.4.21-149-smp (x86_64)
Kernel image: /boot/vmlinuz
Initrd image: /boot/initrd-2.4.21-149-new
No modules found for kernel 2.4.21-149-smp
There's no file produced though.
So I'm a bit lost as to what, exactly, I do in this case to produce the file I need. Most of the tutorials and information on the net assume that your root file system is mounted as /, but since I'm running off a rescue disk mine isn't.
(My boot loader is GRUB by the way, if that makes a huge difference.)
Thanks for any help, in advance.
Iv'e no idea. Maybe recompile your kernel or something...
BTW - SuSE 9.2? You sure got me interested!
Argh, 9.0. I'm sorry. I've been finding lots and lots of stuff about SuSE 8.2. The numbers have started to run together in my head. :\
Okay, I figured it out.
chroot /dev/sdb1 once I've got the rescue disk loaded, make sure the sysconfig/kernel has the right modules, and run mkinitrd without any parameters. Wallah, since everything is truly in the right place magic happens, the ramdisk image gets rebuilt, and I'm now up and running.
Yay for me!
|All times are GMT -5. The time now is 08:02 PM.|