15
9
I'm dual booting Windows 10 (pre-Anniversary Update) and Fedora 24 on a Lenovo IdeaPad N580 (Intel Pentium B960 2.2GHz, 4GB RAM, UEFI with Secure Boot disabled). I originally had just Windows 10 and then installed Fedora 23 alongside it and everything worked fine - it worked as well when I upgraded to Fedora 24. A while back, I decided I wanted to try out Ubuntu, and installed it only overwriting the root, /boot and SWAP partitions and keeping my home partition. Windows 10 can still boot here. Then I decided I didn't like Ubuntu and reinstalled Fedora, with the 24 installer, trying to do exactly what I did with Ubuntu. The interface was a bit different, but I'm sure I did it correctly: after I did all the partition configuring, it gave me a popup saying "We will only touch these partitions," and the partitions it listed were root, /boot and SWAP. Nothing else.
Then, when it finished installing, I rebooted. The only options in the GRUB menu were Fedora and Fedora Recovery - nothing else. No Windows.
I tried installing rEFInd, which has worked for me in the past. But it didn't help, it gave me those same two options.
The Windows partition still exists and I can access it from Fedora - important files such as /bootmgr and /Boot/BCD seem intact. The Windows partition is at /dev/sda5.
As well, in the BIOS settings where Windows Boot Manager used to appear, it doesn't. It just has rEFInd and an entry with the model number of my hard drive - which I'm assuming just brings me to the GRUB menu. (I haven't actually tried bringing it to the top of the list and rebooting though - I'm a bit lazy :P)
Can someone help?
UPDATE: Manoj Sawai identified the issue: by formatting the /boot partition I was getting rid of the Windows EFI files. So I need to reconstruct the files at /boot/efi/EFI/Microsoft
.
I think I've reconstructed the directory /boot/efi/EFI/Microsoft/Boot
, but I need the other files in Microsoft
.
Could someone tell me what files I need there?
2is there a
Microsoft
folder in your/boot/efi/EFI
? There is a chance that you may have formatted/boot
which also removed the windows 10 efi files. – Manoj – 2016-08-09T14:20:34.650@ManojSawai No there isn't. Could that be the problem? (I did format
/boot
) – TheInitializer – 2016-08-09T14:41:49.780/boot/efi/EFI/Microsoft/Boot
contains someefi
( see here : http://imgur.com/a/5ZZnc ) which are required for booting up windows. I will do some more research and let you know if it is possible to get the original contents of/boot
back. – Manoj – 2016-08-09T15:07:26.873@ManojSawai That looks exactly like what I have in my Windows partition/Boot folder! http://storage9.static.itmages.com/i/16/0809/h_1470755614_2146806_f9d292f7e1.png (left is my Windows partition/Boot, right is your screenshot) Do you think I could just copy all those files over?
– TheInitializer – 2016-08-09T15:14:22.097oh, the
bootmgfw.efi
,bootmgr.efi
andmemtest.efi
aren't there... – TheInitializer – 2016-08-09T15:20:56.473THOSE FILES ARE IN
windows partition/Windows/Boot/EFI
!!! – TheInitializer – 2016-08-09T15:24:28.207http://storage9.static.itmages.com/i/16/0809/h_1470756435_2644888_39be6622ea.png – TheInitializer – 2016-08-09T15:27:03.490
Since you didn't do a backup (why?), you should modify your question. "How do I recreate windows UEFI boot files?" – Xalorous – 2016-08-09T15:32:01.383
@TheInitializer - Do you have a windows bootable usb or dvd ? – Manoj – 2016-08-09T15:34:50.207
I made up an EFI folder from files I found on my windows partition, think it'll work? http://storage2.static.itmages.com/i/16/0809/h_1470756878_5524420_291ca42dab.png
– TheInitializer – 2016-08-09T15:44:40.837@Xalorous I did do a backup, but only of my home folder because a full backup was taking too long and too much space – TheInitializer – 2016-08-09T15:45:32.277
@ManojSawai no, I might be able to make one though, but I want to try my homemade folder first :D – TheInitializer – 2016-08-09T15:47:00.683
@ManojSawai are there any other files inside
/boot/efi/EFI/Microsoft
other than theBoot
folder? – TheInitializer – 2016-08-09T15:53:16.010@ManojSawai Before overwriting /boot on any system that you are not wiping, I would advise to back up the whole partition. They're generally tiny, and a backup would take just moments. Best results using an offline method. E.g. boot to a live disk and make a tarfile copy of the /boot partition. You may even be able to recreate the files you need by creating this tarfile from a working computer with the same setup you had, or with the setup you want. – Xalorous – 2016-08-09T15:57:14.327
@Xalorous my backup took about 20 hours to get to about 50%, so... – TheInitializer – 2016-08-09T16:00:23.197
@ManojSawai was suggesting you copy the files from a bootable source. I saw that your backup did not work. The problem is that there's always more than one way to achieve a goal. Your description leads me to believe you're using a backup software which is probably doing a block storage backup. This copies every bit in every used block. /boot has, at most, a few megabytes in it. The simplest way of backing it up is to copy the files and structure to another location. The most practical way of doing it is creating a tarfile in a different location. More than a minute and something is broken. – Xalorous – 2016-08-09T16:09:04.817