ELILO dual boot
Posted: 2018-02-09 Filed under: system | Tags: bios, boot, efi, ELILO, elilo.conf, UEFI, windows 4 CommentsI use a computer that has to have Linux and Windows 10 installed in parallel. Windows came pre-installed and requires UEFI… Therefore I went through Slackware’s instructions “To use UEFI, or not to use UEFI?” before installing Slackware. I told the installer to use ELILO and upon reboot, the system booted straight to Slackware. I installed Slackware -current, but that’s a separate story… Now I want to have the option to dual boot Windows and Linux.
Unfortunatelly elilo.conf
, found in /boot/efi/EFI/Slackware/
is poorly commented and I could not figure out right away what I needed to do. I googled around and found this blog post about ELILO.
I copied my kernel image and its corresponding initrd
file from /boot
to /boot/efi/EFI/Slackware
. Then I modified elilo.conf as follows:
chooser=simple delay=100 timeout=100 default=Windows # image=vmlinuz label=vmlinuz read-only append="root=/dev/sda5 vga=normal ro" image=vmlinuz-generic-4.14.17 label=gen initrd=initrd-4.14.17.gz append="root=/dev/sda5 vga=normal vt.default_utf8=1 ro" image=vmlinuz-generic-4.15.0-rc9 label=rc initrd=initrd-4.15.0-rc9.gz append="root=/dev/sda5 vga=normal vt.default_utf8=1 ro" image=dummy label=Windows
I could not find an easy way to make Windows bootable. However. I noticed that when I had some menu entry that was not correct (e.g. image=
pointing to a non existing kernel image), the computer would boot to Windows if I did nothing at the ELILO ..........
step. That’s why I made the dummy boot option there with label=Windows
and specified it as default boot option. Not the most elegant solution, but it does the job.
For now, I am going to leave things like this.
This is how I boot Win 7 UEFI with Slackware, not sure if Win10 will work
chooser=simple
default=4.19.67
delay=1
prompt
timeout=1
image=vmlinuz
append=”boot=live config union=overlay noswap noprompt ip=frommedia live-media-path=/dmt/live toram=filesystem.squashfs vga=788″
initrd=initrd.img
label=1.0.0
root=/dev/sda5
image=vmlinuz-generic-4.19.67
append=”resume=/dev/sda6″
initrd=initrd.gz
label=4.19.67
read-only
root=/dev/sda5
image=no_windows
label=6.1.7601
read-only
root=/dev/sda1
Thank you!
I replaced Elilo with Clover and everything still works. In case you missed it…
https://www.linuxquestions.org/questions/slackware-14/clover-efi-bootloader-playing-well-with-slackware-4175661604/#post6041513
hi, never heard of Clover, but it looks very neat. I may give it a try, thanks!