LinuxQuestions.org
Visit Jeremy's Blog.
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 08-09-2016, 02:11 PM   #1
YuGiOhJCJ
Member
 
Registered: Apr 2015
Posts: 53

Rep: Reputation: Disabled
Slackware 14.2 64 bits, UEFI, GPT and Windows 8.1: Windows cannot be installed on this disk.


Hello,

I have just installed Slackware 14.2 64 bits.
It is the first time I use a 64 bits operating system on my machine (I was always using a 32 bits operating system).

Also, I am using an UEFI (instead of a BIOS or an UEFI with the Legacy BIOS option enabled).

Also, I am using a GPT partition table (instead of a MBR).
I have used gdisk (instead of fdisk) in order to create my partitions:
* 100 MB for the UEFI partition
* 230 GB for the Windows 8.1 operating system
* 230 GB for the Slackware 14.2 operating system
* 005 GB for the Swap partition

I am using elilo (instead of lilo).

Well, it's fine but when I try to install Windows 8.1 32 bits I got the following message: "Windows cannot be installed on this disk. The Selected Disk is of the GPT Partition Style".

I thought it was because I forgot to disable the "Legacy BIOS" option in my UEFI but that's not the case: I have UEFI Only enabled.

So, I am wondering if Windows 8.1 does not recognize my 100 MB UEFI partition or maybe just does not support GPT.
According to Wikipedia, GPT is supported by Windows 8.1 32 bits.
I don't think I need the 64 bits version.

Have you any idea why I can't install Windows 8.1 after Slackware 14.2 has been installed with UEFI/GPT enabled?

Thank you.
Best regards.

Last edited by YuGiOhJCJ; 08-09-2016 at 03:23 PM.
 
Old 08-09-2016, 02:40 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
From past experience with Windows, it is always best to install Windows first, then install Linux after. In the past, the Windows installer would always crap out if it didn't have control over the partitioning and if Linux partitions were present on the install drive. It's been quite a few years since I've dualbooted (last time was with Windows XP before Vista even came out), but, it seems like their installers haven't changed much over the years.
 
Old 08-09-2016, 02:58 PM   #3
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
I agree, installing Windows first is the thing to do. This https://technet.microsoft.com/en-us/.../dn336946.aspx clearly states that you are correct, it ought to work. Something about your install media, bios/UEFI and GPT clearly isn't being recognized. It looks like you might be able to not reinstall everything if you use WinPE, but probably the easiest thing is to start from scratch.
 
Old 08-09-2016, 03:48 PM   #4
YuGiOhJCJ
Member
 
Registered: Apr 2015
Posts: 53

Original Poster
Rep: Reputation: Disabled
Well, I have just tested with the 64 bits version of Windows and I have exactly the same behavior than with the 32 bits version.

So, I removed all the partitions from my disk with the Windows installer and I have installed Windows on the whole disk.
I let Windows partition my disk automatically.

After that, I will check with gdisk how is partitioned my disk.

Last edited by YuGiOhJCJ; 08-09-2016 at 03:53 PM.
 
Old 08-09-2016, 03:56 PM   #5
Nh3xus
Member
 
Registered: Jan 2013
Location: France
Distribution: Slackware 14.1 32 bits
Posts: 211

Rep: Reputation: 57
Quote:
Originally Posted by YuGiOhJCJ View Post
After that, I will check with gdisk how is partitioned my disk.
It goes like this :

- A EFI partition formatted in FAT32
- A MSR partition (Microsoft System Reserved)
- The good ol' NTFS partition with your fresh Windows OS installed on it
 
Old 08-09-2016, 06:17 PM   #6
SlackWar
Member
 
Registered: Jul 2014
Location: Europe
Distribution: Slackware
Posts: 72

Rep: Reputation: Disabled
I have exactly the setup you want to create. You need to make it like this:

- install Windows 8.1 first (no need to let it take whole disk, just set the size you want, leaving rest for Linux)
- after successfull Windows' installation you can install Slackware
- my tip is: don't waste space for swap partition; use swapfile instead
- and always remember that after kernel compilation you need to properly manage contents of /boot/efi/EFI

Working in such setup 3rd year already. Note, that if you're going to upgrade to Windows 10, it'll add one more partition, so you'll need to modify /etc/fstab accordingly after this.
 
Old 08-10-2016, 12:30 AM   #7
YuGiOhJCJ
Member
 
Registered: Apr 2015
Posts: 53

Original Poster
Rep: Reputation: Disabled
I think I found something interesting that could explain why I need to install Windows first.
After I have installed Windows on the whole disk, I checked with gdisk the partition table.
I see a difference between the partition table when it is created by Windows automatically and the one that I have created with gdisk from the Slackware DVD.
The difference is that I have "MBR: MBR Only" instead of "MBR: protective MBR".

I don't know how it it possible with gdisk to get this result.
Each time I try to create a GPT partition table with gdisk, I got: "MBR: protective MBR".
I think that if I find the way to have "MBR: MBR Only" with gdisk, I will be able to use the Slackware DVD in order to partition my disk first, then I will install Windows on the partition I want without the "Windows cannot be installed on this disk. The Selected Disk is of the GPT Partition Style" message.

Do you know how to do that with gdisk?

Anyway, I don't understand exactly why with GPT, I can have MBR too because it is an other kind of partition table and I have always thought that only one sort of partition table can exist on my disk.
The gdisk utility tells me: "Found valid MBR and GPT. Which do you want to use?".
I guess that the correct answer is GPT because that's what I want.
I have the choice between:
* 1 - MBR
* 2 - GPT
* 3 - Create blank GPT

What do you suggest for this step?

Well, I guess that the correct choice is "1 - MBR".
Because if I select "2 - GPT" or "3 - Create blank GPT", then I print the list of partitions, it is empty.
However, if I select "1 - MBR", then I print the list of partitions, I see the two partitions:
* 350 MB NTFS (I guess it is the UEFI partition)
* 465 GB NTFS (I guess it is the Windows partition)

Can we say that Windows is using GPT whereas I need to choose MBR in order to list my partitions with gdisk?

Definitively, the answer to my last question is: "No".
Indeed, on Windows I do: Run > "diskmgmt.msc" > right click on my disk > Properties > Volumes.
What I see is: "Partition style: Master Boot Record (MBR)".
So, Windows is automatically using a MBR partition table instead of a GPT partition table when I install it on my disk.
That's so strange because I have an UEFI and its "UEFI Only" option is enabled.

How to force Windows to use GPT instead of MBR?

I found a way to do that.
I need to change a motherboard UEFI option.
Before: "Windows 8/10 Features" was set to "Other OS".
Now: "Windows 8/10 Features" is set to "Windows 8/10".

I have also increased the UEFI partition size from 100 MB to 500 MB but I am not sure if it helps to solve my problem.

Anyway, it works fine now: I can install Windows and Slackware together with UEFI/GPT:
* /dev/sda1 500 MB, FAT32, UEFI partition
* /dev/sda2 230 GB, NTFS, Windows partition
* /dev/sda3 230 GB, Ext4, Slackware partition
* /dev/sda4 005 GB, Swap, Swap partition

The only problem is: Where is my UEFI boot menu?
It boots directly to Slackware without prompting.

Last edited by YuGiOhJCJ; 08-10-2016 at 03:25 AM.
 
Old 08-10-2016, 04:03 AM   #8
SlackWar
Member
 
Registered: Jul 2014
Location: Europe
Distribution: Slackware
Posts: 72

Rep: Reputation: Disabled
Just press F11, when that nice screen generated by your mobo's firmware shows up.
 
Old 08-10-2016, 04:41 AM   #9
YuGiOhJCJ
Member
 
Registered: Apr 2015
Posts: 53

Original Poster
Rep: Reputation: Disabled
Pressing F11 is not something I want to do each time I reboot to change from an operating system to an other one.
Moreover, pressing F11 does not work with my GIGABYTE GA-H110M-S2H (rev. 1.0) motherboard.

But pressing F11 (or any other key like "q") during the ELILO loading let me on a prompt:
---
ELILO v3.16 for EFI/x86_64
.

ELILO boot:
---
I don't know what I can type here but if I press the Enter key, it loads the Slackware operating system.

I also found a way to boot on the Windows partition: press ESC (or DEL) to enter Setup > go to the Power Management tab > go to the Boot Override section > select the Windows Boot Manager item.

Anyway, as I said, pressing a key at startup is not what I want.

ELILO does not provide a boot menu?
What about GRUB?

Last edited by YuGiOhJCJ; 08-10-2016 at 04:43 AM.
 
Old 08-10-2016, 04:51 AM   #10
laprjns
Member
 
Registered: Oct 2005
Location: Connecticut USA
Distribution: SalixOS
Posts: 206

Rep: Reputation: 108Reputation: 108
For a boot manager you might want to try rEFInd. It's available via Slackbuild.org

Last edited by laprjns; 08-10-2016 at 04:52 AM.
 
Old 08-10-2016, 05:03 AM   #11
SlackWar
Member
 
Registered: Jul 2014
Location: Europe
Distribution: Slackware
Posts: 72

Rep: Reputation: Disabled
Quote:
Originally Posted by YuGiOhJCJ View Post
Pressing F11 is not something I want to do each time I reboot to change from an operating system to an other one.
Your question was: "Where is my UEFI boot menu?" - so I assure you, there's no other way to enter UEFI boot menu than by pressing F11.
Any other boot menu (if possible at all) no longer is "UEFI boot menu".

Last edited by SlackWar; 08-10-2016 at 05:04 AM.
 
Old 08-10-2016, 05:18 AM   #12
laprjns
Member
 
Registered: Oct 2005
Location: Connecticut USA
Distribution: SalixOS
Posts: 206

Rep: Reputation: 108Reputation: 108
I believe on a Gigabyte motherboard the correct key to get the UEFI Boot Menu is F12, but again if you don't want press any key, then give rEFInd a try.
 
Old 08-10-2016, 05:48 AM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
c
Quote:
Originally Posted by SlackWar View Post
Your question was: "Where is my UEFI boot menu?" - so I assure you, there's no other way to enter UEFI boot menu than by pressing F11.
Any other boot menu (if possible at all) no longer is "UEFI boot menu".
Rubbish. That merely gains access to the vendor provided UI.
The EFI variables are available to Linux - how they are presented to the user is the authors decision; have a look at efibootmgr. Grub can certainly display such as well as others. If one is sufficiently masochistic, you an directly run the EFI shell yourself.
 
Old 08-10-2016, 06:05 AM   #14
SlackWar
Member
 
Registered: Jul 2014
Location: Europe
Distribution: Slackware
Posts: 72

Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Rubbish. That merely gains access to the vendor provided UI.
The EFI variables are available to Linux - how they are presented to the user is the authors decision; have a look at efibootmgr. Grub can certainly display such as well as others. If one is sufficiently masochistic, you an directly run the EFI shell yourself.
I repeat: the original question was about "UEFI boot menu" - not about menu provided by GRUB, neither by any other "3rd party boot manager". It is always recommended to read with comprehension. BTW: efibootmgr, from what I see (not using it by myself) won't provide boot menu ("It is a popular tool for manipulating the EFI settings in order to create and manage boot entries capable of booting Linux (or any other EFI operating system)").
 
Old 08-10-2016, 11:25 AM   #15
jjthomas
Member
 
Registered: Jan 2004
Location: Tacoma, WA
Distribution: Slackware 14
Posts: 265
Blog Entries: 2

Rep: Reputation: 34
To install Windows and Slackware with UEFI I had to create a bootable UEFI USB drive and boot from it. I could not get Windows to create a UEFI installation from the supplied DVD's. Same thing with Slackware. The key point seemed to to be I had to boot from a UEFI enable USB drive. I also noticed I had to run my motherboard setup with the UEFI drive inserted, before my motherboard (Gigabyte) would recognize the drive.

My steps:
Create a UEFI enabled USB drive with Windows.
Boot the drive and let Windows take the whole disk.
Shrink Windows.
Create a UEFI enable USB drive for Slackware.
Boot and install Slackware.

HTH.

-JJ

PS here is my partition layout:
Code:
Device        Size Type
/dev/sda1     300M Windows recovery environment
/dev/sda2     100M EFI System
/dev/sda3     128M Microsoft reserved
/dev/sda4     152G Microsoft basic data
/dev/sda5      50G Linux filesystem  (/)
/dev/sda6      30G Linux filesystem  (/home)

Last edited by jjthomas; 08-10-2016 at 11:29 AM. Reason: Added partition table
 
1 members found this post helpful.
  


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] Can't.dual boot windows 8.1 & arch (uefi gpt) jbpenguin Arch 5 09-25-2014 11:53 AM
UEFI Arch 64 already installed, using GPT and want windows 7 dualboot justacoupleofquestions Linux - Newbie 1 07-28-2014 11:15 AM
Help with Linux (No ms-windows installed) uefi setup ssenuta Linux - Hardware 5 04-29-2012 07:59 AM
Dual boot Gentoo + Windows 7 on a GPT disk Hammett Linux - General 0 01-11-2012 03:03 PM
how can i install slackware on a slave disk with windows already installed on master? mojarron Slackware - Installation 13 03-31-2005 06:40 AM

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

All times are GMT -5. The time now is 12:03 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
Open Source Consulting | Domain Registration