Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-26-2017, 02:00 PM   #1
LQ Newbie
Registered: Sep 2017
Location: São Carlos, Brazil
Distribution: Slackware 14.2, VoidLinux
Posts: 9

Rep: Reputation: Disabled
Slackware 14.2 Dual boot with Windows 8.1 in GPT Partitions by using GRUB 2.0


I want to share with you the way how I resolve an issue of GRUB 2.0, when somebody uses Slackware 14.2 in dual boot with windows in GPT partitons.

I have two SSD in my laptop, the first one with Windows 8.1 (/dev/sda) and the second one with Slackware 14.2.

Grub detects both SDD but it can not add automatically an entry for windows in its configuration files. I tried several ways to do that manually but none of them worked. Even by following the instructions of the slackwiki, it did not work.

So the first step was to know the uuid and hints_string (EFI partition in Windows). I mounted the windows efi partition in /mnt on linux:

grub-probe --target=fs_uuid /mnt/EFI/Microsoft/Boot/bootmgfw.efi 
grub-probe --target=hints_string /mnt/EFI/Microsoft/Boot/bootmgfw.efi
With these informations, edit the file /etc/grub.d/40-custom and add the following lines:

menuentry "Microsoft Windows 8.1" {
	insmod part_gpt
	insmod fat
	insmod search_fs_uuid
	insmod chain
	search --fs-uuid --no-floppy --set=root YOUR_STRINGS  YOUR_UUID
	chainloader /EFI/Microsoft/Boot/bootmgfw.efi
Then run (always as root)

grub-mkconfig -o /boot/grub/grub.cfg
And that's it, it works like a charm.
Old 11-26-2017, 06:55 PM   #2
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
Excellent job! That's exactly how to do it.


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
[SOLVED] Slackware and dual boot with Windows on SSD with GPT partitioning: issue with GRUB scorpion77 Slackware 13 12-16-2015 11:46 AM
Trying to Dual Boot Windows 7 and Fedora 21 - GPT tonytheleg Fedora - Installation 3 07-22-2015 10:35 AM
Dual boot Gentoo + Windows 7 on a GPT disk Hammett Linux - General 0 01-11-2012 03:03 PM
Disk Partitions for dual boot with Windows 7 GPT/EFI motiv8d1 Linux - General 2 01-10-2011 06:22 PM
GRUB Dual boot Slackware 11.0/Windows 98 not working MacUser Linux - Software 10 10-24-2008 05:25 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration