LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 09-21-2017, 11:47 AM   #1
arizona267
LQ Newbie
 
Registered: Sep 2017
Posts: 4

Rep: Reputation: Disabled
No elilo after first installation


Machine: ASUS X555BA-DS94 Notebook
Processor : AMD Dual Core A9-9410 2.9GHz
Memory: 4GB DDR4
Graphics: AMD Radeon R5 Graphics

I was able to install Slackware64-14.2 on this machine once only. The first time everything went ok and I was able to choose the elilo installation option after I skipped the lilo option.
Unfortunately, the machine lost power at one point, after which the UEFI / BIOS did not
present any disk devices except for the DVD. So I decided to reinstall Slackware.
Attempted to do this a number of times but each time the elilo option is not presented after I skip the lilo option in setup.

Therefore when I reboot, the UEFI/ BIOS still does not present any devices to boot from except for the DVD device. I even repartitioned the HD as follows:
using cgdisk but cannot get elilo option to come up after the lili in setup.

EFI partition 512 MiB code =ef00
/ partition - 2GiB Code = 8300
swap = 4GiB Code = 8200
/home = 100GiB Code =8300
/usr = all the rest Code 8300

Please help
 
Old 09-22-2017, 10:22 PM   #2
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,464

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
Are your sure your booting in efi mode and not csm mode? If your booting in efi mode /sys/firmware/efi/ should exist.
 
Old 09-26-2017, 03:41 PM   #3
arizona267
LQ Newbie
 
Registered: Sep 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
>>>colorpurple21859
>>>Are your sure your booting in efi mode and not csm mode? If your booting in efi mode /sys/firmware/efi/ should exist.

Is /sys/firmware a dynamic directory which is created at boot time? If so I would not be able to see it since machine cannot bootup.
As far as efi vs cms, if I try to bootup with Fastboot on and CSM off then machine just goes straight into BIOS setup screen.
If I try booting up with CSM enabled and fastboot disabled then machine simply displays a message stating that no bootup device found and to enter a boot device name and waits.

My question is how can I reinstall elilo so that the BIOS sees the harddrive as a bootup device?
Thanks.
 
Old 09-26-2017, 03:49 PM   #4
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,464

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
What happens if you boot with both fastboot and csm disabled?
You should see /sys/firmware/efi/ when booted into the slackware dvd installer if it is in efi mode.
 
Old 09-26-2017, 03:52 PM   #5
arizona267
LQ Newbie
 
Registered: Sep 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
>>>colorpurple21859
>>>What happens if you boot with both fastboot and csm disabled?
>>>You should see /sys/firmware/efi/ when booted into the slackware dvd installer if it is in efi mode.

I'll try that tonight - thanks.
 
Old 09-27-2017, 06:38 AM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,490

Rep: Reputation: Disabled
Another way: when asked, install lilo. I won't hurt, will just be ignored if not in csm mode (but won't prevent booting in UEFI mode if you can solve the UEFI issue), and at least will allow you to boot Slackware in csm mode.
 
Old 09-29-2017, 11:55 AM   #7
arizona267
LQ Newbie
 
Registered: Sep 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
>>>Didier Spaier
>>>Another way: when asked, install lilo. I won't hurt, will just be ignored if not in csm mode (but won't prevent booting in UEFI mode if >>>you can solve the UEFI issue), and at least will allow you to boot Slackware in csm mode.

I actually did that the on the second time I reinstalled just to see what would happen. Then rebooted many times, changing options each time - but machine either went straight into BIOS set up or asked for a bootup device.

Since this is a friend's laptop I ended up installing Ubuntu 17.04 just to get her going - (yes work intrudes on playtime ;-)
But will retry to install Slackware this weekend. Chose to have Ubuntu use entire disk, so my partitions will have been wiped out and the EFI partition will have been recreated. When I install Slackware I will first simply install over Ubuntu, then if that works I'll repartition disk. Thanks.
 
Old 06-28-2018, 05:33 PM   #8
dkupka2
LQ Newbie
 
Registered: Jun 2018
Posts: 4

Rep: Reputation: Disabled
re: No elilo after first installation

Attempted to install Slackware x64 in VirtualBox VM with EFI enabled in the VM settings for this install.

Similarly to the initial poster, the installer asks about getting elilo installed to use with EFI boot, but the installer instead goes straight to asking about network setup.
Elli does appear to have installed as a package, though not sure how to access, and post-install, I can only boot to the EFI boot menu...
 
Old 06-28-2018, 06:50 PM   #9
laprjns
Member
 
Registered: Oct 2005
Location: Connecticut USA
Distribution: SalixOS
Posts: 183

Rep: Reputation: 90
Quote:
Originally Posted by dkupka2 View Post
Similarly to the initial poster, the installer asks about getting elilo installed to use with EFI boot, but the installer instead goes straight to asking about network setup.
This is an indication that the elilo installer script silently failed before completing the elilo installation. I think that the file system on your EFI partition wasn't formatted as a vfat file system. Similar thing happen to be on real hardware a while back, see here: https://www.linuxquestions.org/quest...7/#post5810474

In addition I was able to recreate the failed elilo installation that you got on a VM (VirtualBox). After setting up the VM and before running the installer I partitioned the virtual drive into 3 partitions; one for the EFI partition, a swap partition, and one for the root file system. I then purposely format the EFI drive with the ext2 file system and then started the installer. In the early part of the installation process, when the installer is setting the various file systems, it did detect and present the /dev/sda1 as the EFI partition, but identified it as having a VFAT file system. This is because the script check for the partition type to determine if it is a EFI partition and checks to see if it is formated. If it is not formatted the installer then formats it as vfat. It doesn't check for which file system it is formatted as just if it formated or not. If it is formatted, then it sets it as the efi partition to install elilo on.
When the elilo installation script runs, after you answer that you want to install it, it then check which file system is formatted on the EFI partition. If it finds that its not formatted as vfat, it then silently exist the script without installing the efi files and moves on to the next step in the install process, which apparently is the network setup routine.

Last edited by laprjns; 06-29-2018 at 04:38 AM. Reason: an attempt to clarify
 
Old 06-28-2018, 07:47 PM   #10
dkupka2
LQ Newbie
 
Registered: Jun 2018
Posts: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by laprjns View Post
This is an indication that the elilo installer script silently failed before completing the elilo installation. I think that the file system on your EFI partition wasn't setup correctly. Similar thing happen to be on real hardware a while back, see here: https://www.linuxquestions.org/quest...7/#post5810474

In addition I was able to recreate it on a VM (VirtualBox). After setting up the VM and before running the installer I partitioned the virtual drive into 3 partitions; one for the EFI partition, a swap partition, and one for the root file system. I then purposely format the EFI drive with the ext2 file system and then started the installer. In the early part of the installation process, when the installer is setting the various file systems, it did detect and present the /dev/sda1 as the EFI partition, but identified it as having a VFAT file system. This is because the script check for the partition type to determine if it is a EFI partition and checks to see if it is formated. If it is not formatted the installer then formats it as vfat. It doesn't check for which file system it is formatted as just if it formated or not. If it is formatted, then it sets it as the efi partition to install elilo on.
When the elilo installation script runs, after you answer that you want to install it, it then check which file system is formatted on the EFI partition. If it finds that its not formatted as vfat, it then silently exist the script without installing the efi files and moves on to the next step in the install process, which apparently is the network setup routine.
I had /dev/sda1 set up as 100MB EFI partition, /dev/sda2 set up as a 17GB ext4 partition for root, and /dev/sda3 as a 3GB swap partition

The EFI partition I think I also formatted as ext4? So, I should instead try formatting it as ext2 and start installer.

Will try this and let you know, thanks!
 
Old 06-28-2018, 08:38 PM   #11
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,490

Rep: Reputation: Disabled
Quote:
Originally Posted by dkupka2 View Post
The EFI partition I think I also formatted as ext4? So, I should instead try formatting it as ext2 and start installer.
No! format it as vfat:
mkfs-msdos -F 32 /dev/sda1
 
Old 06-28-2018, 09:49 PM   #12
dkupka2
LQ Newbie
 
Registered: Jun 2018
Posts: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
No! format it as vfat:
mkfs-msdos -F 32 /dev/sda1
Thank you - I was only responding to that bit regarding laprjns' post that included the statement:

"I then purposely format the EFI drive with the ext2 file system and then started the installer."
 
Old 06-29-2018, 01:35 AM   #13
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,490

Rep: Reputation: Disabled
To be clear, the UEFI specification states( 13.3.1.1 File System Format):
Quote:
The EFI firmware must support the FAT12, FAT16 and FAT32 variant of the EFI file system
So, using a FAT file system guarantees that a compliant firmware will be able to find the boot loader in the ESP.

Last edited by Didier Spaier; 06-29-2018 at 01:38 AM.
 
Old 06-29-2018, 04:28 AM   #14
laprjns
Member
 
Registered: Oct 2005
Location: Connecticut USA
Distribution: SalixOS
Posts: 183

Rep: Reputation: 90
Sorry if I confuse you. I purposely formatted the partition with the wrong file system to demonstrate that the installer script has a bug in it and thereby recreating the error that you got.
 
Old 06-29-2018, 04:48 AM   #15
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,490

Rep: Reputation: Disabled
I intend to propose in some weeks changes in the installer so that it better handle this case (i.e. a partition tagged as ESP but hosting a non-FAT file system).

Meanwhile, my advice to users is to not only tag the partition as EFI System but also wipe any preexisting file system in it, then install a FAT file system there, all this before running setup.

Last edited by Didier Spaier; 06-29-2018 at 04:50 PM. Reason: s/Fat partition/Fat file system/
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ELILO not working karthik_holla Slackware 18 01-27-2017 07:57 PM
how to update elilo ?? BW-userx Slackware 13 11-18-2016 08:20 PM
[SOLVED] Problems with ELILO working after installation of Slack 64 14.1 on ASUS X550C laptop digimaus Slackware 5 02-20-2015 08:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration