Attempting to install on an HP Stream netbook (problems dealing with EFI)
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.
Are you trying to install Slackware 14.2? I believe that the Slackware 14.2 installer cannot detect and install to devices identified by mmcblkX. Try either Slackware-current or Slint 14.2.1.
Now it boots up and I see "Welcome to GRUB" for a split second and then nothing but a blank screen. This netbook is a pain in the ass I tell you. So this thing can boot GRUB from the MBR, but not LILO("no bootable device")? Hmmm
This is because lilo is not able to handle MMC devices, I assume. And that won't change, as lilo is no longer developed.
Try installing in EFI mode but you will need a fairly recent -current ISO. You can get one here, thanks to Eric Hameleers. Or you can get the ISO there, which is based on Slackware64-14.2, but be aware that the latter won't give you a genuine Slackware.
EDIT Rich was faster
Last edited by Didier Spaier; 12-27-2017 at 08:28 AM.
Now it boots up and I see "Welcome to GRUB" for a split second and then nothing but a blank screen. This netbook is a pain in the ass I tell you. So this thing can boot GRUB from the MBR, but not LILO("no bootable device")? Hmmm
You said you tried with a GPT table. Did you make sure to zero out the sectors at both start and end of disk before going back to MBR?
This is because lilo is not able to handle MMC devices, I assume. And that won't change, as lilo is no longer developed.
Try installing in EFI mode but you will need a fairly recent -current ISO. You can get one here, thanks to Eric Hameleers. Or you can get the ISO there, which is based on Slackware64-14.2, but be aware that the latter won't give you a genuine Slackware.
EDIT Rich was faster
I tried the current ISO and it doesn't seem to work any differently than 14.2 for me. When you say EFI mode do you mean creating an EFI partition and installing ELILO?
Quote:
Originally Posted by Gerard Lally
You said you tried with a GPT table. Did you make sure to zero out the sectors at both start and end of disk before going back to MBR?
I zeroed the first 512 bytes, is it necessary to zero the end?
I'm thinking about going with Antergos. I mean it works, but dang I would much prefer Slackware.
I zeroed the first 512 bytes, is it necessary to zero the end?
I've had problems whenever I've forgotten to do so. The newer partitioning tools in Slackware - gdisk and fdisk - might look after this for you when you revert to MBR; I'm not sure. I still prefer to fully clear the GPT table anyway, a backup copy of which is located at the end of the disk.
I tried the current ISO and it doesn't seem to work any differently than 14.2 for me. When you say EFI mode do you mean creating an EFI partition and installing ELILO?
Of course. And you need to set your machine's firmware to EFI mode, not Legacy, else ELILO can't work at all.
Last edited by Didier Spaier; 12-27-2017 at 05:01 PM.
It just won't boot the slackware ISO when I disable legacy and enable secure boot. It says the boot image doesn't pass authentication. I tried selecting which efi file to boot and it happens with all of them.
It just won't boot the slackware ISO when I disable legacy and enable secure boot. It says the boot image doesn't pass authentication. I tried selecting which efi file to boot and it happens with all of them.
Does it not allow you to disable legacy and leave secure boot disabled as well?
I'm not sure that ELILO is being installed. During the setup it asks if I want to skip installing LILO and proceed to installing ELILO, but when I select that option it immediately goes to network setup. There is no indication that ELILO actually installed, also there are no files in /boot/efi.
Out of curiosity I did chroot /mnt and tried to run 'eliloconfig' and it says "system is not running under efi". This is with both legacy and secure boot disabled.
Out of curiosity I did chroot /mnt and tried to run 'eliloconfig' and it says "system is not running under efi". This is with both legacy and secure boot disabled.
No that doesn't mean that the installer is not running under uefi. To determine if a system is running under uefi, eliloconfig checks for the directory /sys/firmware/efi. Since you chrooted into /mnt, that directory wouldn't exist (i.e /mnt/sys/firmware/efi).
You can check to see if the installer is running under uefi by checking for the the directory (without chroot'ing).
Code:
# ls /sys/firmware/efi
You could also try running eliloconfig without change rooting.
Last edited by laprjns; 12-28-2017 at 03:37 PM.
Reason: fixed typos, thanks Didier
What laprjns said, with a small correction: read /sys/firmware/efi, instead of /system/firmware/efi.
Anyway the installer detected it, else it wouldn't have asked if you want to skip elilo, so yes when you tried the machine was in EFI mode. However for some reason at some point the installer didn't detect properly your efi partition or couldn't use it, hence eliloconfig failed or didn't run. Let's investigate why.
Quote:
Out of curiosity I did chroot /mnt and tried to run 'eliloconfig' and it says "system is not running under efi". This is with both legacy and secure boot disabled.
This is because in the chroot /sys was not mounted, hence /sys/firmware/efi couldn't be found. In order for this test to work you should bind mount /sys before chroot, and also other special directories, like this:
Code:
mount <future root directory> /mnt # if not already done by the installer
mount --bind /sys /mnt/sys
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
chroot /mnt
mount <your EFI partition> /boot/efi
eliloconfig
Now to investigate further, please do this:
boot the installer up to and including the (fake) login as root, but do not type "setup" yet.
check the presence of /sys/firmware/efi, just to be sure:
Code:
file /sys/firmware/efi
type this command and report back its exact output(*):
Code:
lsblk -o model,name,size,parttype,fstype
Be careful not to include any whitespace in the comma-separated list of options else the command will fail.
tell us what is the purpose (intended usage) of each partition listed by the command above.
give a link to the ISO you downloaded to test
mount the future / (root) partition of the to_be_installed system as /mnt, then do the bind mounts indicated above, chroot /mnt, run eliloconfig and report the outcome.
(*) To avoid copying the output by hand you could mount an USB stick's partition as /floppy, run "lsblk -o model,name,size,parttype,fstype > /floppy/lsblk.txt" and give the content of lsblk.txt or attach it to your next post.
Thanks in advance.
Last edited by Didier Spaier; 12-28-2017 at 05:36 AM.
Reason: Line for mounting /efi/boot partition added.
@ Didier Spaier, for eliloconfig to work shouldn't the op mount the efi partiion at /mnt/boot/efi before chrooting or /boot/efi after chrooting before running eliloconfig?
@ Didier Spaier, for eliloconfig to work shouldn't the op mount the efi partiion at /mnt/boot/efi before chrooting or /boot/efi after chrooting before running eliloconfig?
That's right, I forgot that, thanks.
PS Now fixed.
Last edited by Didier Spaier; 12-28-2017 at 05:37 AM.
What laprjns said, with a small correction: read /sys/firmware/efi, instead of /system/firmware/efi.
Anyway the installer detected it, else it wouldn't have asked if you want to skip elilo, so yes when you tried the machine was in EFI mode. However for some reason at some point the installer didn't detect properly your efi partition or couldn't use it, hence eliloconfig failed or didn't run. Let's investigate why.
This is because in the chroot /sys was not mounted, hence /sys/firmware/efi couldn't be found. In order for this test to work you should bind mount /sys before chroot, and also other special directories, like this:
Code:
mount <future root directory> /mnt # if not already done by the installer
mount --bind /sys /mnt/sys
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
chroot /mnt
mount <your EFI partition> /boot/efi
eliloconfig
Now to investigate further, please do this:
boot the installer up to and including the (fake) login as root, but do not type "setup" yet.
check the presence of /sys/firmware/efi, just to be sure:
Code:
file /sys/firmware/efi
type this command and report back its exact output(*):
Code:
lsblk -o model,name,size,parttype,fstype
Be careful not to include any whitespace in the comma-separated list of options else the command will fail.
tell us what is the purpose (intended usage) of each partition listed by the command above.
give a link to the ISO you downloaded to test
mount the future / (root) partition of the to_be_installed system as /mnt, then do the bind mounts indicated above, chroot /mnt, run eliloconfig and report the outcome.
(*) To avoid copying the output by hand you could mount an USB stick's partition as /floppy, run "lsblk -o model,name,size,parttype,fstype > /floppy/lsblk.txt" and give the content of lsblk.txt or attach it to your next post.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.