LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-22-2010, 08:22 AM   #1
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
Alternatives to GRUB and LILO


I'm looking for an alternative boot loader (for hard drive) to get away from GRUB and LILO. I want something that is not bloated like GRUB and does not require rebuilding a table of block numbers like LILO. Something simple and basic ... like a boot loader should be.
 
Old 09-22-2010, 09:29 AM   #2
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
You might want to check out the syslinux package.
 
Old 09-22-2010, 12:21 PM   #3
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

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Syslinux requires a FAT filesystem. I won't have that. Maybe extlinux will work? I hope it understand GPT partitions.
 
Old 09-22-2010, 01:58 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Extlinux is part of the Syslinux-project.
 
Old 09-22-2010, 02:21 PM   #5
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

Original Poster
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Is there a way to bypass the "extlinux" installer command and put the bootloader image directly onto some sectors, either outside any partition, or within a partition dedicated to that image?

I'm trying to keep it all super simple ... a bootloader than just loads a kernel (an initrd image is a plus). The bootloader will be installed first. The filesystem with the kernel will be installed later and there is no opportunity to run an "extlinux" command since no system will be up when this is happening. If extlinux is a two part thing like GRUB legacy was, then I can include a 2nd stage inside the filesystem being populated afterwards. But it still can't run a command so it depends on the part that lives outside the filesystem to know how to find and read files in the filesystem.

Having the bootloader live in its own partition is an option but GPT support is a must to do this due to other requirements (all the MBR primary partitions are used up for other things). If extlinux cannot do GPT, then its filesystem-reading parts will have to live outside a partition.

The wiki is very short on specifics. The way a simple boot loader SHOULD work would be:

for MBR, the MBR sector has the 1st stage, which looks at a specific sector number hard coded in that stage to find the 2nd stage. The 2nd stage would have support to find partitions and files in filesystems (support for ext2 is sufficient at this point ... FAT is not).

for GPT, the 1st stage would read the GPT table to find the 2nd stage which resides in its own partition (1 of 128). Which partition is yet to be determined. Once that 2nd stage is loaded, it will find partitions and files in filesystems as above, though doing so with GPT. Again, ext2 support is sufficient.

For either of these, the 1st and 2nd stage images should simply be FILES that can be dd'd to the right place (but in fact, I will be integrating them into a larger image that will be dd'd in whole to the drive). If there is a command needed to "install" the images, there needs to be options on the command to store the images in files as an alternative.
 
Old 09-22-2010, 03:56 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
http://en.wikipedia.org/wiki/Comparison_of_boot_loaders
 
Old 09-22-2010, 04:07 PM   #7
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
I tried the GAG bootloader briefly a few years ago to multiboot, it seemed OK.
http://gag.sourceforge.net/
 
Old 09-22-2010, 04:12 PM   #8
verndog
Member
 
Registered: Oct 2007
Posts: 278

Rep: Reputation: 67
Maybe Plop can help.
 
Old 09-22-2010, 07:19 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Define "bloated". Anyone playing with gpt disks shouldn't be worried about disk space.
grub2 with gpt requires a separate partition for its core.img. All that should allow you to dd partition images in elsewhere I would think. Haven't tried it though.
 
  


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

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