LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-11-2024, 09:28 AM   #16
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,663
Blog Entries: 19

Rep: Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486

Quote:
Originally Posted by mfoley View Post
Perhaps any drive > 2TB makes UEFI necessary! However, this may be a portent for the future. I currently have no boot drives > 2TB configured on any of my systems. This possibly means that if I want to increase the size of any boot drive beyone 2TB I'll have to reformat as UEFI and make sure I have a BIOS that supports UEFI.
You've hit the nail on the head. An mbr partition table can't handle drives of 2 TB or more. There just isn't enough room for the partition boundary addresses to be stored in it.
 
Old 05-11-2024, 10:08 AM   #17
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,875

Rep: Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534
Quote:
Originally Posted by mfoley View Post
Perhaps any drive > 2TB makes UEFI necessary!
Quote:
Originally Posted by hazel View Post
You've hit the nail on the head. An mbr partition table can't handle drives of 2 TB or more.
Large disks need a gpt partition table, but they don't need UEFI. Legacy boot with lilo or grub is enough. For proof, see post #11.
 
3 members found this post helpful.
Old 05-11-2024, 10:31 AM   #18
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,375

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
I few thoughts on this, may need the boot flag set on the protective mbr partition, may need the lba32 as has already mentioned, or the boot partition files are to far from the beginning of the drive.
 
Old 05-11-2024, 10:48 AM   #19
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,806

Rep: Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446
FWIW when installing LILO I do often do it twice, once to mbr (not often anymore since GPT) and once, always, to root. Whether one LILKO installed to MBR, one eLILO, one Grub, rEFInd or whatever bootloader twirls yer beanie, all of them AFAIK can hand off/chainload to a working, bootable partition/kernel.
 
Old 05-13-2024, 03:13 PM   #20
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,593

Original Poster
Rep: Reputation: 180Reputation: 180
From the various posts, I'm gleaning that for use of lilo, the boot drive must be 2T or less. I do have a 7TB RAID-5 system, but the boot RAID-1 (2TB) is separate from the larger RAID-5 and that works find.

Do we agree that this is true?
 
Old 05-13-2024, 03:48 PM   #21
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,875

Rep: Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534
Quote:
Originally Posted by mfoley View Post
for use of lilo, the boot drive must be 2T or less.
lba32 means 32-bit Logical Block Addresses. When the logical block size is 512 bytes, 32 bits are enough to address 2 TB.

In post #11 the boot drive is 4 TB. But the kernel is in the root file system in partition /dev/sda2 which is in the beginning of the disk, well under 2 TB. I guess that explains why it works.
 
Old 05-13-2024, 05:22 PM   #22
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,806

Rep: Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446
Wow! This thread is wiping off the cobwebs of some very old triggers. If memory serves (and it might well not) there used to be a limit on partition size AND LOCATION, like before a certain cylinder. Shoot! I don't know if "cylinder" even applies anymore with SSDs.
 
Old 05-13-2024, 07:31 PM   #23
dhalliwe
Member
 
Registered: Mar 2022
Location: Ontario, Canada
Distribution: Slackware
Posts: 167

Rep: Reputation: 157Reputation: 157
Quote:
Originally Posted by Petri Kaukasoina View Post
lba32 means 32-bit Logical Block Addresses. When the logical block size is 512 bytes, 32 bits are enough to address 2 TB.

In post #11 the boot drive is 4 TB. But the kernel is in the root file system in partition /dev/sda2 which is in the beginning of the disk, well under 2 TB. I guess that explains why it works.
As the person that posted comment 11, all I can say is that Petri may be on to something, but I don't remember what went on when I installed that disk and set it up with lilo. I generally keep most of the system files on a different partition from user space anyway. Maybe I planned to have the boot partition in the lower part of the disk. Maybe I just got lucky.
 
Old 05-13-2024, 07:37 PM   #24
Gnisho
Member
 
Registered: Aug 2012
Location: WA
Distribution: slackware
Posts: 73

Rep: Reputation: Disabled
Quote:
Originally Posted by enorbet View Post
Wow! This thread is wiping off the cobwebs of some very old triggers. If memory serves (and it might well not) there used to be a limit on partition size AND LOCATION, like before a certain cylinder. Shoot! I don't know if "cylinder" even applies anymore with SSDs.
It is as it always has been. BIOS needs to be able to read boot sector/partition and whatever else up until the point control is passed off to something else (second-stage bootloader, UEFI, OS kernel, ...) but this does not necessarily constrain drive size. Way back when it was ~540MB / 1024 cylinders. Just locate the boot partition within this constraint and it generally worked.
 
Old 05-13-2024, 08:49 PM   #25
thirdm
Member
 
Registered: May 2013
Location: Massachusetts
Distribution: Slackware, NetBSD, Debian, 9front
Posts: 325

Rep: Reputation: Disabled
BIOS booting and GPT partitioning should certainly be possible, but my go to source for such things hasn't concluded whether Lilo in particular handles it or not. But the way he tried it involved LVM. Maybe that complicates things:

"Despite GRUB 2's dominance of the Linux boot loader space, some people continue to use older boot loaders, such as the Linux Loader (LILO). Information on LILO's compatibility with GPT is contradictory. Most sources say the two won't get along, but I've read others who opine that the combination does (or at least should) work fine, since LILO uses sector maps to point to the kernel file. My one attempt at this combination proved inconclusive. LILO was able to load and run the kernel, but the boot then failed with the kernel message mount: could not find filesystem '/dev/root'. This message followed messages that indicated that the computer's LVM configuration was working fine, but somehow handing off to the LVM-based root filesystem was a problem. A GRUB boot of this system worked fine."

-- https://www.rodsbooks.com/gdisk/boot...ml#gpt_on_bios
 
Old 05-14-2024, 01:11 AM   #26
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 995

Rep: Reputation: 675Reputation: 675Reputation: 675Reputation: 675Reputation: 675Reputation: 675
I can confirm that my system which by accident booted a big GPT disk with lilo had a small root partition (about 1.5 GB) at the beginning of the disk.

If you for some reason don't like to have a small root partition you can create a small partition for /boot and place it at the beginning of the disk.

regards Henrik
 
Old 05-15-2024, 12:44 AM   #27
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,593

Original Poster
Rep: Reputation: 180Reputation: 180
Well, another thing that might be affecting this, my sda1 partition (at the beginning of the drive) is the swap partition. I started doing this because I could easily specify the size of the swap partition, then simply take the default start/end blocks offered by [fg]disk as the rest of the drive. In this case, I specified an 8G swap partition instead of my usual 4G. That would put the boot partition further in on the drive. Also, the larger the drive (this one is 8TB) the larger the allocation block, so that could move the boot partition in even further -- perhaps beyond the reach of LILO.

I use LILO because most of my systems are RAID-1s and supposedly formatting with meta-data 0.9 lets the system boot from the sdb raid member if the sda member fails, whereas grub (supposedly) does not. I say supposedly because I've never actually tried faulting/removing my sda partitions and trying a reboot. I should do that. I may have a chance to test that later this week. I'll have to find my reference on the "0.9" metadata thing.

Last edited by mfoley; 05-15-2024 at 01:06 AM.
 
Old 05-15-2024, 01:00 AM   #28
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,663
Blog Entries: 19

Rep: Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486Reputation: 4486
Quote:
Originally Posted by mfoley View Post
Well, another thing that might be affecting this, my sda1 partition (at the beginning of the drive) is he swap partition. That would put the boot partition further in on the drive.
That shouldn't cause any problems. When I bought my Lenovo, it had sda2 as the ESP because sda1 was some kind of Windows recovery toolbox. When I put in my ssd, I decided to keep sda2 as the boot partition and so I made sda1 my swap. I thought that keeping the ESP in the same place would make it easier for the UEFI chip to find it, which turned out not to be the case. UEFI's use guid partition ID's to register the ESP, not partition numbers.
 
Old 05-15-2024, 04:09 PM   #29
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 995

Rep: Reputation: 675Reputation: 675Reputation: 675Reputation: 675Reputation: 675Reputation: 675
Quote:
Originally Posted by mfoley View Post
My partition table is:
Code:
Found valid GPT with protective MBR: using GPT. 
Disk /dev/sda: 15628153168 sectors. 7.3 TiB 
Model: ST8000DM004-2U91 
Sector size (logical/physical): 512/4096 bytes 
Disk Identifier (GUID): B6E976D5-15AA-499C-991E-3AD7185BB157 
Partition table holds up to 128 entries 
Main partition table begins at sector 2 and ends at sector 33 
First usable sector is 34. last usable sector is 15628153134 
Partitions will be aligned on 2048-sector boundaries 
Total free space is 2014 sectors (1007.8 KiB)

Number  Start (sector)    End (sector)  Size      Code  Name
1               2048        16779263   8.1 Gi8    8200  Linux swap
2           16779264     15628053134   7.3 TIB    8300  Linux filesystem
Above it seems as if you only have a partition for swap and a partition for / , no separate partition for
/boot.

Quote:
Originally Posted by mfoley View Post
I specified an 8G swap partition instead of my usual 4G. That would put the boot partition further in on the drive. Also, the larger the drive (this one is 8TB) the larger the allocation block, so that could move the boot partition in even further -- perhaps beyond the reach of LILO.
If you do not have any separate partition for /boot but put your boot files in the partition of your / those files can (at least in theory be placed anywhere within those 7.3 TB.)

This week I found the 8TB GPT-partitioned disk containing Slackware 14.2 and initially setup to boot with UEFI using syslinux/extlinux. By accident lilo was installed on that MBR and to my surprise was capable of booting that installation. I do not have any separate partition for /boot either, but my partition for / is rather small, less than 2 GB. Then I have separate partitions for /usr, /var, /tmp, /opt and /home. The small partition for / is /dev/sda1 and at the beginning of the disk.

regards Henrik
 
  


Reply

Tags
boot failure, slackware 15.0



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
Installing Windows XP after installing Slackware 13.37 | How to work with the MBR WhiteyMcQ-Tip Slackware 15 03-06-2012 10:56 AM
slackware 10.2 - after installing kernel 2.6.13 - boot/module problem michael philip Slackware 4 07-07-2006 03:32 AM
Boot failure after installing Slackware gbl0330 Linux - Newbie 3 12-23-2005 11:33 PM
/boot/boot/boot/boot/boot/ muddywaters SUSE / openSUSE 1 09-10-2005 06:08 AM
Can't boot after installing Slackware 10 jdmurray Slackware - Installation 4 08-08-2004 05:30 PM

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

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