A real lilo pickle
ok here is what I got going on,
I have a Intel server running a SMP kernel, with hardware raid. I have started replacing my really under used servers with VM servers, so I have been imaging them and restoring them to a Virtual machine. So on the physical box the drives were address as md0, but on my virtual machine it's going to be sd0 I basically need to edit the config file to point to sd now and not md or hd. here is my origional /etc/lilo.conf =========================================================================== # File generated by DrakX/drakboot # WARNING: do not forget to run lilo after modifying this file boot=/dev/hda map=/boot/map default="linux-smp" keytable=/boot/us.klt prompt nowarn timeout=100 message=/boot/message menu-scheme=wb:bw:wb:bw image=/boot/vmlinuz label="linux" root=/dev/md0 initrd=/boot/initrd.img append="devfs=mount acpi=ht resume=/dev/hda6" read-only image=/boot/vmlinuz-2.6.3-7mdk label="263-7" root=/dev/md0 initrd=/boot/initrd-2.6.3-7mdk.img append="devfs=mount acpi=ht resume=/dev/hda6" read-only image=/boot/vmlinuz-smp label="linux-smp" root=/dev/md0 initrd=/boot/initrd-smp.img append="devfs=mount acpi=ht resume=/dev/hda6" read-only image=/boot/vmlinuz label="failsafe" root=/dev/md0 initrd=/boot/initrd.img append="failsafe acpi=ht resume=/dev/hda6 devfs=nomount" read-only other=/dev/fd0 label="floppy" unsafe =========================================================================== I was able to complete this task with another machine that was running grub, but I have not worked with lilo for a long time so I was hoping someone else might have something to sugguest? HELP! Thanks! |
Do I need to install lilo to the new drive? sda... or did it come over with the ghost image?
|
Quote:
and do not skipe the first bytes then the image includes the MBR, hence it inclus grub/lilo/whatever provided your bootloader is on the MBR (as opposed to being chainloaded) Quote:
|
Well I got it booting to it kinda, I used a rescue cd to chroot into the enviroment and install lilo to it again.
But now I am getting this, "Kernel panic: No init found. Try passing init= option to kernel" init seems to be living in /sbin Here is my lilo.conf ====================================================================================== # File generated by DrakX/drakboot # WARNING: do not forget to run lilo after modifying this file #boot=/dev/hda boot=/dev/sda map=/boot/map default="linux-smp" keytable=/boot/us.klt prompt nowarn timeout=100 message=/boot/message menu-scheme=wb:bw:wb:bw image=/boot/vmlinuz-smp label="linux-smp" # root=/dev/md0 root=/dev/sda5 initrd=/boot/initrd-smp.img append="devfs=mount acpi=ht" read-only image=/boot/vmlinuz label="failsafe" root=/dev/md0 initrd=/boot/initrd.img append="failsafe acpi=ht resume=/dev/hda6 devfs=nomount" read-only other=/dev/fd0 label="floppy" unsafe ======================================================================== thanks again. |
Quote:
|
I did have raid, I imaged a raid machine and moved it to a non-raid machine,
|
Ok, how about you ghost/copy the whole thing (provided it was raid 1)
and you reinstall grub rather than lilo? I have never tried to rebuild a raid 1, let alone make one disk of a raid 1 become a single HD. I think grub rather than lilo because it is more flexible. Am sorry no other thoughts for now |
All times are GMT -5. The time now is 04:34 AM. |