LinuxQuestions.org
Visit Jeremy's Blog.
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 03-25-2014, 02:10 PM   #1
Raied_F1
Member
 
Registered: Mar 2014
Location: Uk
Distribution: FreeBSD
Posts: 83

Rep: Reputation: Disabled
Queastion about lilo


Hi ther
i have windows7 and slackware 14.1 and i use lilo . now i want try other distro but i dont grup . how to make lilo default looder after install new distro ?
best regards
 
Old 03-25-2014, 02:17 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
In Slackware 14.1, just add a new stanza for the new distribution in /etc/lilo.conf then run "lilo -t -v" and if all goes well "lilo".
 
Old 03-25-2014, 02:46 PM   #3
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 288

Rep: Reputation: 155Reputation: 155
There are two basic approaches you could take.

The first is, when installing your second distro, to have the installer write the GRUB bootloader to the partition's boot sector (as opposed to installing GRUB to the Master Boot Record). You then boot into Slackware and edit lilo.conf to add the new partition as a boot option. For example:

Code:
other = /dev/sda6
  label = Debian
This will instruct Lilo (installed in the MBR) to transfer control over to GRUB (installed in sda6's boot sector). Remember to run the lilo command to incorporate your changes into the bootloader.

Alternatively, you can forgo installing GRUB altogether and, after installing your second distro, boot into Slackware and set up lilo.conf to boot the kernel of the second distro directly. In order to do this, the lilo command will need to be able to locate that kernel. This can be accomplished by mounting the second distro's partition (e.g., "mount /dev/sda6 /mnt/tmp/") and specifying the kernel's location in a new image option in lilo.conf:

Code:
image = /mnt/tmp/boot/debians-kernal-image
  root = /dev/sda6
  label = Debian
  read-only
The second approach has the disadvantage that kernel updates for the second distro will require that you go through this process of remounting and running lilo.
 
  


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
[SOLVED] Edit lilo.conf, run /sbin/lilo, but lilo won't take changes lukameen Slackware 2 02-10-2012 12:10 PM
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
[SOLVED] LILO fails when run from live CD after installing Slack (skipped LILO during setup) sysfce2 Linux - Newbie 7 08-04-2009 12:16 AM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 05:00 PM

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

All times are GMT -5. The time now is 05:26 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