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 05-31-2011, 05:27 PM   #16
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142

Quote:
Originally Posted by afreitascs View Post
Building on the topic, the question remains of why Slackware, grub is not included as an option during installation, in addition to lilo?
Here's a post by Pat V
http://www.linuxquestions.org/questi...2/#post4197960

Last edited by piratesmack; 05-31-2011 at 05:38 PM.
 
Old 05-31-2011, 07:04 PM   #17
afreitascs
Member
 
Registered: Aug 2004
Distribution: Debian
Posts: 443

Rep: Reputation: 30
This was in 12-20-2010! If Slackware was as conservative as well, we would not have left the first version of Slackware.
Major distros use grub today, were they wrong?
 
Old 05-31-2011, 08:08 PM   #18
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
What we have works fine for most people.

There is a grub package for those that choose to use it and nothing prevents them from doing just that.

Other distros are not Slackware and I don't see how the comparison is even valid.

If the Pro's of those other distros outweigh the cons of said distros then I'd suggest you either Customise Slackware to suit your needs or use another distro.

What's next? Are you going to ask for an option in the Installer for a Graphical Setup?
 
1 members found this post helpful.
Old 05-31-2011, 08:47 PM   #19
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,969

Rep: Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548Reputation: 1548
Quote:
Originally Posted by afreitascs View Post
Saying that lilo is default Slackware does not make sense
Huh? Lilo IS the default boot loader in Slackware. Makes perfect sense.
 
Old 05-31-2011, 09:10 PM   #20
afreitascs
Member
 
Registered: Aug 2004
Distribution: Debian
Posts: 443

Rep: Reputation: 30
Quote:
Originally Posted by mRgOBLIN View Post
What we have works fine for most people.

There is a grub package for those that choose to use it and nothing prevents them from doing just that.

Other distros are not Slackware and I don't see how the comparison is even valid.

If the Pro's of those other distros outweigh the cons of said distros then I'd suggest you either Customise Slackware to suit your needs or use another distro.

What's next? Are you going to ask for an option in the Installer for a Graphical Setup?
I have very little knowledge of Unix / Linux. I like Slackware and I
continue with it, at least for now.

Said is said!

If I were younger, and the longest time, I might have more interest in
contribution, but it makes no sense ...

Very many thanks for keeping Slackware Live (honestly)! :-)
 
Old 05-31-2011, 09:23 PM   #21
afreitascs
Member
 
Registered: Aug 2004
Distribution: Debian
Posts: 443

Rep: Reputation: 30
Quote:
Originally Posted by chrisretusn View Post
Huh? Lilo IS the default boot loader in Slackware. Makes perfect sense.
I think that in life, there is no defaults. People who cling to patterns, age earlier ...
 
0 members found this post helpful.
Old 06-01-2011, 05:54 AM   #22
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by Erik_FL View Post
Disadvantages to GRUB 0.97 (legacy)
  • Difficult to add a boot screen
  • Not automatically installed by Slackware setup
  • Whenever a new file system type comes along you need to wait until grub supports it
  • You can never be 100% certain that the grub file system drivers are 100% compatible with the OS ones
 
Old 06-01-2011, 11:24 AM   #23
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
I switched to GRUB in an earlier Slackware because the need to re-run the lilo command, which sometimes would even fail, because I was moving stuff around a lot. But that was before the GRUB people started being annoying about deprecating grub (legacy, as they call it) even before the documentation for GRUB2 was available. So I ended up "writing off GRUB" altogether because of an annoying core community around it. But I've never liked LILO's hackish ways to find the kernel. I still use GRUB1 (I don't call it legacy) for now.

I'm looking for something better. I don't need all the fancy stuff of GRUB2, although a boot image and basic menu would be nice. A very simple bootloader that loads the kernel raw from a partition (and maybe initrd/initramfs from behind the kernel or from a 2nd partition) would be all I need. The idea of using 1 or 2 partitions just for that seemed to be a waste until GPT came along. Now there are plenty enough to even do a multiboot this way.

So I've been thinking of writing a boot loader like this. Or maybe I'll explore using SYSLINUX or EXTLINUX or hacking it to do GPT.

And I'd like to experiment and see if I can make a small 446 byte bootloader bring the kernel in from a GPT partition, so the bootloader doesn't need to be squatter on other disk sectors.
 
Old 06-02-2011, 05:00 AM   #24
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by Skaperen View Post
A very simple bootloader that loads the kernel raw from a partition (and maybe initrd/initramfs from behind the kernel or from a 2nd partition) would be all I need.
Isn't that exactly what lilo does? The mapping is entirely done by the kernel at installation time (ioctl calls). The mapping information is cleanly stored in a map file. No side effects. Only burden on you: you need to remember to refresh the map every time you change a boot relevant file.
 
Old 06-02-2011, 12:11 PM   #25
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
I myself have used both over the years (lilo used to be the default boot loader for redhat systems) and haven't had problems with either. Personally i would just go with the default for the distribution you are using since they also usually come with the utilities for updating those boot loaders.
Just my 2 cents
 
1 members found this post helpful.
Old 06-02-2011, 03:03 PM   #26
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by Martinus2u View Post
Isn't that exactly what lilo does? The mapping is entirely done by the kernel at installation time (ioctl calls). The mapping information is cleanly stored in a map file. No side effects. Only burden on you: you need to remember to refresh the map every time you change a boot relevant file.
I think he/she wants the kernel/initrd to be raw written to a partition.

e.g. cat vmlinuz > /dev/sdx1 ; cat initrd.gz > /dev/sdx2
 
Old 06-02-2011, 05:08 PM   #27
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by Martinus2u View Post
Isn't that exactly what lilo does? The mapping is entirely done by the kernel at installation time (ioctl calls). The mapping information is cleanly stored in a map file. No side effects. Only burden on you: you need to remember to refresh the map every time you change a boot relevant file.
The difference would be that the bootloader I want to make would simply look up the partition table entry, and treat that as a sector range. BTW, one of the reasons I want to do such a bootloader is that it makes it easier to construct hard drive images.

But still, I could hack the lilo configure time program, teach it to generate the sector ranges from partition data, and construct the maps like that. The map would just be a file of sequential numbers. But I would not need to re-run the lilo command if I place a different kernel in the partition where I keep a kernel, since the sectors will still be the same. The only issue to resolve is the oversizing of the partition. It would be spending time loading sectors it does not need to load. The loader I would make would either look for a header in front of the kernel that has the length, or look for a sentinel placed behind the kernel (an sha256 of the name of my bootloader ... what's the chance of that ever being a compilation product of the kernel).
 
Old 06-02-2011, 05:14 PM   #28
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by piratesmack View Post
I think he/she wants the kernel/initrd to be raw written to a partition.

e.g. cat vmlinuz > /dev/sdx1 ; cat initrd.gz > /dev/sdx2
Yes! That! Or variations like:

cat vmlinuz sentinel initrd.gz sentinel sentinel > /dev/sdx2

where "sentinel" is a file containing the name of my bootloader hashed with sha256 (a copy of which would be integrated in the bootloader, too).

FYI, one of the reasons I want to have this is to be an easy way to construct drive image files which would later be dd'd to flash drives.

Last edited by Skaperen; 06-03-2011 at 07:22 AM. Reason: s/constrict/construct/
 
Old 06-04-2011, 02:06 AM   #29
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by Skaperen View Post
Yes! That! Or variations like:

cat vmlinuz sentinel initrd.gz sentinel sentinel > /dev/sdx2

where "sentinel" is a file containing the name of my bootloader hashed with sha256 (a copy of which would be integrated in the bootloader, too).

FYI, one of the reasons I want to have this is to be an easy way to construct drive image files which would later be dd'd to flash drives.
I see. That would work of course. I'd ask myself if it's worth the effort, though.
 
Old 06-04-2011, 07:01 AM   #30
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 441

Rep: Reputation: 141Reputation: 141
Lilo has the advantage that it works in almost every scenario. I have read some posts here that grub couldn't boot on some motherboards (i think it was some asus boards) when the partitions didn't follow dos compatibility. Maybe it is the board's BIOS fault and not grub's but lilo works so it is a nice default choice.

Also lilo is simple/stupid and doesn't need to know the partitioning scheme or filesystem. The disadvantage of this is that we need to run lilo when the kernel is changed but the great advantage is that because of this, lilo works everywhere. I used GPT ever since it was supported in the linux kernel and because GPT has a fake "protective" MBR, i could install lilo there and boot slackware fine. Eventually there was a patch for grub legacy but many people said it was not correct. Anyway, as Martinus2u said, you need to wait for grub to get support for the X thing you might want while lilo works out of the box.
 
  


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
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 09:37 PM
[SOLVED] Before Install: Slackware over Ubuntu (Grub to LILO), Dual w/Vista: LILO question Ubunoob001 Slackware - Installation 3 03-01-2010 03:01 PM
Changing GRUB-GRUB, GRUB-LILO and vice versa andreas_skw Linux - Newbie 1 06-05-2008 06:40 AM
grub overwrote lilo multiboot, missing one boot in Grub rl23455 Linux - Newbie 1 12-09-2007 01:50 PM
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM

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

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