LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-17-2012, 12:06 AM   #1
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 318

Rep: Reputation: 40
Update Slackware 14 LILO


Hi all,

I like to dual boot 2 versions of distros in my machine.
I have already install Slackware 14 into my system.
2nd comes into my machine is RHEL 6.

I have install the RHEL 6 into system without any bootloader.

I want to boot my RHEL from LILO.
Is there anyway i can automatically update LILO or have to do it manually?
If manually, how do i do it? thanks...
 
Old 11-17-2012, 12:23 AM   #2
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by vitalstrike82 View Post
Hi all,

I want to boot my RHEL from LILO.
Is there anyway i can automatically update LILO or have to do it manually?
If manually, how do i do it? thanks...
You have to do it manually. It's quite simple.

Boot your Slackware system.

Create a mountpoint for your RHEL installation, for example:

Code:
# mkdir /mnt/rhel
If your RHEL install has a separate /boot partition, mount it on /mnt/rhel. Otherwise, just mount the RHEL root partition:

Code:
# mount /dev/sdXY /mnt/rhel
Change into the /mnt/rhel directory and look for the exact path to your kernel and the corresponding initrd.

Now edit /etc/lilo.conf and add a stanza for RHEL, which would look approximately like this:

Code:
image = /boot/vmlinuz-generic-3.2.29
  initrd = /boot/initrd.gz
  root = /dev/sda3
  label = Slackware
  read-only
image = /mnt/rhel/path/to/rhel-kernel
  initrd = /mnt/rhel/path/to/rhel-initrd
  root = /dev/sdXY -> the root partition of your RHEL installation
  label = RHEL
  read-only
Commit your changes:

Code:
# lilo
And that's it.

Cheers,

Niki
 
1 members found this post helpful.
Old 11-17-2012, 12:39 AM   #3
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 318

Original Poster
Rep: Reputation: 40
Hi Thanks for the information
In that case, is it i have to manually always mount the redhat partition to /mnt/rhel?

If yes, where can i set to mount the redhat partition automatically when ever i start the machine?
 
Old 11-17-2012, 01:08 AM   #4
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by vitalstrike82 View Post
Hi Thanks for the information
In that case, is it i have to manually always mount the redhat partition to /mnt/rhel?
Short answer: no you don't. Your Redhat partition only needs to be mounted while you invoke the 'lilo' command, so LILO can actually find your RHEL kernel and initrd. So manual mounting will do.

Now go try it and see if it works. Then I'll explain the rest (what to do when there's a kernel update) later.
 
Old 11-17-2012, 02:28 AM   #5
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 318

Original Poster
Rep: Reputation: 40
Hi,
I have tried to update lilo manually. It is not able to boot the rhel.

This is my partion profiles where sda2 is slackware root and sda4 is the rhel root:
Code:
/dev/sda4 


   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63     4000184     2000061   82  Linux swap
/dev/sda2   *     4000185    40001849    18000832+  83  Linux
/dev/sda3        40001850   103268351    31633251   83  Linux
/dev/sda4       103268352   156301311    26516480   83  Linux
root@chongming:/mnt/rhel/boot#
Below is what i have set in the lilo.conf file
Code:
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda2
  label = Linux
  read-only
image = /mnt/rhel/boot/vmlinuz-2.6.32-71.el6.i686
initrd = /mnt/rhel/boot/initramfs-2.6.32-71.el6.i686.img
root = /dev/sda4
label = RHEL
read-only
# Linux bootable partition config ends
I have tried using the liloconfig to set the lilo automatically. It does not detect my rhel partition.

Thanks for spending time look at my problem
 
Old 11-17-2012, 02:56 AM   #6
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Two things.

1. I'm not sure about this, but try to write your RHEL-related stanza like the first one, with indented lines.

2. With this configuration, when you invoke 'lilo', what does it actually say? Do you get any error messages?
 
Old 11-17-2012, 03:16 AM   #7
guyUnix
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by kikinovak View Post
Two things.

1. I'm not sure about this, but try to write your RHEL-related stanza like the first one, with indented lines.

2. With this configuration, when you invoke 'lilo', what does it actually say? Do you get any error messages?
Hi, may i know what is the RHEL-related stanza you are refering to? apologies for my poor understanding of english
 
Old 11-17-2012, 03:22 AM   #8
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
I have tried such a setup as kikinovak described several times (but some years ago) when I had multiboot with Slackware, Arch and Gentoo. It never worked.

I would either chainload RedHat, this means install lilo on RedHat but on the Superblock of the partition (here the line of lilo.conf in RedHat)
Code:
boot = /dev/sda4
and in Slackware's lilo.conf
Code:
other = /dev/sda4
  label = RedHat
  table = /dev/sda
But I don't know if RedHat supports lilo. Another way would be to install Grub on RedHat and boot both Slackware and Redhat with Grub (which can boot multiple systems).

Third way is to create a boot-directory for both Slackware and RedHat and put there both kernels.

Markus
 
Old 11-17-2012, 01:43 PM   #9
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 318

Original Poster
Rep: Reputation: 40
Hi Markush,

thanks for the helpful information.

If setting up LILO requires so much issues, is it possible if i install rhel hat again and try to install its boot loader into my current MBR which contains LILO?

Will it override the current loader in the MBR or create another MBR in the hard disk?

I'm quite new to this MBR, so do pardon me asking these basic questions.

Lastly if you can see my partitions, i'm currently having the slackware root as bootable. The rhel root /dev/sda4 is not a bootable disk. Will this create any problems?

Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63     4000184     2000061   82  Linux swap
/dev/sda2   *     4000185    40001849    18000832+  83  Linux
/dev/sda3        40001850   103268351    31633251   83  Linux
/dev/sda4       103268352   156301311    26516480   83  Linux
root@chongming:/mnt/rhel/boot#
 
Old 11-17-2012, 01:51 PM   #10
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
In my opinion the bootable flag is unimportant. I have not set it within the last few years, no issues.

As of the bootloader: the last bootloader which is installed overwrites the earlier settings. You'll only have to install Grub on RedHat (if it isn't already installed) and configure it. Please note that there are differences between the older and newer versions of Grub, but I can't help with this. Read the manpage.

Markus
 
1 members found this post helpful.
Old 11-17-2012, 02:34 PM   #11
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 318

Original Poster
Rep: Reputation: 40
Thanks markush.
You mentioned install the grub on rhel.

based on your experience, should it be install at the current MBR or in the root dir of rhel, /dev/sda4?

Thanks
 
Old 11-17-2012, 02:44 PM   #12
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
When you want Grub to boot both, Slackware and Rhel, you'll have to install it in the MBR of /dev/sda

Markus
 
1 members found this post helpful.
  


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
trying to update lilo on my usb hdd tells me /etc/lilo.conf wasn't found daweefolk Slackware 8 04-23-2010 01:20 AM
[SOLVED] Before Install: Slackware over Ubuntu (Grub to LILO), Dual w/Vista: LILO question Ubunoob001 Slackware - Installation 3 03-01-2010 03:01 PM
lilo ntldr missing after running lilo after slackware install SeriousArnoud Slackware 1 08-16-2005 09:07 AM
run /sbin/lilo after update IF you use LILO (don't know) jdblick SUSE / openSUSE 3 12-28-2004 03:06 PM
I install Slackware on small HDD with LILO, can't boot LILO? kleptophobiac Slackware 4 08-10-2003 04:50 PM

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

All times are GMT -5. The time now is 07:59 PM.

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