LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 06-01-2006, 02:50 PM   #1
legacyboy
Member
 
Registered: Nov 2004
Location: Winnipeg
Distribution: Gentoo, Ubuntu, Suse
Posts: 42

Rep: Reputation: 15
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!
 
Old 06-02-2006, 09:29 AM   #2
legacyboy
Member
 
Registered: Nov 2004
Location: Winnipeg
Distribution: Gentoo, Ubuntu, Suse
Posts: 42

Original Poster
Rep: Reputation: 15
Do I need to install lilo to the new drive? sda... or did it come over with the ghost image?
 
Old 06-02-2006, 09:58 AM   #3
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
Quote:
Do I need to install lilo to the new drive? sda... or did it come over with the ghost image?
AFAIK, if you use dd (and ghost probably use that method), so if you use dd
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:
basically need to edit the config file to point to sd now and not md or hd.
Not sure how to help with that
 
Old 06-02-2006, 12:16 PM   #4
legacyboy
Member
 
Registered: Nov 2004
Location: Winnipeg
Distribution: Gentoo, Ubuntu, Suse
Posts: 42

Original Poster
Rep: Reputation: 15
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.
 
Old 06-02-2006, 03:14 PM   #5
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
Quote:
root=/dev/sda5
If you have raid this sounds wrong
 
Old 06-05-2006, 10:32 AM   #6
legacyboy
Member
 
Registered: Nov 2004
Location: Winnipeg
Distribution: Gentoo, Ubuntu, Suse
Posts: 42

Original Poster
Rep: Reputation: 15
I did have raid, I imaged a raid machine and moved it to a non-raid machine,
 
Old 06-05-2006, 02:25 PM   #7
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,606

Rep: Reputation: 53
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
 
  


Reply



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
real, real, real, basic computer for my Mom shengchieh General 3 12-18-2005 12:02 AM
Resolution Pickle! Please Help! Geepak Linux - Newbie 4 02-08-2005 09:20 AM
dual display question - real real newbie !! Jay_Dee007 Linux - Newbie 1 09-29-2003 08:33 AM
Real Programmers Real People Real CS Students nakkaya General 5 07-04-2003 02:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 08:43 AM.

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