| Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-01-2006, 02:50 PM
|
#1
|
|
Member
Registered: Nov 2004
Location: Winnipeg
Distribution: Gentoo, Ubuntu, Suse
Posts: 42
Rep:
|
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!
|
|
|
|
06-02-2006, 09:29 AM
|
#2
|
|
Member
Registered: Nov 2004
Location: Winnipeg
Distribution: Gentoo, Ubuntu, Suse
Posts: 42
Original Poster
Rep:
|
Do I need to install lilo to the new drive? sda... or did it come over with the ghost image?
|
|
|
|
06-02-2006, 09:58 AM
|
#3
|
|
Senior Member
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,601
Rep:
|
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
|
|
|
|
06-02-2006, 12:16 PM
|
#4
|
|
Member
Registered: Nov 2004
Location: Winnipeg
Distribution: Gentoo, Ubuntu, Suse
Posts: 42
Original Poster
Rep:
|
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.
|
|
|
|
06-02-2006, 03:14 PM
|
#5
|
|
Senior Member
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,601
Rep:
|
If you have raid this sounds wrong
|
|
|
|
06-05-2006, 10:32 AM
|
#6
|
|
Member
Registered: Nov 2004
Location: Winnipeg
Distribution: Gentoo, Ubuntu, Suse
Posts: 42
Original Poster
Rep:
|
I did have raid, I imaged a raid machine and moved it to a non-raid machine,
|
|
|
|
06-05-2006, 02:25 PM
|
#7
|
|
Senior Member
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,601
Rep:
|
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:14 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|