New install multiple times, UEFI/EFI system, only boots from USB bootstick
Slackware - InstallationThis forum is for the discussion of installation issues with Slackware.
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.
New install multiple times, UEFI/EFI system, only boots from USB bootstick
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:
/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)
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:
Are you running any software that depends on UEFI? If not then I suggest that you turn off UEFI in the BIOS. Then you could probably run the install treating the EFI area on the hard drive as ordinary drive space.
Copy the following around the internal drive efi parition: EFI/Slackware/elilo.efi to EFI/BOOT/Bootx64.efi, copy the rest of the contents of EFI/Slackware/ to EFI/Boot/
I tried copying contents of EFI/Slackware to EFI/BOOT and rebooted, this didn't work. I went into my BIOS and changed UEFI to CSM in advanced. Changed UEFI to Legacy+UEFI in boot and changed boot devices to USB Key,CD/DVD ROM,Hard Disk. Removed the USB boot stick, booted with DVD in and re-installed removed all the partitions on the first hard drive and used fdisk /dev/nvme0n1 (instead of cfdisk /dev/nvme0n1, read lilo has problem with cfdisk) finished the install rebooted and when it came up I was presented with the LILO menu (used advanced instead of simple) and booted fine without boot stick. I don't use software that requires this, and the drives I have which are brand new are not over 2TB if I upgrade the drives to over 2TB i will need to switch I just can't see it for the upgrade I just did was to prevent me from over paying for parts which I had to order on line and take long periods of time to arrive for it was a motherboard with the LGA1151 which was from the 2017 era.
How is the 500 MB partition formatted (EFI)? It must be FAT (theoretically it could be either 16 or 32, but I'd go with FAT 32) and flagged ESP and BOOT. The install procedure does not automatically format the EFI partition, so I suspect yours is not properly formatted.
I'd try to preliminarily format with a bootable disk such as Parted Live or System rescue CD the EFI partition and then you install Slackware as per instructions. Having a properly EFI formatted partition the install should find it and put automatically the ELILO and register the entry with efibootmgr. This is what I do for new installations. The mkfs.vfat after disk partitioning never worked for me...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.