LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-25-2016, 02:59 AM   #1
rlaanemets
LQ Newbie
 
Registered: Jan 2016
Posts: 2

Rep: Reputation: Disabled
Lilo incompatibility with NVMe disks?


I attempted to update the master boot sector on an NVMe disk
(Samsung 950 PRO) using Lilo but received the given error message:

Code:
WARNING: SATA partition in the high region (>15):
LILO needs the kernel in one of the first 15 SATA partitions. If 
you need support for kernel in SATA partitions of the high region 
than try grub2 for this purpose! 
Fatal: Sorry, cannot handle device 0x10300
The error is caused by the kernel assigning major number 259 to
the nvme block device:

Code:
$ lsblk
nvme0n1     259:0    0 238.5G  0 disk 
├─nvme0n1p1 259:1    0   350M  0 part 
└─nvme0n1p2 259:2    0 238.1G  0 part /
Lilo thinks that this is an "high partition" (a partition with number >15). This is
actually documented in kernel's Documentation/devices.txt:

Code:
259 block Block Extended Major
          Used dynamically to hold additional partition minor
          numbers and allow large numbers of partitions per device
Is this a kernel bug to assign such major number to a block device? If so then
where should I report it. There is no major number reserved for NVMe devices by
this document.

I currently solved it by switching my boot loader to Syslinux. NVMe devices are
likely to become popular in the following years.
 
Old 01-25-2016, 10:04 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
LILO is discontinued, I'm not surprised it doesn't work correctly with new drive technologies, and it's just going to get worse. I recommend using an active and supported boot loader instead.
 
Old 08-23-2022, 11:47 PM   #3
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,065

Rep: Reputation: 146Reputation: 146
Quote:
Originally Posted by suicidaleggroll View Post
LILO is discontinued, I'm not surprised it doesn't work correctly with new drive technologies, and it's just going to get worse. I recommend using an active and supported boot loader instead.
In fact others may have taken maintentance over (at least for some OS) and I used LILO with NVMe from 2020 to 2021.
 
1 members found this post helpful.
Old 08-23-2022, 11:51 PM   #4
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Quote:
Originally Posted by dchmelik View Post
In fact others may have taken maintentance over (at least for some OS) and I used LILO with NVMe from 2020 to 2021.
But the key is "for certain OS's". Since OP doesn't state WHAT OS they're using, then the default answer, IMO, should be, "LILO has been discontinued, use Grub". If they're using one of the distro's that is still developing LILO, they should probably mention it, and ask for the thread to be moved to that distro's specific forum, since as a general rule, yes, LILO has been discontinued and it will not function with MOST OS's in existence anymore on an NVMe disk.
 
2 members found this post helpful.
Old 08-24-2022, 06:20 AM   #5
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,339

Rep: Reputation: Disabled
Quote:
Originally Posted by rlaanemets View Post
This is
actually documented in kernel's Documentation/devices.txt:

Code:
259 block Block Extended Major
          Used dynamically to hold additional partition minor
          numbers and allow large numbers of partitions per device
Is this a kernel bug to assign such major number to a block device?
Yes.

Using major numbers in a way contrary to the earlier norm (and indeed the kernel documentation) will cause breakages in userspace. And as Linus himself defines breaking userspace as unacceptable kernel behaviour, it is indeed a bug, and a pretty serious one at that.
 
Old 08-26-2022, 03:18 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Isn't there a newer elilo?
 
Old 08-28-2022, 03:56 PM   #7
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Ok, I'm not TOTALLY good on the exacts of this, but I seem to recall that eLILO features were integrated into the standard LILO, then eLILO was discontinued, and a few years later LILO was discontinued except for a few OS's that kept it updated.

But again, I'm not ABSOLUTELY certain I remember that correctly.
 
Old 08-28-2022, 04:42 PM   #8
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,623

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
One who liked LILO (and Elilo), as did I, might look into "limine" bootloader. It is easier than GRUB and handles many cases better than GRUB2 does.
It is also, I understand, not having run it myself) the chosen bootloader for EasyOS, if that interests you.

A slightly more modern and friendly version of a GRUB style loader is BURG: another I have not tried. Yet.
 
Old 08-28-2022, 05:51 PM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Lilo should continue to work on Legacy/CSM (MBR) systems. It should also work on Legacy GPT drives. Elilo is for UEFI systems. As far as maintaining Lilo, see the statement in the last post on the first page of the thread below by Mr. Volkerding.

https://www.linuxquestions.org/quest...ns-4175560467/

I've never used BURG but as you would expect, it is derived from GRUB and has been around since at least 2011 which I wouldn't consider new. Explanation on using it at the site below.

https://help.ubuntu.com/community/Burg
 
1 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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lilo for Two ATA Hard Disks res44 Linux - Software 5 01-27-2011 10:57 PM
Problem using LILO then moving hard disks around edenyard Linux - General 3 06-15-2010 12:34 PM
LILO Installation Fails on Machine with 4 SATA Disks meshcurrent Debian 2 07-04-2007 12:57 AM
grub/lilo problem with 2 scsi-disks finky Linux - Software 5 12-03-2004 06:39 AM
LILO Problem (swapped some disks around) mastahnke Linux - General 8 12-06-2002 09:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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