LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-05-2013, 06:15 PM   #1
trainee
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 142

Rep: Reputation: 16
ELILO - how to dual boot Windows


I have just installed Slackware 14.1 on a Sony Vaio (with UEFI). I created a partition and installed Slackware on it. But now, the computer boot right into Slackware from the beginning with no prompting. Do you know how I can access elilo, and configure it so that I can dual boot to either Windows or Slackware?

Thanks.
 
Old 12-05-2013, 08:11 PM   #2
trainee
Member
 
Registered: Dec 2004
Distribution: Slackware
Posts: 142

Original Poster
Rep: Reputation: 16
This is not an answer (at least, in the sense of using ELILO to dual boot), but a workaround. I installed rEFind and was able to boot Windows again.

Added later: Yes, reFIND helped me got Windows back, but ultimately, it still does not help dual booting. It messed up after one Windows boot, and I could not get it to work again (even after following the instruction of the author of the software). In the end, my current situation is: created a USB stick for my Slackware. If I need to boot Linux, I use the USB stick. If not, I boot by hard drive. Is there anything you can help me with this?

Last edited by trainee; 12-05-2013 at 11:02 PM.
 
Old 12-06-2013, 12:05 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,197
Blog Entries: 3

Rep: Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425
Member Response

Hi,

Look at: README_UEFI.TXT
Quote:
To use UEFI, or not to use UEFI? Unless your computer came with a preinstalled version of Windows that requires UEFI, switching to Legacy Boot (aka, traditional BIOS) is an option. Just switch to Legacy Boot in the UEFI menus. With most systems you can get into the UEFI menu by pressing the ESC key as the system boots. Then boot the Slackware installer and remove any existing partitions using cgdisk to start over. You may use either the GPT partitioning scheme, or the traditional MBR partitioning scheme, but there's really no advantage to switching back to MBR if your system already has a GPT partitioned hard drive. But... if you want to do that, you can. To wipe out an existing GPT, use the gdisk command. For example, to wipe /dev/sda: gdisk /dev/sda Enter 'x' to enable the entended options. Enter 'z' to zap (wipe out) the existing GPT. Answer 'Y' to add questions. But I do want to use UEFI, and keep my existing Windows installation! Great! First things first. You'll need to enter the UEFI menus and disable Secure Boot, since Slackware does not currently work if Secure Boot is enabled. Windows will continue to work fine without it. Then, you will probably need to shrink your main Windows partition, since otherwise it is unlikely that you'll have any free space to install Linux. To do this, boot the machine into Windows. Move the mouse into the upper right corner, and select the search function (magnifying glass icon). Enter diskmgmt.msc to start up the Disk Management tool. The disk partitions will be displayed as a bar chart at the bottom of the window. Mouse over the main Windows partition (probably the largest NTFS partition) and right click to bring up a menu. Select "Shrink Volume..." from this menu. Shrink the partition to make enough free space for Slackware's root, swap, and other partitions. Reboot the machine, and start the Slackware installer from USB or DVD. You might have to hit ESC and select your boot device from the boot manager menu. Now you're ready to install!
Be sure to read the whole document.
 
Old 12-07-2013, 03:35 AM   #4
jtsn
Member
 
Registered: Sep 2011
Location: Europe
Distribution: Slackware
Posts: 803

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
ELILO unlike LILO isn't a boot manager, so you have to install one. Your options are rEFInd, GRUB 2 and SYSLINUX 6.x.

The easiest choice is rEFInd, because it's able to autodetect everything (including ELILO). Another hindrance is that you have to use Windows to set your preferred boot manager, otherwise it resets the firmware to its own one. The rEFInd documentation contains the instructions.
 
Old 12-07-2013, 06:19 AM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,197
Blog Entries: 3

Rep: Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425
Member Response

Hi,

elilo;
Quote:
elilo - install EFI boot loader

SYNOPSIS

elilo [options]
DESCRIPTION

This manual page documents briefly the elilo command, which was written specifically for the Debian distribution to simplify configuring and using the elilo.efi bootloader. There are two parts to elilo, the bootloader itself and this utility which installs or updates a bootload configuration. The primary function of elilo is to copy files necessary for booting Debian GNU/Linux from the main filesystem to a subdirectory /EFI/debian on the boot partition. These include elilo.efi, elilo.conf, and the kernel and ramdisk images referenced by elilo.conf. In addition, elilo can create a default configuration file, /etc/elilo.conf, and can invoke efibootmgr to create an entry in the EFI Boot Manager menu such that a system will autoboot in to Debian GNU/Linux on power up. elilo requires a couple of extra parameters in elilo.conf that elio.efi does not currently support. These are needed so that a normal run of elilo with no parameters can find the elilo.efi binary and boot partition in order to rebuild it. They are: install=<path to elilo.efi> boot=<boot partition>
efibootmgr;
Quote:
NAME


efibootmgr -- manipulate the EFI Boot Manager
SYNOPSIS


efibootmgr [-a] [-A] [-b XXXX] [-B XXXX] [-c] [-d DISK] [-e 1|3|-1] [-E NUM] [-l NAME] [-L LABEL] [-n XXXX] [-N] [-o XXXX,YYYY,ZZZZ ...] [-O] [-p PART] [-q] [-v] [-V] DESCRIPTION

efibootmgr is a userspace application used to modify the Intel Extensible Firmware Interface (EFI) Boot Manager. This application can create and destroy boot entries, change the boot order, change the next running boot option, and more. Details on the EFI Boot Manager are available from the EFI Specification, v1.02 or later, available from: (link to URL http://developer.intel.com) Note: efibootmgr requires that the kernel module efivars be loaded prior to use. 'modprobe efivars' should do the trick.
rEFInd is not a boot loader;
Quote:
This page describes rEFInd, my fork of the rEFIt boot manager for computers based on the Extensible Firmware Interface (EFI) and Unified EFI (UEFI). Like rEFIt, rEFInd is a boot manager, meaning that it presents a menu of options to the user when the computer first starts up, as shown below. rEFInd is not a boot loader, which is a program that loads an OS kernel and hands off control to it. Many popular boot managers, such as the Grand Unified Bootloader (GRUB), are also boot loaders, which can blur the distinction in many users' minds. rEFInd, though, relies on a separate boot loader to finish the handoff to an OS; it just presents a pretty menu and gives you options for how to proceed prior to booting an OS. All EFI-capable OSes include boot loaders, so this limitation isn't a problem. If you're using Linux, you should be aware that several EFI boot loaders are available, so choosing between them can be a challenge. In fact, the Linux kernel can function as an EFI boot loader for itself, which gives rEFInd characteristics similar to a boot loader for Linux. See my Web page on this topic for more information.
Hope this helps to clear things up.
 
Old 12-09-2013, 09:43 AM   #6
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,209

Rep: Reputation: 55
I prefer rEFInd and find that it reliably boots Slackware or Windows.

Alternatively you can try Grub2. I wrote a howto for Grub2 which is here. I suggest trying it all out on a USB stick before moving the files to the EFI partition. The howto is over a year old now but should still work. Grub2 is now installed on 14.1 so you needn't bother with that step.

I found that Grub2 sometimes failed inexplicably in booting Windows. ReFInd is the only solution that has worked for me consistently. I suspect that EFI is a bit buggy and it is a little difficult to predict what will work for you.
 
Old 12-09-2013, 06:04 PM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,197
Blog Entries: 3

Rep: Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425Reputation: 1425
Member Response

Hi,

rEFInd is not a bootloader! Nothing more than a menu to provide selection for proper firmware to allow the hardware to be prepared to use a bootloader;
Quote:
from http://www.rodsbooks.com/refind/
rEFInd is a boot manager
 
Old 12-10-2013, 02:44 AM   #8
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,209

Rep: Reputation: 55
Quote:
rEFInd is not a bootloader
Though you can use it as I do with a stub-enabled kernel in the EFI partition in which case you do not need any other bootloader. The generic kernel in 14.1 is stub-enabled so all I had to do when I installed 14.1 was copy the kernel over and edit refind.conf (I'm not sure if even that edit was necessary).
 
Old 12-10-2013, 05:25 AM   #9
jtsn
Member
 
Registered: Sep 2011
Location: Europe
Distribution: Slackware
Posts: 803

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by arubin View Post
Though you can use it as I do with a stub-enabled kernel in the EFI partition in which case you do not need any other bootloader. The generic kernel in 14.1 is stub-enabled so all I had to do when I installed 14.1 was copy the kernel over and edit refind.conf (I'm not sure if even that edit was necessary).
rEFInd also has various EFI file system drivers (Ext2, Ext4, Reiser, Btrfs) bundled, so it can read and execute your EFI-enabled Linux kernel (and initrd) directly from your Linux file systems (like /boot). It also can execute ELILO from other places than the ESP, which then - enabled by rEFInd's file system drivers - can read and boot a Linux kernel traditional ELF format from /boot. So you can make your setup more straightforward and compatible.

It's called Extensible Firmware Interface for a reason.

Long story short: rEFInd adds a lot of options and boot possibilities to your usually rudimentary EFI firmware and is recommended for EFI-based multi-boot setups.
 
  


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
Dual boot OS X and Slackware64-current (Thu Jun 27 23:56:34 UTC 2013) with elilo? janucaria Slackware 2 07-03-2013 07:56 AM
Losing Windows boot on dual boot Windows/Ubuntu machine windows22 Linux - Newbie 32 08-30-2010 09:54 PM
Dual Drive/ Dual Boot > Open Solaris 2008.05 + Windows XP SP2 starwarp2000 General 2 07-14-2008 06:01 AM
dual boot - Grub won't boot Windows on /windows/D partition biosol Suse/Novell 9 04-09-2006 08:14 PM


All times are GMT -5. The time now is 11:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration