LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 07-07-2017, 05:37 AM   #1
VisionIncision
Member
 
Registered: Dec 2011
Location: Wiltshire, UK
Distribution: Slackware, Gentoo
Posts: 130

Rep: Reputation: 3
Windows Dual Boot


Hi all,
I have always used Slackware exclusively on my laptop, so installation has always been straightforward.

I installed Slack a while ago on my work PC to a separate drive, but it overwrote the UEFI for my Windows drive, not the same drive as I installed Slack to.

I'm wanting to replace Debian on my home PC with Slack, but am cautious as I have a similar setup(Windows on one drive, linux on the other).

At present, I have GRUB2 EFI on my second drive with my Linux install, and the Windows UEFI bootloader is untouched on the first drive.

Before I go messing with my setup, is there a way to ensure during Slack setup that it only installs EFI data to the drive on which I am installing it?

Sorry, I would just go and try it, but I rely on this PC for work at home.
 
Old 07-07-2017, 05:48 AM   #2
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
you could unplug the windows drive before installing debian but not sure how that will effect the ability to boot either one.

Last edited by colorpurple21859; 07-07-2017 at 05:50 AM.
 
Old 07-07-2017, 06:01 AM   #3
VisionIncision
Member
 
Registered: Dec 2011
Location: Wiltshire, UK
Distribution: Slackware, Gentoo
Posts: 130

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by colorpurple21859 View Post
you could unplug the windows drive before installing debian but not sure how that will effect the ability to boot either one.
As a last resort I could do this to install Slack. Should work, just means I'd have to use the system boot menu to pick a boot drive.
 
Old 07-07-2017, 06:20 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,139

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
Worse than that, you'll have 2 EFI partitions. I don't imagine that would lead to good things, but I haven't tested it myself.
That advice worked for MBR, but I wouldn't do it on UEFI with gpt.

I suspect you didn't over-write anything, but merely added a new entry to the NVRAM on the motherboard, which became the (new) default boot option.
 
Old 07-07-2017, 06:29 AM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,365

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Quote:
Worse than that, you'll have 2 EFI partitions. I don't imagine that would lead to good things, but I haven't tested it myself.
It works with an external usb drive, or at least it does on my asus laptop anyways, not sure with two internal drives.

Last edited by colorpurple21859; 07-07-2017 at 06:31 AM.
 
Old 07-07-2017, 06:36 AM   #6
VisionIncision
Member
 
Registered: Dec 2011
Location: Wiltshire, UK
Distribution: Slackware, Gentoo
Posts: 130

Original Poster
Rep: Reputation: 3
I can confirm that having an EFI partition on both internal drives works just fine. It's what I have at the moment.

The issue I had last time was that Slack automatically detected my existing Windows EFI partition on the other drive and installed ELILO to that.
 
Old 07-07-2017, 06:53 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,139

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
For some value of "just fine".
I have never had any issue using a (Windows) pre-allocated EFI for Linux - grub[2] only in my particular usage.
 
Old 07-07-2017, 11:38 PM   #8
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 873

Rep: Reputation: 394Reputation: 394Reputation: 394Reputation: 394
README_UEFI.TXT is very useful as a first reading in these cases.
 
Old 07-08-2017, 04:37 AM   #9
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
The Slackware installer (64-bit) does this:
  • Make a list of all EFI partitions on your system.
  • Take the first one found initially (probably on /dev/sda, as it scans the devices beginning with this one in alphabetic order).
  • But if there is one on the same device as the root partition, prefer this one if different
  • Format this partition in FAT32 (if not already formatted).
  • Prepare a record for it in /etc/fstab that will be written at end of installation.
  • Later (during the CONFIGURE step) offer to skip running lilo and run elilo instead, if it detected that the firmware is in EFI mode and there is an EFI system partition set up (however you may install both, see below).
  • Then if you agreed to run elilo it actually runs the script /usr/sbin/eliloconfig that put the stuff needed for booting in the EFI system partition.
Some notes:
  • Theoretically (read: if the firmware complies to the UEFI specification) you can have several EFI system partitions, that the firmware will somehow "concatenate" to find the EFI images and applications.
  • Conversely you can have as many EFI images or applications that you want in the same EFI system partition.
  • You can and may choose to install both lilo and elilo. This doesn't hurt at all and allows you to boot in both EFI and legacy modes if you want.
  • Especially in case of multi-boot it can be handy to write a boot entry for Slackware in the firmware's boot menu (alongside the existing ones), which eliloconfig will propose you to do.

Last edited by Didier Spaier; 07-08-2017 at 04:39 AM.
 
  


Reply



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] Dual boot not working after Windows upgrade, can't boot Linux or Windows dam50 Linux - Newbie 10 10-10-2015 06:50 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 / openSUSE 9 04-09-2006 08:14 PM

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

All times are GMT -5. The time now is 12:49 AM.

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
Open Source Consulting | Domain Registration