LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-05-2016, 03:17 PM   #1
Streblo
LQ Newbie
 
Registered: Nov 2016
Posts: 2

Rep: Reputation: Disabled
Windows 10 Not listed in Grub, can't boot from drive either


A few days ago I installed Linux Mint 18 onto a separate hard drive. I put the boot sector onto the hard drive that I installed Linux to (sdb) , but it seems to have interfered with my windows 10 boot on sda1.

Here is what I have tried:
  • I have tried setting the boot flag to my windows partition in gparted.
  • I have mounted my windows drive and run os-prober and then update-grub, windows still not listed in grub
  • I have run boot-repair
  • I have tried forcing my BIOS to boot from windows drive only, listing it as the only device to boot from. Still boots into Grub, windows not listed. If I set it to boot UEFI only, does not boot anything.

If I look at my windows drive I can see the boot files so I don't think they are missing. However, when I run boot-info the following shows up:

Quote:
No boot loader is installed in the MBR of /dev/sda.
It should say Windows is installed there, correct?

Here is the full boot-info:

http://pastebin.com/JBg7NuBy

If I have to repair the MBR with a Windows disk, how do I go about doing that? Will it overwrite Grub?
 
Old 11-05-2016, 06:23 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
after you installed Linux onto /dev/sdb then grub onto sdb did you have your BIOS set to boot from sdb or sda? are you sure you installed grub to sdb ? I only ask because some installers default to sda and that is it, unless you ensure you tell it before hand. superGrub2 dd to a USB stick and boot that it will get you into Windows or Linux.
 
Old 11-05-2016, 07:03 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 9,431

Rep: Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090
Your output shows the windows drive using GPT which requires EFI. The Drive/Partition info shows sda1 as an EFI partition but there are no windows or Mint EFI files there? If you are using EFI, you should not have any boot code in the MBR. I don't use windows but perhaps the link below explaining dual booting with windows and Ubuntu/Mint UEFI will help.

https://help.ubuntu.com/community/UEFI
 
Old 11-06-2016, 07:00 AM   #4
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
I don't see windows on sda. This disk is gpt labelled with an ESP and a windows recovery partition. There should be another partition with the rest of windows. Did you inadvertently set up a mixed boot environment with windows set up in uefi and linux in mbr boot mode? This is a good way to hose windows.
 
Old 11-07-2016, 08:24 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,235
Blog Entries: 4

Rep: Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263Reputation: 3263
Boot up some kind of [Linux, not Windows ...] "rescue DVD" (or thumb-drive) and take a c-a-r-e-f-u-l look around. Determine what partitions exist, what they are actually called, and what they actually contain.

Then, look at the Grub configuration file to see what it a-c-t-u-a-l-l-y specifies. (For example, did you remember that partitions are numbered from zero?) If "Windows 10" is not on the menu, perhaps it's not in the menu-file at all. Did you make a simple tpyo?)

Finally, make sure that your computer is properly set-up to hand over control of the system to Grub.

Familiarize yourself with the (limited, yet very functional) command-line capabilities of Grub, which are specifically designed for diagnostic purposes. You can interrupt the boot process at the Grub level and use these commands to "see what Grub actually sees," and in some cases to provide a boot-sequence of your own in order to get things running (and to find out what actually works).

Pragmatically speaking, you always need to have a "rescue disk," and to know in advance how to use it.

Last edited by sundialsvcs; 11-07-2016 at 08:26 AM.
 
Old 11-09-2016, 01:38 AM   #6
Streblo
LQ Newbie
 
Registered: Nov 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Is it possible for the Windows EFI and MSR partitions to be located on another drive?

I think what may have happened is that they were on the drive I installed Linux to, which then proceeded to get overwitten.

I have checked my windows drive in diskpart on a windows recovery cd and in a live linux environment, and there is no FAT32 EFI partition or a partition for the MSR. What is weirder, is that there is no free or unallocated space either.

So I guess my question now might be better suited to a windows forum, but it appears I have to recreate the EFI and MSR partition somewhere and then restore the boot files.
 
Old 11-09-2016, 07:24 AM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 9,431

Rep: Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090
I think it might be a good idea to carefully review the link I posted above on installing Ubuntu/windows UEFI. Mint uses the Ubiquity installer, same as Ubuntu so it should all be the same. If windows 10 was pre-installed, it was almost certainly UEFI and you then need to boot Mint and install Mint UEFI. It will put the Mint efi files on the same partition as the windows EFI files in a separate folder and will not overwrite anything windows. It looks like you mixed MBR/EFI which always causes problems. You would need to be pretty knowledgeable about EFI and bootloaders to get that to work. Good luck.
 
Old 11-09-2016, 07:27 AM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
this is exactly why I DO NOT use UEFI I stick to old school MBR keeps that that head ache away from me.
 
Old 11-09-2016, 08:12 AM   #9
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
Quote:
Originally Posted by Streblo View Post
Is it possible for the Windows EFI and MSR partitions to be located on another drive?
Your ESP is on sda. ESPs are fat32 formatted with a type code of 0xEF00 which can be seen from gdisk. (see the attachment for a correctly configured GPT disk). I don't believe the esp is visible under windows explorer. It may be visible under diskpart, but I haven't verified this. You can try mounting it under linux and see if bootmgfw.efi is still there. The esp also contains the BCD store. If this is corrupted, windows will not boot. If all the windows files are missing from the esp, you may have unintentionally reformatted it.

You might have to google how to repair windows from an oem optical disk.
Attached Files
File Type: txt gdisk.txt (1.6 KB, 17 views)
 
  


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
grub/boot problem: the disk drive for /windows/c is not yet ready or is not present bth73 Linux Mint 5 07-05-2012 12:11 PM
[SOLVED] how can I incorporate windows boot loader into grub? Triple boot, single hard drive olkirf Linux - Newbie 8 10-24-2010 08:36 AM
GRUB won't boot into Windows SATA drive garyozzy Fedora 5 12-26-2007 05:51 PM
Grub doesn't boot to Windows when CD-Drive attached specialist01 Linux - Hardware 6 03-05-2005 04:56 AM
grub wont boot windows on second hard drive ryan00davis Linux - General 12 05-19-2004 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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