LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 12-20-2012, 12:21 PM   #1
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,420

Rep: Reputation: Disabled
slack/windows dual boot with efi/gpt


I just got my first laptop with efi/gpt and have a question about making it dual-boot with the pre-installed windows 8. I enabled the legacy mode on the laptop, and the wiki at http://docs.slackware.com/howtos:sla..._uefi_hardware, suggests that I can proceed with the install as usual. I used windows native tools to shrink the windows partition, cgdisk to create the partitions I need for slackware, and went ahead with the install as usual up to the step of installing lilo.

So now I am not sure if I should install lilo to the MBR (which is what I usually do) or to the linux root partition. Or do I still need to use elilo. Based on the wiki it sounds like I should install to MBR, but since it does not specifically reference dual-boot, I wonder if this will kill the windows boot.

Any advice would be appreciated.

Thanks,
Brian
 
Old 12-20-2012, 04:23 PM   #2
folkenfanel
Member
 
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current with KDE 4.8.5
Posts: 299

Rep: Reputation: 35
Wink "There is no spoon. There is no MBR either"

Hello.

There is no MBR. (unless you repartitioned the disk with a MBR).

To boot with EFI from a GPT disk, you need to have (besides your normal data partitions), an EFI system partition with the EFI bootloader. You might use ELILO if you use 64-bit Slackware (I tried to boot 32-bit Slackware with ELILO and failed; besides ELILO can't boot Windows). I advice you to use GRUB2, which is capable to boot any OS.

The Windows boot won't be killed, but it will be zombified and return if you kill it. (Windows 8 seems to need to see "Windows Boot Manager" as an entry in your EFI). So I advice you to keep that ugly thing, but set it to last boot priority, which is what I did.
 
Old 12-21-2012, 08:10 AM   #3
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,420

Original Poster
Rep: Reputation: Disabled
I understand that there is no MBR per se, but the how-to says that if you enable the legacy support/BIOS emulation (which I did) that you can proceed as normal. What does that mean, then?

Brian
 
Old 12-21-2012, 09:11 AM   #4
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-14.1 (3.14.0) UEFI enabled
Posts: 344

Rep: Reputation: 71
Quote from RodsBooks
"To protect GPT disks against errant older disk tools, GPT keeps an MBR partition table on the first sector of the disk"
On my system I installed lilo to the mbr as always. When and if I make a mistake in my elilo.conf The boot justs fails thru to a lilo boot.
It seems that is the way it is supposed to work?
Please be aware that I do not dual boot
John

Last edited by AlleyTrotter; 12-21-2012 at 09:13 AM.
 
Old 12-21-2012, 10:05 AM   #5
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,420

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AlleyTrotter View Post
Quote from RodsBooks
"To protect GPT disks against errant older disk tools, GPT keeps an MBR partition table on the first sector of the disk"
On my system I installed lilo to the mbr as always. When and if I make a mistake in my elilo.conf The boot justs fails thru to a lilo boot.
It seems that is the way it is supposed to work?
Please be aware that I do not dual boot
John
So you install lilo during the setup and then install elilo? What purpose does elilo serve in this situation?

Brian
 
Old 12-21-2012, 10:07 AM   #6
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,420

Original Poster
Rep: Reputation: Disabled
I've never used grub. Is there a sense (reading the tea leaves) that Slackware might be moving toward grub2 in the future if efi/gpt becomes ubiquitous?

Brian
 
Old 12-21-2012, 01:35 PM   #7
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-14.1 (3.14.0) UEFI enabled
Posts: 344

Rep: Reputation: 71
Quote:
Originally Posted by BCarey View Post
So you install lilo during the setup and then install elilo? What purpose does elilo serve in this situation?

Brian
elilo will boot using the UEFI firmware
if there is an error in the UEFI setup then:
lilo will boot using the legacy mode of the firmware.
without lilo installed the system will just hang at an error message.
(voice of experience getting UEFI set up on my new system).
Not sure how much of a difference there is between BIOS/EFI/UEFI/WINDOWSBOOT apparently UEFI has superseded the old MBR bios boot.
Larger disk / files more partitions etc.
Personal taste: having tried several boot loaders elilo is much simpler than efiShell, grub, refind, or kernel-stub methods. I hope Slackware sticks with the new (e)lilo myself.
John
 
Old 12-22-2012, 02:33 PM   #8
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,420

Original Poster
Rep: Reputation: Disabled
This is by far the most frustrating experience I've had with linux in many years, and is raising existential questions for me.

I have activated the "legacy mode" of the laptop, booted from the slack dvd, installed slackware and lilo. I can boot the huge kernel from the dvd and from lilo (although sometimes it hangs at one of the udevadm commands, and seems to throw udev-related errors). The generic kernel, on the other hand, does not boot, but throws many errors that fly by quickly and hangs often at a udevadm command.

I have installed elilo, and again can use it to boot the huge kernel but not the generic kernel. Also, the huge kernel does not boot consistently but sometimes hangs at one of the udevadm commands.

Booting into my system from the slack dvd with the huge kernel works sometimes but not always.

So it works, kind of, sometimes, but not consistently.

BTW, this is a brand new computer. I guess it could have hardware problems, and am running memtest right now.

Brian
 
Old 12-23-2012, 12:44 PM   #9
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-14.1 (3.14.0) UEFI enabled
Posts: 344

Rep: Reputation: 71
I feel you're frustration
I hammered on my keyboard for about a week before success
Anyone who thinks UEFI is not a power play by Microsoft and Apple to get rid of Linux should think again.
Installing slackware from 15 floppies was much easier than installing it under UEFI.
If you can't get a consistent boot from the huge kernel you may have other problems.

When in your UEFI setup mode under the boot screen is there an option for UEFIShell?
If so try that and when you get a prompt type
help bcfg
This will describe a method from the shell to create a slot in the nvram for your linux boot.
If like my system there was no uefi shell installed you can download and install a uefi shell from
http://tianocore.git.sourceforge.net
Install and use that no need to build as it runs before the OS
or
You could download and install efibootmgr to your usb boot stick. This would also allow you to add a slot to the nvram for linux
https://linux.dell.com/efibootmgr/

All the above along with a stub-kernel will work on my motherboard which is a:
AsRock z77 extreme4 with UEFI firmware version 2.7
My initial breakthrough was with a 3.6.6 stub kernel using the huge config and setting all EFI configs to yes and setting the CMDLINE_CONFIG to root=/dev/sda ro then copying it to my efi partition named as Shellx64.efi and selecting boot to shell in the UEFI boot setup screen. After that the knowledge just seemed to fall into place.

John
Sorry for being so windy.
Just reread your post and see you are sometimes getting UEFI to boot. So maybe my longwindedness is of no help.

Last edited by AlleyTrotter; 12-23-2012 at 12:48 PM. Reason: longwindedness
 
Old 12-23-2012, 02:44 PM   #10
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,420

Original Poster
Rep: Reputation: Disabled
I really appreciate your help, John. Without your encouragement the laptop would have been thrown out the window by now.

For whatever reason the huge kernel seems to be booting with some consistency now. I will start playing with some newer kernels and configurations now.

One irritating thing is that the computer seems to ignore the boot order that I set up and insists on booting into windows unless I go into setup each time I boot and manually choose to boot from either the elilo.efi or from the internal hard drive. If it were my laptop I wouldn't care so much, but since it is for someone else it becomes one of those things that suggests to the end user that linux is more difficult, if you know what I mean.

Anyway, I'll keep going and report back here if I manage to make it work better.

Have you ever gotten it to work with a generic kernel, or a newer kernel configured basically as the generic kernel?

Brian
 
Old 12-23-2012, 05:18 PM   #11
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-14.1 (3.14.0) UEFI enabled
Posts: 344

Rep: Reputation: 71
Quote:
Originally Posted by BCarey View Post
Anyway, I'll keep going and report back here if I manage to make it work better.
Have you ever gotten it to work with a generic kernel, or a newer kernel configured basically as the generic kernel?
Brian
Yes. I used the script slackware provides to make the initrd and put that and the generic kernel into the efi partition added an entry to elilo.conf and it worked fine.
Code:
image=vmlinuz-generic-3.2.29
  label=generic
  initrd=initrd.gz
  read-only
  root=/dev/sda2
My own system is using a 3.7.1 kernel built using a modified config-generic-3.6-rc4.x64 from testing. I usually build in the necessary file systems for booting (ext4 in my case) and don't bother using an initrd.
John
 
Old 12-24-2012, 09:35 AM   #12
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 14.1 (multilib)
Posts: 1,209

Rep: Reputation: 55
It might be worth looking at rEFInd and replacing the default bootx64.efi with it. It finds other boot efis automatically and puts them in a menu.

You might also look at compiling a generic 3.3 kernel with Pat's config in testing but with enabling the efi-stub. This will enable you to boot directly from a kernel placed in the rEFInd efi folder.

Alan
 
Old 12-25-2012, 03:45 PM   #13
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 530

Rep: Reputation: 30
Quote:
Originally Posted by BCarey View Post
One irritating thing is that the computer seems to ignore the boot order that I set up and insists on booting into windows unless I go into setup each time I boot and manually choose to boot from either the elilo.efi or from the internal hard drive. If it were my laptop I wouldn't care so much, but since it is for someone else it becomes one of those things that suggests to the end user that linux is more difficult, if you know what I mean
When you launch efibootmgr what does it return? I mean is the boot order matching what you set?
Ciao

PS did you disable Secure Boot?

Last edited by urka58; 12-26-2012 at 04:26 AM.
 
Old 12-26-2012, 09:07 AM   #14
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,420

Original Poster
Rep: Reputation: Disabled
With the holidays I haven't been able to mess with it over the last couple of days. I'll get back to you as soon as I can, because I appreciate the help.

Brian
 
Old 12-31-2012, 11:01 AM   #15
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,420

Original Poster
Rep: Reputation: Disabled
I've made some progress, but have some new issues. Here is an update.

I have finally manged to keep the Windows efi booter from taking over at the beginning. I moved the /boot/efi/EFI/Microsoft directory to a different location. Now the computer follows the BIOS order I set up, booting the DVD if present and otherwise launching lilo.

I have rebuilt a kernel (3.4.24) based on Pat's generic config and adding the EFI stub and now I can boot without a bunch of errors.

I haven't yet gotten elilo to work, but haven't really tried yet with the new kernel.

I'm building 3.7.1 to try with that.

My big problem right now is with resuming from hibernation. It goes into the resume mode where you see it loading the image pages, then the screen starts to get brighter and brighter and then hangs, and the X session never comes back. Suspend to RAM no longer works either. I'm going to finish building the 3.7.1 kernel before trying to solve this problem.

I don't know what you mean "launch efibootmgr".

I have been playing with refind but haven't gotten it to work yet.

Brian

Last edited by BCarey; 12-31-2012 at 11:10 AM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
EFI main GPT overwritten everytime (when windows 7 runs) - structure of EFI masuch Linux - Newbie 2 07-20-2012 02:49 PM
Dual boot Gentoo + Windows 7 on a GPT disk Hammett Linux - General 0 01-11-2012 03:03 PM
Distro that can install with GPT/EFI BeaverusIV Linux - Distributions 4 08-22-2011 07:04 AM
Disk Partitions for dual boot with Windows 7 GPT/EFI motiv8d1 Linux - General 2 01-10-2011 06:22 PM
how to format an EFI partition on a GPT partitioned HD nfolken Linux - Laptop and Netbook 2 01-28-2010 08:59 AM


All times are GMT -5. The time now is 02:18 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