New install multiple times, UEFI/EFI system, only boots from USB bootstick
by KrazyKanuk from LinuxQuestions.org on (#6F7MF)
I have a newer MSI MAG Tomahawk motherboard with 2 M2 drives (One Samsung, One Western Digital. Both 2TB) with DDR4 32GB Ram, external video is ASUS GeForce RTX 3060 8GB, older CD/DVD ROM.
I have installed Slackware64-current from an iso I burnt to disk with windows back in June. The DVD boots into UEFI mode with no issues, I get to partitioning my disks also with no issues. I partition the disks as follows:
Quote:
After partitioning the disks I run setup and it finds the swap disk and creates it and adds to /etc/fstab. It finds the Linux File System on both disks first one gets formated and mounted as / and added to /etc/fstab second drive it finds it and mounts it to /home and adds to /etc/fstab. It then finds the EFI drive and says it is going to format it and add it to /etc/fstab (I don't believe this happens for there are things on it from previous installs after the install is done). It continues on the install and at the end says it is going to make a USB boot disk which it does and then asks to install ELILO on the EFI partition at /boot/efi. When setup finishes and it ejects the DVD and I reboot it goes into the bios of the motherboard. I exit this put the USB boot stick in and reboot and it boots fine other then I have to be there and press enter for it to continue.
Is there a way I can fix this so it boots from the hard drive. Above where I mention I don't think it formats the EFI drive is because when ELILO didnt boot the system from the hard drive I tried to install both grub and and refind both which didn't work but still on the /boot/efi/EFI. If i run efibootmgr it looks like this:
Quote:
The last entry is the USB boot stick and is one that works. The elilo.
On the stick the directory and files look like this (one that woorks)
Quote:
The files directories on the EFI partition
Quote:
Any help getting this to boot from hard drive would be greatly appreciated, even if I have to re-install and do something different during install.
I have installed Slackware64-current from an iso I burnt to disk with windows back in June. The DVD boots into UEFI mode with no issues, I get to partitioning my disks also with no issues. I partition the disks as follows:
Quote:
/dev/nvme0n1p1 500MB EFI /dev/nvme0n1p2 10GB Swap /dev/nvme0n1p3 1.8TB Linux File System /dev/nvme1n1p1 1.9TB Linux File System (Whole Disk for /home, don't format only mount it) |
Is there a way I can fix this so it boots from the hard drive. Above where I mention I don't think it formats the EFI drive is because when ELILO didnt boot the system from the hard drive I tried to install both grub and and refind both which didn't work but still on the /boot/efi/EFI. If i run efibootmgr it looks like this:
Quote:
krazy@krazy:~$ sudo efibootmgr BootCurrent: 0004 Timeout: 0 seconds BootOrder: 0003,0004,0001,0000,0002 Boot0000 slackware-15.0+ HD(1,GPT,4f7bca20-d33f-4f75-a1f6-50073424308d,0x800,0xfa000)/File(\EFI\slackware-15.0+\grubx64.efi) Boot0001 UEFI OS HD(1,GPT,4f7bca20-d33f-4f75-a1f6-50073424308d,0x800,0xfa000)/File(\EFI\BOOT\BOOTX64.EFI)..BO Boot0002 rEFInd Boot Manager HD(1,GPT,4f7bca20-d33f-4f75-a1f6-50073424308d,0x800,0xfa000)/File(\EFI\refind\refind_x64.efi) Boot0003* Slackware HD(1,GPT,4f7bca20-d33f-4f75-a1f6-50073424308d,0x800,0xfa000)/File(\EFI\Slackware\elilo.efi) Boot0004* UEFI: KingstonDataTraveler 2.0PMAP, Partition 1 PciRoot(0x0)/Pci(0x14,0x0)/USB(12,0)/USB(2,0)/HD(1,MBR,0x5a34f23a,0x800,0x8000)..BO krazy@krazy:~$ |
On the stick the directory and files look like this (one that woorks)
Quote:
krazy@krazy:~/stick$ ls EFI/BOOT BOOTX64.EFI* elilo.conf* message.txt* krazy@krazy:~/stick$ elilo.conf krazy@krazy:~/stick$ cat EFI/BOOT/elilo.conf chooser=simple message=message.txt delay=300 timeout=300 # image=/vmlinuz label=huge.s read-only append="root=/dev/nvme0n1p3 vga=normal ro" krazy@krazy:~/stick$ |
Quote:
krazy@krazy:~/stick$ ls /boot/efi/EFI BOOT/ EFI/ Slackware/ grub/ refind/ slackware-15.0+/ tools/ krazy@krazy:~/stick$ krazy@krazy:~/stick$ ls /boot/efi/EFI/Slackware elilo.conf* elilo.efi* initrd.gz* vmlinuz* krazy@krazy:~/stick krazy@krazy:~/stick$ cat /boot/efi/EFI/Slackware/elilo.conf chooser=simple delay=1 timeout=1 # image=vmlinuz label=vmlinuz initrd=initrd.gz read-only append="root=/dev/nvme0n1p3 vga=normal ro" krazy@krazy:~/stick$ |