I lost Windows boot option on installation of Fedora 22

Michael D. Setzer II mikes at kuentos.guam.net
Sat May 30 00:26:01 UTC 2015


On 29 May 2015 at 22:22, Bill Oliver wrote:

Date sent:      	Fri, 29 May 2015 22:22:36 +0000 (UTC)
From:           	Bill Oliver <vendor at billoblog.com>
To:             	"Michael D. Setzer II" <mikes at kuentos.guam.net>
Copies to:      	Community support for Fedora users 
<users at lists.fedoraproject.org>
Subject:        	Re: I lost Windows boot option on installation of Fedora 22

> On Sat, 30 May 2015, Michael D. Setzer II wrote:
> 
> > On 29 May 2015 at 13:54, Bill Oliver wrote:
> >
> > Date sent:      	Fri, 29 May 2015 13:54:14 +0000 (UTC)
> > From:           	Bill Oliver <vendor at billoblog.com>
> > To:             	"Michael D. Setzer II" <mikes at kuentos.guam.net>
> > Copies to:      	Community support for Fedora users
> > <users at lists.fedoraproject.org>
> > Subject:        	Re: I lost Windows boot option on installation of Fedora 22
> >
> >> On Fri, 29 May 2015, Michael D. Setzer II wrote:
> >>
> >>>> [snip]
> >>>
> >>> I was going to recommand the grub2-mkconfig, but you show it isn't finding
> >>> the windows?
> >>>
> >>> With my Fedora 21, I ran it with an strace to see what it was doing to find the
> >>> windows 7 that I have on machine. Seems it is the following.
> >>> /etc/grub.d/30_os-prober
> >>>
> >>> The script seems to use os-prober to find the windows partitions.
> >>> So, see if os-prober reports that it finds any windows partitions.
> >>>
> >>> Not sure is 22 uses the same script, but you might try running it, and see if it
> >>> finds the windows partition.
> >>>
> >>> What does cat /proc/partitions show?
> >>
> >> Here it is:
> >>
> >> % more /proc/partitions
> >> major minor  #blocks  name
> >>
> >>     8        0  488386584 sda
> >>     8        1     665600 sda1
> >>     8        2     266240 sda2
> >>     8        3     131072 sda3
> >>     8        4  135359738 sda4
> >>     8        5   25876480 sda5
> >>     8        6  320636928 sda6
> >>     8        7    5443584 sda7
> >>    11        0    1048575 sr0
> >>
> >
> > What do you get when you run os-prober and /etc/grub.d/30_os-prober??
> > Do you get nothing or an error?
> >
> > What does blkid report.
> >
> >
> 
> 
> [root at localhost oliver]# os-prober
> <a couple seconds wait>
> [root at localhost oliver]#
> 
> 
> 
> [root at localhost oliver]# /etc/grub.d/30_os-prober
> [root at localhost oliver]#
> 
> 
> [root at localhost oliver]# blkid
> /dev/sda1: LABEL="WINRE" UUID="C0125289125283F6" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="5049eae8-8677-437b-b94c-e4b1beef7e11"
> /dev/sda2: SEC_TYPE="msdos" LABEL="efi" UUID="9AC3-5063" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="1c7ee56b-2983-4f32-a96e-7cf9aa3233af"
> /dev/sda4: LABEL="Windows" UUID="9AAEDC99AEDC6EEF" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="89988b85-0f51-4072-b87c-9faf6314be74"
> /dev/sda5: LABEL="RECOVERY" UUID="6CE4E22AE4E1F5EC" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="9a35b4bb-c899-4c66-98ad-56136f037766"
> /dev/sda6: LABEL="root" UUID="9d7d5f49-6803-43e4-9920-130788991f5b" TYPE="ext4" PARTUUID="a104a97d-d5a3-414d-9607-b1189d1fb3f9" 
> /dev/sda7: LABEL="swap" UUID="bb3f6351-ad6b-4c95-8c3a-64270fd01954" TYPE="swap" PARTUUID="ee291490-853d-421a-9b8a-5f99d55c33c2"
> /dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="24552e97-5182-4d3b-8900-065f02062b4c"
> 
> 
> Is it possible that something was inadvertently reformatted, like the efi partition?  If that were the case, am I screwed?

In doing some searching, it appears that os-prober is looking for the bootmgr 
file, and it isn't either finding it, or it is somewhere it isn't looking.

I would at each of the partition and see if any have the bootmgr program on 
them. Wondering if it is on the efi labeled partition only?

My windows 7 machines originally had two partitions, and bootmgr was on 
both, so I modified the process to filter out the recover partition on as to not 
show up on the grub list. There was also one site that talked about files being 
hidden, and os-prober couldn't then see them??

Also, might want to run strace os-prober and see if it is checking the 
partitions. 

Had a server 2008 machine some time ago, and it had a separate partition 
with bootmgr on it, and nothing on the actual c partition. 

Haven't worked with an efi setup, so it might be the bootmgr has a different 
name, perhaps copying it to bootmgr.

Probable going to be something simple once it is figured out. 


> 
> 
> billo


+----------------------------------------------------------+
  Michael D. Setzer II -  Computer Science Instructor      
  Guam Community College  Computer Center                  
  mailto:mikes at kuentos.guam.net                            
  mailto:msetzerii at gmail.com
  http://www.guam.net/home/mikes
  Guam - Where America's Day Begins                        
  G4L Disk Imaging Project maintainer 
  http://sourceforge.net/projects/g4l/
+----------------------------------------------------------+

http://setiathome.berkeley.edu (Original)
Number of Seti Units Returned:  19,471
Processing time:  32 years, 290 days, 12 hours, 58 minutes
(Total Hours: 287,489)

BOINC at HOME CREDITS
ROSETTA     30045362.233356   |   SETI        53285538.483324
ABC         16613838.513356   |   EINSTEIN    62286185.838700



More information about the users mailing list