LinuxQuestions.org
Review your favorite Linux distribution.
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 12-02-2015, 04:33 PM   #1
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
GPT + LILO: limitations?


Hi,

My current build server is a multiboot machine with quite many different installations on it. Here's what the hard disk looks like:

Code:
# fdisk -l /dev/sda
...
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63     8000369     4000153+  82  Linux swap
/dev/sda2         8000370    82140344    37069987+  83  Linux
/dev/sda3        82140345   105579179    11719417+  83  Linux
/dev/sda4       105579180   488392064   191406442+   5  Extended
/dev/sda5       105579243   129018014    11719386   83  Linux
/dev/sda6       129018078   152456849    11719386   83  Linux
/dev/sda7       152456913   175895684    11719386   83  Linux
/dev/sda8       175895748   199334519    11719386   83  Linux
/dev/sda9       199334583   222773354    11719386   83  Linux
/dev/sda10      222773418   246212189    11719386   83  Linux
/dev/sda11      246212253   269651024    11719386   83  Linux
/dev/sda12      269651088   324336284    27342598+  83  Linux
/dev/sda13      324336348   379021544    27342598+  83  Linux
/dev/sda14      379021608   433706804    27342598+  83  Linux
/dev/sda15      433706868   488392064    27342598+  83  Linux
/dev/sda1 is the common swap partition for each system. /dev/sda2 is the "control system", running Slackware 14.1 64-bit. /dev/sda3 is running Slackware 14.0 32-bit, /dev/sda5 Slackware 14.0 64-bit. /dev/sda6 has Slackware 14.1 32-bit, /dev/sda7 Slackware 14.1 64-bit. The other partitions are for different combinations of version (14.0, 14.1, 14.2), architecture (32-bit, 64-bit) and scenarios (server install without GUI vs. desktop). LILO is configured via the installation on /dev/sda2.

Today I got a new build server, and I would like to copy that setup to my new machine. I'd also prefer to add four extra partitions. As far as I remember, I've reached fdisk's possible limit of logical partitions (correct me if I'm wrong). Normally, GPT partitioning allows me to go beyond this limitation (up until 64 partitions, IIRC).

I just tried the gdisk (GPT) partitioning scheme + LILO combination, and it works on this machine.

So now I'd like to know the eventual limitations of LILO with this kind of thing. Can I configure something like twenty partitions and then access them via LILO?

Cheers,

Niki

Last edited by kikinovak; 12-02-2015 at 04:42 PM.
 
Old 12-03-2015, 07:23 AM   #2
pzognar
Member
 
Registered: Jun 2015
Distribution: Debian Jessie 64
Posts: 163
Blog Entries: 9

Rep: Reputation: Disabled
If I remember from reading the various docs that come with Slackware, lilo doesn't always work with a GPT system, so it looks like you got lucky. I've read that elilo is a version of lilo that is intended to work better with GPT.

Note: I use MBR so anything I'm saying in the preceding paragraph is theoretical, not actually tried by myself.

If you don't mind the (slight amount of) added work of making a initrd for each OS, you could stick with MBR and use LVM to get any number of partitions. I've got two Slackware installs running off the same LVM which is in turn in a LUKS partition, so I confirm that LVM works. Note: the boot partition can't be within an LVM, but with care, it is possible to have one boot partition that is used by multiple Linuxes: you make sure the kernel and initrd for each OS has a unique name and update lilo accordingly.

edit: adding a second hard drive is another way to get more partitions.

Last edited by pzognar; 12-03-2015 at 07:26 AM.
 
1 members found this post helpful.
Old 12-03-2015, 08:06 AM   #3
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by pzognar View Post
If I remember from reading the various docs that come with Slackware, lilo doesn't always work with a GPT system, so it looks like you got lucky. I've read that elilo is a version of lilo that is intended to work better with GPT.

Note: I use MBR so anything I'm saying in the preceding paragraph is theoretical, not actually tried by myself.

If you don't mind the (slight amount of) added work of making a initrd for each OS, you could stick with MBR and use LVM to get any number of partitions. I've got two Slackware installs running off the same LVM which is in turn in a LUKS partition, so I confirm that LVM works. Note: the boot partition can't be within an LVM, but with care, it is possible to have one boot partition that is used by multiple Linuxes: you make sure the kernel and initrd for each OS has a unique name and update lilo accordingly.

edit: adding a second hard drive is another way to get more partitions.
Looks like this setup is working. I partitioned the 500 GB hard disk using gdisk (GPT) with no less than 18 partitions. I thought about LVM for a moment, but since I have some clearly defined needs - in terms of partition size - from the start, no need for an additional layer of abstraction, the more so since LILO seems to play nice with the current partitioning scheme.

My doubts mainly concerned the number of different systems LILO can address. I guess such extreme multiboot setups are quite rare. Well, for the time being everything seems to work OK.

Cheers,

Niki
 
Old 12-03-2015, 08:07 AM   #4
MarcT
Member
 
Registered: Jan 2009
Location: UK
Distribution: Slackware 14.2
Posts: 125

Rep: Reputation: 51
Quote:
Originally Posted by pzognar View Post
Note: the boot partition can't be within an LVM, but with care, it is possible to have one boot partition that is used by multiple Linuxes: you make sure the kernel and initrd for each OS has a unique name and update lilo accordingly.
You can boot from LVM if you wish - I do it here. Have a look at the README_LVM.TXT in the top level directory.
 
1 members found this post helpful.
Old 12-03-2015, 08:24 AM   #5
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 974

Rep: Reputation: 239Reputation: 239Reputation: 239
Niki,

I don't think on a GPT disk you need extended partitions, but maybe that is needed to be able to boot from a MBR with lilo. Did you do without that partition (/dev/sda4)?

I am asking as, a while ago I changed my setup from MBR+LILO to GPT+elilo/refind (i.e. eufi). Before the 'bios' eventually went into eufi-mode I found that the old MBR was still used, at least the system was still booting, but this was done by lilo instead of elilo. For elilo you'll need a separate fat partition, so I wouldn't try GPT+elilo if you do not want to go to eufi-like booting.
 
Old 12-03-2015, 09:03 AM   #6
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by brobr View Post
Niki,

I don't think on a GPT disk you need extended partitions, but maybe that is needed to be able to boot from a MBR with lilo. Did you do without that partition (/dev/sda4)?
No extended partitions here. GPT doesn't suffer from all these braindead DOS limitations. I'm currently busy reinstalling all the systems, partition by partition. So far, everything from /dev/sda2 to /dev/sda6 included boots fine. Things look good.
 
Old 12-03-2015, 04:01 PM   #7
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
And here's the end result. Partitioning:

Code:
[root@leanore:~] # gdisk -l /dev/sda
...
Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048        12085247   5.8 GiB     8200  Linux swap
   2        12085248       137914367   60.0 GiB    8300  Linux filesystem
   3       137914368       169371647   15.0 GiB    8300  Linux filesystem
   4       169371648       200828927   15.0 GiB    8300  Linux filesystem
   5       200828928       232286207   15.0 GiB    8300  Linux filesystem
   6       232286208       263743487   15.0 GiB    8300  Linux filesystem
   7       263743488       295200767   15.0 GiB    8300  Linux filesystem
   8       295200768       326658047   15.0 GiB    8300  Linux filesystem
   9       326658048       358115327   15.0 GiB    8300  Linux filesystem
  10       358115328       389572607   15.0 GiB    8300  Linux filesystem
  11       389572608       462972927   35.0 GiB    8300  Linux filesystem
  12       462972928       536373247   35.0 GiB    8300  Linux filesystem
  13       536373248       609773567   35.0 GiB    8300  Linux filesystem
  14       609773568       683173887   35.0 GiB    8300  Linux filesystem
  15       683173888       756574207   35.0 GiB    8300  Linux filesystem
  16       756574208       829974527   35.0 GiB    8300  Linux filesystem
  17       829974528       903374847   35.0 GiB    8300  Linux filesystem
  18       903374848       976773134   35.0 GiB    8300  Linux filesystem
Bootloader:

Code:
[root@leanore:~] # lilo
Added Slack64-14.1  +  *
Added MLES-14.0-32bit
Added MLES-14.0-64bit
Added MLES-14.1-32bit
Added MLES-14.1-64bit
Added MLES-14.2-32bit
Added MLES-14.2-64bit
Added MLED-14.1-32bit
Added MLED-14.1-64bit
Added MLED-14.2-32bit
Added MLED-14.2-64bit
Cheers,

Niki
 
1 members found this post helpful.
Old 12-03-2015, 04:15 PM   #8
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Wait... Kiki, did you use an EF02 BIOS Boot Partition at all or direct boot from a /(root)?
 
Old 12-03-2015, 11:31 PM   #9
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Quote:
Originally Posted by ReaperX7 View Post
Wait... Kiki, did you use an EF02 BIOS Boot Partition at all or direct boot from a /(root)?
No EFI here. On some motherboards you can use GPT partitioning and install LILO like you would do on "classic" (e. g. fdisk) partitioning. I don't know exactly how or why, but as long as it works, I don't care.

Cheers,

Niki
 
Old 12-04-2015, 12:39 AM   #10
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, Lubuntu
Posts: 352
Blog Entries: 16

Rep: Reputation: 51
Quote:
Originally Posted by kikinovak View Post
As far as I remember, I've reached fdisk's possible limit of logical partitions (correct me if I'm wrong). Normally, GPT partitioning allows me to go beyond this limitation (up until 64 partitions, IIRC).
HI, whats-the-difference-between-gpt-and-mbr-when-partitioning-a-drive/ gives an overview that GPT under GNU/Linux systems should have no problem creating unlilmited partition but it is only windows which is limited to 128 partitions.
 
1 members found this post helpful.
Old 12-04-2015, 12:43 AM   #11
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, Lubuntu
Posts: 352
Blog Entries: 16

Rep: Reputation: 51
Quote:
Originally Posted by kikinovak View Post
So now I'd like to know the eventual limitations of LILO with this kind of thing. Can I configure something like twenty partitions and then access them via LILO?

Cheers,

Niki
The development of LILO ends at December 2015 lilo alioth.

Unless, a team from slackware can maintain it.

lilo just works.
 
1 members found this post helpful.
Old 12-04-2015, 12:49 AM   #12
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, Lubuntu
Posts: 352
Blog Entries: 16

Rep: Reputation: 51
Quote:
Originally Posted by pzognar View Post
If you don't mind the (slight amount of) added work of making a initrd for each OS, you could stick with MBR and use LVM to get any number of partitions. I've got two Slackware installs running off the same LVM which is in turn in a LUKS partition, so I confirm that LVM works.
I normally have 20 or more logical unit per lvm per hard disk, even tested snapshot lvm with slackware. LVM works with Slackware GNU/Linux since 12.0.
 
1 members found this post helpful.
Old 12-04-2015, 12:58 AM   #13
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, Lubuntu
Posts: 352
Blog Entries: 16

Rep: Reputation: 51
Quote:
Originally Posted by ReaperX7 View Post
Wait... Kiki, did you use an EF02 BIOS Boot Partition at all or direct boot from a /(root)?
with lilo you need no EF02 BIOS Boot Partitio.
 
1 members found this post helpful.
Old 12-04-2015, 05:20 AM   #14
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, Lubuntu
Posts: 352
Blog Entries: 16

Rep: Reputation: 51
Quote:
Originally Posted by kikinovak View Post
No EFI here. On some motherboards you can use GPT partitioning and install LILO like you would do on "classic" (e. g. fdisk) partitioning. I don't know exactly how or why, but as long as it works, I don't care.

Cheers,

Niki
Code:
gdisk /dev/sda
GPT fdisk (gdisk) version 0.8.7

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present
As long as MBR: protective is present, lilo should work fine
 
2 members found this post helpful.
Old 12-04-2015, 02:50 PM   #15
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,508

Rep: Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469Reputation: 8469
Quote:
Originally Posted by jheengut View Post
The development of LILO ends at December 2015 lilo alioth.

Unless, a team from slackware can maintain it.

lilo just works.
I fail to see why anyone is concerned about this. OEMs aren't making any more non-UEFI machines, and I suspect LILO will continue to work for the existing BIOS ones without much (or even any) ongoing maintenance. There have been several fairly long periods of time where there weren't any new LILO versions and it continued to "just work", as you say. Plus, the last official release was just a couple of weeks ago! I don't consider code to be dead simply because a maintainer (not even the original one) is warning that they're going to quit working on it. But maybe I'm more pragmatic... I also don't consider a project to have started when there's just a manifesto and no code (even if it's coming soon!)

Since LILO is not going to need any work (and I won't just ticker with it for no good reason), I volunteer to take over. Consider it maintained.
 
23 members found this post helpful.
  


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
why do optical discs have minute limitations as well as size limitations? newbiesforever General 9 02-09-2014 04:35 AM
gpt + lilo + legacy bios = success rdsherman Slackware 2 12-07-2013 07:02 PM
[SOLVED] Edit lilo.conf, run /sbin/lilo, but lilo won't take changes lukameen Slackware 2 02-10-2012 12:10 PM
[SOLVED] Slackware 13.37 - gdisk choices, MBR, GPT or Blank GPT CFet Slackware - Installation 3 04-01-2011 04:46 PM
RH9 on I8500: BIOS-Related Limitations Impacting GRUB and LILO xinelo Linux - Newbie 0 05-25-2004 07:46 PM

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

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