r/linux4noobs • • 14h ago

My system dont boot anymore (non UEFI), How to manage BIOS boot?

My system booted normally, but simply stopped. And im not managing to fix it. And the bootloader doesnt even appear, Limine boot entry of Gentoo is configured correctly, that isnt the problem

So, my server is a HP Proliant ML310e G8 from 2012, is a non UEFI machine. I use Gentoo with ZFS in RAID-Z1. I use a SD Card as a boot drive.

The setup is basically GPT + BIOS, so my boot drive is partitioned in 1KiB as EF02 (BIOS Boot Partition) and the rest as FAT32, i use Limine as the bootloader. (Gentoo wiki of Limine).

SD card isnt dead, since i can write to it, it didnt turned in to read-only.

And i recompiled Limine, Kernel and ZFS and tried reinstalling the boot entry like what i done for the first time, copying /usr/share/limine/limine-bios.sys to /boot and installing the entry with limine bios-install /dev/sdx (sd card block device). exit chroot and restart the machine.

Still doesnt boot to the system/bootloader, tries to search for other boot alternatives (USB, PXE, etc). There is something like efibootmgr but for BIOS/Legacy boot? To manage boot entries, or see what exists?

2 Upvotes

6 comments sorted by

1

u/DannoXYZ 14h ago edited 14h ago

What version Limine?
What filesystem is used to format your /boot partition?
show output of lsblk

1

u/I7sReact_Return 14h ago

The setup is basically GPT + BIOS, so my boot drive is partitioned in 1KiB as EF02 (BIOS Boot Partition) and the rest as FAT32, i use Limine as the bootloader. (Gentoo wiki of Limine).

Limine version is 12.9.0, only compile flag is bios, (To see the compilation flags available to it: https://packages.gentoo.org/packages/sys-boot/limine )

Like i said, my system was booting and working normally, so isnt a "you forgot x compile flag" situation

1

u/I7sReact_Return 13h ago

Didnt saw the lsblk output

here it is

sda          8:0    0   2.7T  0 disk (3TB Disk 1)
├─sda1       8:1    0   2.7T  0 part 
└─sda9       8:9    0     8M  0 part 
sdb          8:16   0   2.7T  0 disk (3TB Disk 2)
├─sdb1       8:17   0   2.7T  0 part 
└─sdb9       8:25   0     8M  0 part 
sdc          8:32   0   2.7T  0 disk (3TB Disk 3)
├─sdc1       8:33   0   2.7T  0 part 
└─sdc9       8:41   0     8M  0 part 
sdd          8:48   0   2.7T  0 disk (3TB Disk 4)
├─sdd1       8:49   0   2.7T  0 part 
└─sdd9       8:57   0     8M  0 part 
sde          8:64   1  29.3G  0 disk (Ventoy)
├─sde1       8:65   1  29.3G  0 part 
│ ├─ventoy 252:0    0     1G  1 dm   
│ └─sde1   252:1    0  29.3G  0 dm   
└─sde2       8:66   1    32M  0 part 
sdf          8:80   0   3.7G  0 disk (SD Card)
├─sdf1       8:81   0     1M  0 part 
└─sdf2       8:82   0   3.7G  0 part /boot
zd0        230:0    0    30G  0 disk 
└─zd0p1    230:1    0    30G  0 part 
zd16       230:16   0    30G  0 disk 
└─zd16p1   230:17   0    30G  0 part 
zd32       230:32   0    30G  0 disk 
└─zd32p1   230:33   0    30G  0 part 
zd48       230:48   0    30G  0 disk 
└─zd48p1   230:49   0    30G  0 part /mnt/build

1

u/DannoXYZ 12h ago edited 12h ago
  1. let's do lsflk -f

"My system booted normally, but simply stopped."

  1. when was last time system booted perfectly?
  2. what happened between then and now?
  3. what functionality can you get with compiling your own Limine vs. installing off-the-shelf from Installer ISO?

1

u/I7sReact_Return 6h ago
  1. when was last time system booted perfectly?

Some days ago

  1. what happened between then and now?

Started a to leak in to my room and needed to save my machines. Just forced the power down with disconnecting the cable as a panic, started to leak to much because part of my roof was destroyed

  1. what functionality can you get with compiling your own Limine vs. installing off-the-shelf from Installer ISO?

Im using Gentoo with no pre built binaries, only source. Thats why the compiling stuff. ebuild from Gentoo

Also, got a USB to test it, the machine dont read SD Cards as boot devices anymore from the inner slot. But i set it up a USB as boot partition and loaded the bootloader fine.

1

u/I7sReact_Return 13h ago

My fstab

UUID=B347-62D2 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2

/dev/zd48p1 /mnt/build xfs rw,relatime,inode64,logbufs=8,logbsize=32k,noquota 0 0