LinuxQuestions.org
Visit Jeremy's Blog.
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 05-04-2010, 01:49 PM   #1
skola
Member
 
Registered: Nov 2009
Posts: 66

Rep: Reputation: 19
Slack dependent on Lilo?


I understand that making any changes wrt to kernel on Slackware one has to rerun Lilo. If an install was made onto a disk already using other distros and Grub and wanting to keep Grub, do I still need to install Lilo?

I believe that one could use the 'chainloader' entry in Grub to boot the Slackware. And Lilo can be installed to its own / root partition.

I suppose really what I'm asking is Slackware totally dependent on Lilo?
 
Old 05-04-2010, 01:51 PM   #2
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware14.2 64-Bit Desktop, Devuan 2.0 ASCII Toshiba Satellite Notebook
Posts: 2,947

Rep: Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866
I wouldn't see why Slackware would depend solely on only LILO, otherwise Pat would have not even bothered to include GRUB in /extra. Once you install GRUB, I think it is safe to assume that LILO would no longer be relevant.

It is just that LILO has always been the default bootloader for Slackware, but certainly not a requirement. You can use GRUB alone if you want and ditch LILO completely.
 
Old 05-04-2010, 01:58 PM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233
Lilo is Slackware's bootloader of choice. You don't have to run it, though. You can install grub in slackware. You can get if from Slackware13 /extra (only in 32-bit Slack).

If you use other distros running grub, as you said, you can use chainloader or just directly point other distro's grub to you slackware kernel.
 
Old 05-04-2010, 02:10 PM   #4
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 4,670

Rep: Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836Reputation: 836
I have my computer setup to use the grub on my Puppy distro to boot straight into Slackware-current using the generic kernel. Whenever there is a kernel upgrade I just edit my kernel line to vmlinuz and delete the initrd line of my slack menu.lst entry to boot into Slackware upgrade. Then I'm able to rerun mkinitrd and edit my grub file to the new kernel upgrade. If you chainload to Slackware, don't forget to rerun lilo after upgrading before rebooting, which I tend to do, so that's why I do it this way. I don't use grub2 so I don't know how it would work on grub2. As for your question, no you don't have to use lilo.

Last edited by colorpurple21859; 05-04-2010 at 02:14 PM.
 
Old 05-04-2010, 02:31 PM   #5
TNWestTex
Member
 
Registered: May 2006
Location: Tennessee
Distribution: current, rawhide
Posts: 88

Rep: Reputation: 16
Using Grub

Switched to grub long ago. I use a separate boot partition and keep several kernels.
Code:
  /boot:
  total used in directory 51080 available 19174
  drwxr-xr-x  5 root root    2048 2010-05-04 13:52 .
  drwxr-xr-x 36 root root    4096 2008-04-11 18:53 ..
  lrwxrwxrwx  1 root root      37 2010-04-29 11:40 README.initrd -> /usr/doc/mkinitrd-1.4.5/README.initrd
  lrwxrwxrwx  1 root root      32 2010-05-04 12:19 System.map -> System.map-huge-smp-2.6.33.3-smp
  -rw-r--r--  1 root root 1189543 2010-01-29 20:34 System.map-generic-smp-2.6.32.7-smp
  -rw-r--r--  1 root root 1320248 2010-04-12 00:47 System.map-generic-smp-2.6.33.2-smp
  -rw-r--r--  1 root root 1330484 2010-05-01 00:29 System.map-generic-smp-2.6.33.3-smp
  -rw-r--r--  1 root root 1869437 2010-01-29 23:28 System.map-huge-smp-2.6.32.7-smp
  -rw-r--r--  1 root root 1589248 2010-04-12 01:20 System.map-huge-smp-2.6.33.2-smp
  -rw-r--r--  1 root root 2101907 2010-05-01 01:27 System.map-huge-smp-2.6.33.3-smp
   lrwxrwxrwx  1 root root      28 2010-05-04 12:19 config -> config-huge-smp-2.6.33.3-smp
  -rw-r--r--  1 root root  103375 2010-01-29 20:34 config-generic-smp-2.6.32.7-smp
  -rw-r--r--  1 root root  106568 2010-04-12 00:47 config-generic-smp-2.6.33.2-smp
  -rw-r--r--  1 root root  108627 2010-05-01 00:29 config-generic-smp-2.6.33.3-smp
  -rw-r--r--  1 root root  103393 2010-01-29 23:28 config-huge-smp-2.6.32.7-smp
  -rw-r--r--  1 root root  106542 2010-04-12 01:20 config-huge-smp-2.6.33.2-smp
  -rw-r--r--  1 root root  108601 2010-05-01 01:27 config-huge-smp-2.6.33.3-smp
  -rw-r--r--  1 root root    5040 2010-02-16 15:44 diag1.img
  drwxr-xr-x  2 root root    1024 2010-05-04 13:47 grub
  drwxr-xr-x 11 root root    1024 2010-05-04 13:45 initrd-tree
  -rw-r--r--  1 root root  863929 2010-02-11 16:41 initrd.32.7.gz
  -rw-r--r--  1 root root 1911637 2010-04-29 13:59 initrd.33.2.gz
  -rw-r--r--  1 root root 1911669 2010-05-04 13:45 initrd.33.3.gz
  drwx------  2 root root   12288 2007-03-15 13:54 lost+found
  -rw-r--r--  1 root root   14174 2010-02-14 20:57 slack.bmp
  lrwxrwxrwx  1 root root      29 2010-05-04 12:19 vmlinuz -> vmlinuz-huge-smp-2.6.33.3-smp
  -rw-r--r--  1 root root 2361456 2010-01-29 20:34 vmlinuz-generic-smp-2.6.32.7-smp
  -rw-r--r--  1 root root 2625392 2010-04-12 00:47 vmlinuz-generic-smp-2.6.33.2-smp
  -rw-r--r--  1 root root 2660640 2010-05-01 00:29 vmlinuz-generic-smp-2.6.33.3-smp
  -rw-r--r--  1 root root 4928592 2010-01-29 23:28 vmlinuz-huge-smp-2.6.32.7-smp
  -rw-r--r--  1 root root 5381232 2010-04-12 01:20 vmlinuz-huge-smp-2.6.33.2-smp
  -rw-r--r--  1 root root 5419552 2010-05-01 01:27 vmlinuz-huge-smp-2.6.33.3-smp
The corresponding grub.conf is
Code:
# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'.  Mon 02 Apr 2007 11:47:02 AM EDT
#
# Start GRUB global section
timeout=30
default=0
color light-gray/blue black/light-gray
# End GRUB global section
# Linux bootable partition config begins
  title Current 33.3 on (/dev/hdb6)
  root (hd1,1)
  kernel /vmlinuz-generic-smp-2.6.33.3-smp root=/dev/sdb6 3 ro vga=ask nomodeset
  initrd /initrd.33.3.gz
# Linux bootable partition config ends
# Linux bootable partition config begins
  title Current 33.2 on (/dev/hdb6)
  root (hd1,1)
  kernel /vmlinuz-generic-smp-2.6.33.2-smp root=/dev/sdb6 3 ro vga=ask nomodeset
  initrd /initrd.33.2.gz
# Linux bootable partition config ends
# Linux bootable partition config begins
  title Current 32.7 on (/dev/hdb6)
  root (hd1,1)
  kernel /vmlinuz-generic-smp-2.6.32.7-smp root=/dev/sdb6 3 ro vga=791
  initrd /initrd.32.7.gz
# Linux bootable partition config ends
# Linux bootable partition config begins
  title Current 33.3-huge on (/dev/hdb6)
  root (hd1,1)
  kernel /vmlinuz-huge-smp-2.6.33.3-smp root=/dev/sdb6 3 ro vga=normal video=vesa:off
# Linux bootable partition config ends
# Linux bootable partition config begins
  title Current 33.2-huge on (/dev/hdb6)
  root (hd1,1)
  kernel /vmlinuz-huge-smp-2.6.33.2-smp root=/dev/sdb6 3 ro nomodeset vga=ask
# Linux bootable partition config ends
# Linux bootable partition config begins
  title Current 32.7-huge on (/dev/hdb6)
  root (hd1,1)
  kernel /vmlinuz-huge-smp-2.6.32.7-smp root=/dev/sdb6 3 ro vga=791
# Linux bootable partition config ends
# Linux bootable partition config ends
  title Fedora (on /dev/hda5)
  rootnoverify (hd0)
  makeactive
  chainloader +1
# Linux bootable initrd config begins
title --- For help press 'c', type: 'help'
root (hd0)
title --- For usage examples, type: 'cat /boot/grub/grub.txt'
root (hd0)
Slack doesn't run anything like grubby to update grub.conf. You do it yourself with a text editor.
 
Old 05-04-2010, 04:27 PM   #6
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,719

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
Quote:
Originally Posted by sycamorex View Post
Lilo is Slackware's bootloader of choice. You don't have to run it, though. You can install grub in slackware. You can get if from Slackware13 /extra (only in 32-bit Slack).
In case it isn't clear to the OP, *that* grub still works for Slackware64.
 
Old 05-04-2010, 04:58 PM   #7
skola
Member
 
Registered: Nov 2009
Posts: 66

Original Poster
Rep: Reputation: 19
ok, thanks guys.

I'd run a brief install on my test pc which already had other distros. I hadn't bothered about doing any updates or even looking at the repos so I didn't know about the /extra.

Quote:
colorpurple21859 I have my computer setup to use the grub on my Puppy distro to boot straight into Slackware-current using the generic kernel. Whenever there is a kernel upgrade I just edit my kernel line to vmlinuz and delete the initrd line of my slack menu.lst entry to boot into Slackware upgrade. Then I'm able to rerun mkinitrd and edit my grub file to the new kernel upgrade. If you chainload to Slackware, don't forget to rerun lilo after upgrading before rebooting, which I tend to do, so that's why I do it this way. I don't use grub2 so I don't know how it would work on grub2. As for your question, no you don't have to use lilo.
This was the main thinking behind my q. Whether the mechanism of re-running lilo for the new vmlinuz/initrd after an upgrade meant it still depended on it; not so much for Lilo being the overall multi bootloader. Actually I don't have that install just now but wanted to have some idea if I gave it a proper tryout.

Quote:
TNWestTex Switched to grub long ago. I use a separate boot partition and keep several kernels.
er, yes, so I see :-)

the most I had before was 5 entries, but that new Ubuntu 10.4 has doubled that alone and the disk had only 3 to start! I'll need to look more closely when I finish here.
 
Old 05-04-2010, 05:19 PM   #8
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
For the record, any grub can chainload LILO installed to the superblock of the root partition. However depending on the inode size used in Slackware (for ext3/4 filesystems) and whether or not the GRUB from the other distro has been patched to support larger inode sizes might prevent it from directly booting Slackware. If the GRUB you have installed is even moderately new then it shouldn't be a problem but just a heads up.
 
Old 05-04-2010, 11:38 PM   #9
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
I'm a little dopey due to the allergy meds, so maybe it was said and I missed it, but lilo only has to be run after a kernel upgrade IF lilo is the bootloader you are using or you are chainloading lilo with grub. When using only grub to boot a slack system or a multiboot system, you simply have to edit your menu.lst (or menu.cfg for grub2?) file to account for the new kernel, or re-link your symlinks (such as vmlinuz, etc). There's no point in running lilo if it isn't being used.
 
Old 05-07-2010, 04:48 PM   #10
vigi
Member
 
Registered: May 2009
Location: australia
Distribution: slackware
Posts: 187

Rep: Reputation: 30
I have two questions relating to this topic, I am hoping to get some help with.

1; grub will not charnload lilo or grub2 on my system.

I am using grub legacy as a boot manager on a separate 100MB ext2 partition; and booting slackware and ubuntu directly; however I have not been able to chainload lilo or grub2 ubuntu.The other peculiarity is Slackware will not boot with a uuid entry from my grub.
The slackware with lilo is on the /root ext4 fs sdb6 partition.

2; Is lilo required when running slackware current to install the new kernel?
The problem I struck by not using lilo at all on current; when a kernel is upgraded with the slackpkg system it does not give you the old kernel to fall back to (as ubuntu does). I am now using slackware stable again-because I got out of my depth.



menu.lst
# Linux bootable partition config begins
title ubuntu Linux (on /dev/sdb5)
root (hd1,4)
# kernel /boot/vmlinuz root=/dev/sdb5 ro vga=normal
kernel /boot/vmlinuz-2.6.31-21-generic root=UUID=38d3515f-b895-4129-a409-412a12d7988d ro quiet splash
initrd /boot/initrd.img-2.6.31-21-generic
# Linux bootable partition config ends
#
#
# Linux bootable partition config begins
title slackware Linux (on /dev/sdb6)
root (hd1,5)
kernel /boot/vmlinuz root=/dev/sdb6 ro vga=normal
# Linux bootable partition config ends
#
# Linux bootable partition config begins
title Ubuntu chainloader (on /dev/sdb5)
root (hd1,4)
chainloader +1
# Linux bootable partition config ends
#
# Linux bootable partition config begins
title slackware chainloader (on /dev/sdb6)
root (hd1,5)
chainloader +1
# Linux bootable partition config ends
#
#
 
Old 05-08-2010, 05:48 PM   #11
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,719

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
Quote:
Originally Posted by vigi View Post
2; Is lilo required when running slackware current to install the new kernel?
The problem I struck by not using lilo at all on current; when a kernel is upgraded with the slackpkg system it does not give you the old kernel to fall back to (as ubuntu does).
Well, yeah. You did upgrade the kernel. When you upgrade any package, the old version goes away.

As it so happens, slackroll provides a slackroll kernel-upgrade command which installs the new kernel so that you have a fallback. You can remove the old kernel via the slackroll kernel-clean command. See http://rg3.github.com/slackroll/.

(Frankly, I find the CLI for slackroll annoyingly complicated, but you can do a lot with it.)

Of course, if you are using grub then you can interactively figure out what menu.lst changes you should make. I've lost track of the number of times that I've forgotten to run lilo or forgot to update the *bleeping* lilo.conf file. Even if I screw up changing menu.lst, I can still fix it via grub's interactive boot facility. Grub's great!
 
Old 05-08-2010, 07:12 PM   #12
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
I do like grub, but since I always have a cutom kernel it's not really an issue for me when I forget to run lilo. Slackpkg doesn't upgrade custom kernel entries.
 
Old 05-08-2010, 09:08 PM   #13
forum1793
Member
 
Registered: May 2008
Posts: 312

Rep: Reputation: 34
Quote:
Originally Posted by vigi View Post
1; grub will not charnload lilo or grub2 on my system.

I am using grub legacy as a boot manager on a separate 100MB ext2 partition; and booting slackware and ubuntu directly; however I have not been able to chainload lilo or grub2 ubuntu.The other peculiarity is Slackware will not boot with a uuid entry from my grub.
The slackware with lilo is on the /root ext4 fs sdb6 partition.

2; Is lilo required when running slackware current to install the new kernel?
The problem I struck by not using lilo at all on current; when a kernel is upgraded with the slackpkg system it does not give you the old kernel to fall back to (as ubuntu does). I am now using slackware stable again-because I got out of my depth.



menu.lst
# Linux bootable partition config begins
title ubuntu Linux (on /dev/sdb5)
root (hd1,4)
# kernel /boot/vmlinuz root=/dev/sdb5 ro vga=normal
kernel /boot/vmlinuz-2.6.31-21-generic root=UUID=38d3515f-b895-4129-a409-412a12d7988d ro quiet splash
initrd /boot/initrd.img-2.6.31-21-generic
# Linux bootable partition config ends
#
#
# Linux bootable partition config begins
title slackware Linux (on /dev/sdb6)
root (hd1,5)
kernel /boot/vmlinuz root=/dev/sdb6 ro vga=normal
# Linux bootable partition config ends
#
# Linux bootable partition config begins
title Ubuntu chainloader (on /dev/sdb5)
root (hd1,4)
chainloader +1
# Linux bootable partition config ends
#
# Linux bootable partition config begins
title slackware chainloader (on /dev/sdb6)
root (hd1,5)
chainloader +1
# Linux bootable partition config ends
#
#
2. First, no LILO is not required if you are using grub. Not even to install it.

1. Why are you chainloading? I thought that was really only needed to dual boot with windows. I could be wrong. Also, I've never called out UUID in menu.lst. Not sure why that might be needed.

If you ran lilo on the MBR where you had grub, (assuming you want to keep grub) you will need to reinstall it.
 
Old 05-09-2010, 02:21 PM   #14
vigi
Member
 
Registered: May 2009
Location: australia
Distribution: slackware
Posts: 187

Rep: Reputation: 30
1. Why are you chainloading? I thought that was really only needed to dual boot with windows. I could be wrong. Also, I've never called out UUID in menu.lst. Not sure why that might be needed.
--------------------------------------
Currently I am not chainloading; as those entries do not work. All systems work fine with the direct boot entries so the Grub legacy I am using has been updated to read ext4, however I cannot understand why the chainloading of grub2-ubuntu or lilo-slackware does not work.

I did not have lilo installed at all previously; but thought by using it in the root partition would keep my system true to the standard install and kernel upgrades etc.

Also by at least loading each system with it's own bootloader, I can simply copy the boot entry to manually edit the menu.lst of my grub boot manager. Including the uuid entry that ubuntu uses as standard now.

My work system is slackware, however I enjoy testing other systems.
 
Old 05-09-2010, 02:38 PM   #15
vigi
Member
 
Registered: May 2009
Location: australia
Distribution: slackware
Posts: 187

Rep: Reputation: 30
Thanks Richard:
As it so happens, slackroll provides a slackroll kernel-upgrade command which installs the new kernel so that you have a fallback. You can remove the old kernel via the slackroll kernel-clean command. See http://rg3.github.com/slackroll/.

This looks interesting---- The more I read; the more I understand how much I do not know.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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] LILO fails when run from live CD after installing Slack (skipped LILO during setup) sysfce2 Linux - Newbie 7 08-04-2009 12:16 AM
Dual-boot Slack/Ubuntu-install slack over XP-help with weird partition layout & lilo? linus72 Slackware 2 05-23-2009 10:03 AM
WinXP/Slack (LILO) Casket Linux - Newbie 7 10-16-2005 07:42 AM
Lilo with 2 Windows+Slack? nivek7 Linux - Software 3 08-27-2004 04:37 PM
LILO, WinXP and Slack 9.0 - need help flame Slackware - Installation 4 02-08-2004 03:33 PM

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

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