doubledrat
asked on
how to copy linux rescue kernel to disk?
Yes I'm back!
I have just replaced the adaptec raid Controller in my machine with a mylex one.
Of course, I can't boot. I can boot from linux rescue, so how do I copy the kernel that linux rescue has created (and all required files) to my hard disk, so that I can boot my system and rebuild my other kernels?
I have just replaced the adaptec raid Controller in my machine with a mylex one.
Of course, I can't boot. I can boot from linux rescue, so how do I copy the kernel that linux rescue has created (and all required files) to my hard disk, so that I can boot my system and rebuild my other kernels?
Your problem isnt your kernel, its the initial ramdisk which contains modules for your mylex controller.
ASKER
owensleftfoot: ok, so what's my solution? ;-)
Alf666: I'm using grub, booting rh9 from cd. does that make a vast difference?
Alf666: I'm using grub, booting rh9 from cd. does that make a vast difference?
Backup your data and re-install rh9 would be the easiest way - redhat will create its own initrd.
ASKER
owensleftfoot: I've spent hours customising this installation, so that's not really an option for me.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
of course! put both cards in! duh.
I created the new initrd before the swap and it worked a treat ta.
I created the new initrd before the swap and it worked a treat ta.
Yes, having both cards in the machine when you execute mkinitrd will work because the module for that card will be loaded. Knowing the module name you could have used the "--with=driver-module" option to mkinitrd even with the card not in the system.
- boot rescue
- mount read-write your HD (like mount /dev/hda1 /tmp)
- dd if=/dev/floppy (or whatever device it's on) of=/boot/rescueKernel
Then edit your lilo.conf adding :
image = /boot/rescueKernel
label = rescue
root = /dev/hda1
Run :
lilo -r /dev/hda1
Of course, replace hda1 with your actual root device.
And then, select rescue as the boot option. You can also add the followin line to your lilo.conf :
default = rescue
So that you don't have to select it at boot. Don't forget to change it afterwhile.