Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> Lilo Bootloader Help Need To Add Redhat 9, In Mandrake 9.1
post Oct 23 2003, 03:13 AM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 23-October 03
Member No.: 1,678

Allright I have a Master / Slave set up

Mandrake 9.1 On Master

Redhat 9 On Slave

Well redhat isn't on Mandrake's lilo bootloader I REALLY need to add it..

But I don't know how.

If anyone could help me I would be forever thankful.

Thanks! biggrin.gif
Go to the top of the page
+Quote Post
post Oct 23 2003, 10:37 PM
Post #2

Its GNU/

Group: Admin
Posts: 1,254
Joined: 21-September 02
From: St John's, Newfoundland, Canada
Member No.: 3

If your bootloader is setup with Mandrake, then, while in mandrake, you should mount your rh9 partition and copy the kernel image over (normally in /boot on the redhat install) to your mandrake boot directory. From there, you can add an additional entry in your bootloader (sorry, you didn't mention what you were running) to load up redhat from your /dev/hdb1 partition.

I could give you more specific instructions if you tell me your partition setup for both disks as well as what bootloader you are running (lilo? grub?).

Corey Quilliam
(former) Administrator

Want to help out Check out our Linuxhelp Wiki and see if there are some articles you would like to submit!!

Ubuntu 8.04 64-bit - Work Laptop (HP-Compaq NC6400 Core2)
Kubuntu 8.04 64-bit - Desktop (HP m8120n QuadCore)
Ubuntu 6.04 - Server (I'm not upgrading this baby until support runs out in 2012) (Some old POS dell)
Go to the top of the page
+Quote Post
post Oct 24 2003, 06:58 AM
Post #3

Its GNU/

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151

What duende said will work ... LILO is the default laoder, and it looks like that is what you used...

what you need to do is boot to mandrake, and mount the redhat boot partiton.

You said RedHat was a Slave drive ... but you didn't say if it was primary slave or secondary slave ... primary slave is /dev/hdb and secondary slave is /dev/hdd ... I will assume /dev/hdb (primary slave), use /dev/hdd if you use secondary slave...

When booted up in mandrake and logged in as root, make a directory in the .mnt directory called redhat...(mkdir /mnt/redhat).

Figure out the partitons on the redhat drive and what each is for...fdisk -l /dev/hdb. As a minumum there will be a swap and a root partition. The results will look something like this:

  Device Boot    Start       End    Blocks   Id  System
/dev/hdb1   *         1        13    104391   83  Linux
/dev/hdb2            14       144   1052257+  82  Linux swap
/dev/hdb3           145      7476  58894290   83  Linux

Looking at my example, hdb2 is the swap partition and hdb1 and hdb3 are Linux partitons. SInce hdb1 is very small, I would assume it is the boot partition so hdb3 is the root partition forthe redhat install...

SO ... after creating the /mnt/redhat directory, I would issue the following command to mount the redhat directory and read it from Mandrake:

mount /dev/hdb3 /mnt/redhat

I would then go to the directory /mnt/redhat/boot (cd /mnt/redhat/boot and see if the kernel files are there (ls -al). If the /mnt/redhat/boot directory is empty, then the RedHat boot partition is seperate ... in our list above we thought it might be /dev/hdb1 ... it probably is...

So now I would move out of the /mnt/redhat/boot directory (cd ..) so I can mount the redhat boot directory (mount /dev/hdb1 /mnt/redhat/boot), then go back to the /mnt/redhat/boot directory (cd /mnt/redhat/boot) and look at the files there again (ls -al), now you should have all the files (if you didn't before)...

now, copy the kernel you want to boot from (and the and initrd file for that kernel) to the mandrake boot directory ... the easiest thing to do is to figure out the kernel version you are using (mine is 2.4.20-20.9, yours may be different...) and issue the command (from within the /mnt/redhat/boot directory):

cp *2.4.20-20.9* /boot

Then you should be able to boot OK after modifiying the mandrake lilo.conf file and rerunning lilo...

open the file /etc/lilo.conf for editing and copy lines from the current boot kernel and paste it to the bottom of the file...the lines should look something like this:

       append="devfs=mount acpi=ht splash=silent"

Then edit the lies you pasted to read this:

       label="RedHat 9"
       append="devfs=mount acpi=ht splash=silent"

You would use whatever the vmlinuz and initrd files you copied over were(not necessarily 2.4.20-20.9, your kernel number may have been different) and you would use your actual redhat root partition (maybe hdb1 or hdd3, etc.)....also you may want to remove all but devfs=mount from within the quotes of the append line...then run the command:


If you get any errors, post the results and we can probably help you...

If lilo gives you no errors, you should be able to unmount the redhat partitioins and reboot ...

cd /
umount /mnt/redhat/boot
umount /mnt/redhat

Johnny Hughes
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 24th June 2018 - 05:58 AM