L 99 99 99 ... on boot after installing Slackware 15.0
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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.
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.
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.
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."
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.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.