LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slack dependent on Lilo? (https://www.linuxquestions.org/questions/slackware-14/slack-dependent-on-lilo-805912/)

skola 05-04-2010 01:49 PM

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?

Jeebizz 05-04-2010 01:51 PM

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.

sycamorex 05-04-2010 01:58 PM

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.

colorpurple21859 05-04-2010 02:10 PM

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.

TNWestTex 05-04-2010 02:31 PM

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.

Richard Cranium 05-04-2010 04:27 PM

Quote:

Originally Posted by sycamorex (Post 3957222)
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.

skola 05-04-2010 04:58 PM

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.

T3slider 05-04-2010 05:19 PM

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.

damgar 05-04-2010 11:38 PM

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.

vigi 05-07-2010 04:48 PM

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
#
#

Richard Cranium 05-08-2010 05:48 PM

Quote:

Originally Posted by vigi (Post 3960788)
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!

damgar 05-08-2010 07:12 PM

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.

forum1793 05-08-2010 09:08 PM

Quote:

Originally Posted by vigi (Post 3960788)
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.

vigi 05-09-2010 02:21 PM

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.

vigi 05-09-2010 02:38 PM

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.


All times are GMT -5. The time now is 10:05 AM.