View previous topic :: View next topic |
Author |
Message |
quetsch n00b
Joined: 09 Oct 2017 Posts: 12
|
Posted: Mon Oct 09, 2017 8:56 am Post subject: [SOLVED] Installing Win10 on Gentoo system that uses refind |
|
|
Hi,
I have a Lenovo T460p here that runs gentoo and ubuntu in uefi mode using refind boot manager. Everything is working fine but now i need to install win10. I split up 150GB from the gentoo home partition for the win10 installation and I have a bootable win10 installation dvd that shows up as refind boot entry. The problem is, when I boot from the dvd, the first screen I get is similar to this one, saying
"the boot configuration data is missing or contains errors"
"File: EFI\Microsoft\Boot\BCD"
"Error Code: 0x000014c"
Here is the /etc/fstab
Code: |
<fs> <mountpoint> <type> <opts> <dump/pass>
/dev/sda1 /boot/efi vfat defaults 0 1
/dev/sda3 / ext4 noatime 0 1
/dev/sda2 none swap sw 0 0
|
and fdisk -l output
Code: |
Disk /dev/sda: 477 GiB, 512110190592 bytes, 1000215216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: ****************************************
Device Start End Sectors Size Type
/dev/sda1 2048 2099199 2097152 1G EFI System
/dev/sda2 2099200 19507199 17408000 8.3G Linux filesystem
/dev/sda3 19507200 490444799 470937600 224.6G Linux filesystem
/dev/sda4 804405248 1000214527 195809280 93.4G Linux filesystem
|
Does anybody has experience with a similar setup? Any ideas how I can get this to work or why win10 dvd is giving me this error? What I want to avoid, is erase everything and start with a win10 installation and then refind, and then restore gentoo etc.
Last edited by quetsch on Thu Oct 12, 2017 4:13 pm; edited 1 time in total |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3666
|
Posted: Mon Oct 09, 2017 9:34 am Post subject: |
|
|
Sounds like it wants you to repair old Microsoft stuff in your /boot/EFI/ directory.
Before doing a complete new Windows 10 installation such Microsoft stuff can be deleted.
And, try to get the Fall Creators Update. It should already be available.
Last edited by charles17 on Mon Oct 09, 2017 9:36 am; edited 1 time in total |
|
Back to top |
|
|
saboya Guru
Joined: 28 Nov 2006 Posts: 552 Location: Brazil
|
Posted: Mon Oct 09, 2017 9:36 am Post subject: |
|
|
I had a better experience installing Windows10 first, letting it create a EFI partition and then later using that as my EFI. Windows can be very finnicky about this stuff. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3666
|
Posted: Mon Oct 09, 2017 9:39 am Post subject: |
|
|
saboya wrote: | ... Windows10 first, letting it create a EFI partition and then later using that as my EFI. ... |
Installation order is unimportant. Windows 10 would not do any harm to an existing ESP. |
|
Back to top |
|
|
quetsch n00b
Joined: 09 Oct 2017 Posts: 12
|
Posted: Mon Oct 09, 2017 11:35 am Post subject: |
|
|
Thanks for your replies.
charles17 wrote: | Sounds like it wants you to repair old Microsoft stuff in your /boot/EFI/ directory.
Before doing a complete new Windows 10 installation such Microsoft stuff can be deleted.
And, try to get the Fall Creators Update. It should already be available. |
There is no old Microsoft stuff as there has never been a windows installation on this computer.
saboya wrote: | I had a better experience installing Windows10 first, letting it create a EFI partition and then later using that as my EFI. Windows can be very finnicky about this stuff.
|
As I wrote, I already have a nice running gentoo system. Erasing it and install win10 first would be the mean of last resort. I know in general it is advised to install a windows os first.
Any other ideas / tips? |
|
Back to top |
|
|
saboya Guru
Joined: 28 Nov 2006 Posts: 552 Location: Brazil
|
Posted: Mon Oct 09, 2017 11:44 am Post subject: |
|
|
quetsch wrote: | Thanks for your replies.
...
As I wrote, I already have a nice running gentoo system. Erasing it and install win10 first would be the mean of last resort. I know in general it is advised to install a windows os first.
Any other ideas / tips? |
Actually you just need to let Windows do its thing with the EFI partition, and then put rEFInd on top of it. No need to get rid of your Gentoo partition. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3666
|
Posted: Mon Oct 09, 2017 11:45 am Post subject: |
|
|
quetsch wrote: | Any other ideas / tips? |
Can you reproduce the error message using the same win10 installation medium on another computer?
Or create and use a USB stick as installation medium? |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3666
|
Posted: Mon Oct 09, 2017 11:55 am Post subject: |
|
|
saboya wrote: | ... and then put rEFInd on top of it... |
Saying »on top« is confusing. It may stay there as it is.
/boot/EFI/: | /boot
├── EFI
│ ├── Gentoo
│ │ └── bzImage-4.9.49-gentoo-r1.efi
│ ├── Microsoft
│ │ ├── Boot
│ │ └── Recovery
│ ├── refind
│ │ ├── icons
│ │ ├── keys
│ │ ├── refind.conf
│ │ └── refind_x64.efi
└── refind_linux.conf
|
|
|
Back to top |
|
|
saboya Guru
Joined: 28 Nov 2006 Posts: 552 Location: Brazil
|
Posted: Mon Oct 09, 2017 12:11 pm Post subject: |
|
|
charles17 wrote: | saboya wrote: | ... and then put rEFInd on top of it... |
Saying »on top« is confusing. It may stay there as it is.
/boot/EFI/: | /boot
├── EFI
│ ├── Gentoo
│ │ └── bzImage-4.9.49-gentoo-r1.efi
│ ├── Microsoft
│ │ ├── Boot
│ │ └── Recovery
│ ├── refind
│ │ ├── icons
│ │ ├── keys
│ │ ├── refind.conf
│ │ └── refind_x64.efi
└── refind_linux.conf
|
|
...I meant it in a metaphorical sense, not specific to the implementation. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3666
|
Posted: Mon Oct 09, 2017 12:14 pm Post subject: |
|
|
saboya wrote: | ...I meant it in a metaphorical sense, not specific to the implementation. |
Sorry for being pedantic, Just trying to make it as clear as possible, to avoid misreading, ... |
|
Back to top |
|
|
quetsch n00b
Joined: 09 Oct 2017 Posts: 12
|
Posted: Mon Oct 09, 2017 3:29 pm Post subject: |
|
|
charles17 wrote: | quetsch wrote: | Any other ideas / tips? |
Can you reproduce the error message using the same win10 installation medium on another computer?
Or create and use a USB stick as installation medium? |
I just used the same win10 installation dvd with the same external dvd drive on a sony vaio ultrabook with win7 on it, and the win10 installation process starts without a problem. So I guess the installation medium is fine. It must really have something to do with the boot configuration.
saboya wrote: | Actually you just need to let Windows do its thing with the EFI partition, and then put rEFInd on top of it. No need to get rid of your Gentoo partition. |
Could you elaborate on this? What exactly should I do to achieve this based on my configuration? Uninstall rEFInd? Wipe the ESP? And how does that solve the problem that the installation process on the dvd doesn't start? I mean I would Windows let do its thing with the EFI partition if it started, then install it to the free 150GB and then set it up for using it with rEFInd. But the installation process does not start. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3666
|
Posted: Mon Oct 09, 2017 4:08 pm Post subject: |
|
|
quetsch wrote: | I just used the same win10 installation dvd with the same external dvd drive on a sony vaio ultrabook with win7 on it, and the win10 installation process starts without a problem. So I guess the installation medium is fine. It must really have something to do with the boot configuration. |
No idea, but
- Are you going through the computer's UEFI boot menu for booting the installation DVD?
- Sucureboot on or off?
- Is there a legacy boot mode on that computer? Is it enabled / disabled?
- Would you mind showing your ESP's content?
|
|
Back to top |
|
|
quetsch n00b
Joined: 09 Oct 2017 Posts: 12
|
Posted: Mon Oct 09, 2017 6:06 pm Post subject: |
|
|
charles17 wrote: | quetsch wrote: | I just used the same win10 installation dvd with the same external dvd drive on a sony vaio ultrabook with win7 on it, and the win10 installation process starts without a problem. So I guess the installation medium is fine. It must really have something to do with the boot configuration. |
No idea, but
- Are you going through the computer's UEFI boot menu for booting the installation DVD?
|
It makes no difference. Whether I use the UEFI boot menu or the menu entry at the rEFInd screen, the result is the error code described above.
Quote: | Sucureboot on or off? |
Secureboot is off.
Quote: | Is there a legacy boot mode on that computer? Is it enabled / disabled? |
Legacy mode is there but disabled, corresponding boot menu entry is set to "UEFI only" with CSM also disabled.
Quote: | Would you mind showing your ESP's content? |
Code: | /boot/
├── efi
│ └── EFI
│ ├── gentoo
│ │ ├── config-4.9.6-gentoo-r1
│ │ ├── refind_linux.conf
│ │ ├── System.map-4.9.6-gentoo-r1
│ │ └── vmlinuz-4.9.6-gentoo-r1.efi
│ ├── refind
│ │ ├── drivers_x64
│ │ ├── icons
│ │ ├── icons-backup
│ │ ├── keys
│ │ ├── refind.conf
│ │ ├── refind.conf-sample
│ │ └── refind_x64.efi
│ ├── tools
│ └── ubuntu
│ ├── fw
│ ├── fwupx64.efi
│ ├── mmx64.efi
│ └── shimx64.efi
└── refind_linux.conf
|
|
|
Back to top |
|
|
quetsch n00b
Joined: 09 Oct 2017 Posts: 12
|
Posted: Mon Oct 09, 2017 6:10 pm Post subject: |
|
|
quetsch wrote: | charles17 wrote: | quetsch wrote: | I just used the same win10 installation dvd with the same external dvd drive on a sony vaio ultrabook with win7 on it, and the win10 installation process starts without a problem. So I guess the installation medium is fine. It must really have something to do with the boot configuration. |
No idea, but
- Are you going through the computer's UEFI boot menu for booting the installation DVD?
|
It makes no difference. Whether I use the UEFI boot menu or the menu entry at the rEFInd screen, the result is the error code described above.
Quote: | Sucureboot on or off? |
Secureboot is off.
Quote: | Is there a legacy boot mode on that computer? Is it enabled / disabled? |
Legacy mode is there but disabled, corresponding boot menu entry is set to "UEFI only" with CSM also disabled.
Quote: | Would you mind showing your ESP's content? |
Code: | /boot/
├── efi
│ └── EFI
│ ├── gentoo
│ │ ├── config-4.9.6-gentoo-r1
│ │ ├── refind_linux.conf
│ │ ├── System.map-4.9.6-gentoo-r1
│ │ └── vmlinuz-4.9.6-gentoo-r1.efi
│ ├── refind
│ │ ├── drivers_x64
│ │ ├── icons
│ │ ├── icons-backup
│ │ ├── keys
│ │ ├── refind.conf
│ │ ├── refind.conf-sample
│ │ └── refind_x64.efi
│ ├── tools
│ └── ubuntu
│ ├── fw
│ ├── fwupx64.efi
│ ├── mmx64.efi
│ └── shimx64.efi
└── refind_linux.conf
|
|
Now that I see my own post... is it possible that windows is getting confused by the "efi/EFI/" path? Windows directory paths are case insensitive right? |
|
Back to top |
|
|
Helena Veteran
Joined: 02 Apr 2003 Posts: 1114 Location: Den Dolder, The Netherlands
|
Posted: Mon Oct 09, 2017 6:32 pm Post subject: |
|
|
charles17 wrote: | Sounds like it wants you to repair old Microsoft stuff in your /boot/EFI/ directory.
Before doing a complete new Windows 10 installation such Microsoft stuff can be deleted.
And, try to get the Fall Creators Update. It should already be available. |
Quote: | Microsoft is now done with feature development on the next major version of Windows 10. Dubbed the "Fall Creators Update," this update is expected to launch on October 17, 2017 , and will focus on a whole bunch of new improvements for Windows 10 users. |
|
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3666
|
Posted: Mon Oct 09, 2017 6:33 pm Post subject: |
|
|
quetsch wrote: | ... is it possible that windows is getting confused by the "efi/EFI/" path? |
Windows doesn't even see /mnt/efi/ as that only exists in your /etc/fstab. I don't believe this is causing your problem. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3666
|
Posted: Mon Oct 09, 2017 6:46 pm Post subject: |
|
|
Helena wrote: | Quote: | Microsoft is now done with feature development on the next major version of Windows 10. Dubbed the "Fall Creators Update," this update is expected to launch on October 17, 2017 , and will focus on a whole bunch of new improvements for Windows 10 users. |
|
Sorry, I've got confused with RTM 16299.15 ESDs. |
|
Back to top |
|
|
Helena Veteran
Joined: 02 Apr 2003 Posts: 1114 Location: Den Dolder, The Netherlands
|
Posted: Mon Oct 09, 2017 7:13 pm Post subject: |
|
|
|
|
Back to top |
|
|
quetsch n00b
Joined: 09 Oct 2017 Posts: 12
|
Posted: Mon Oct 09, 2017 10:09 pm Post subject: |
|
|
charles17 wrote: | quetsch wrote: | ... is it possible that windows is getting confused by the "efi/EFI/" path? |
Windows doesn't even see /mnt/efi/ as that only exists in your /etc/fstab. I don't believe this is causing your problem. |
you mean /boot/efi/, but yes you're right. I was too euphoric about having found a solution. So where to go from here? Any hints about special BIOS settings? |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3666
|
Posted: Tue Oct 10, 2017 5:56 am Post subject: |
|
|
quetsch wrote: | you mean /boot/efi/, |
Yes, sorry for confusion.
Regarding that certain error message, it does not tell it is about your hard disk, right?
If it were about your DVD's ESP ... (I know it's just a silly idea) have you tried with a USB stick as installation medium? |
|
Back to top |
|
|
mir3x Guru
Joined: 02 Jun 2012 Posts: 455
|
Posted: Tue Oct 10, 2017 6:06 pm Post subject: |
|
|
I think either:
- your dvd is broken
- or booting is somewhat broken -> press f8 or any other shortcut to get to boot menu -> and try DVD UEFi or just DVD (withotu UEFI) _________________ Sent from Windows |
|
Back to top |
|
|
quetsch n00b
Joined: 09 Oct 2017 Posts: 12
|
Posted: Wed Oct 11, 2017 10:19 pm Post subject: |
|
|
charles17 wrote: | quetsch wrote: | you mean /boot/efi/, |
Yes, sorry for confusion.
Regarding that certain error message, it does not tell it is about your hard disk, right?
If it were about your DVD's ESP ... (I know it's just a silly idea) have you tried with a USB stick as installation medium? |
Thanks for the suggestion. It does not solve the problem, but it gives some new insights. I created a properly formatted, bootable USB Stick with the win10 iso on it. When I boot directly from it (with the usb stick before refind in the boot order) it gives me the same error message as described above, only in a terminal style black and white screen. But with the usb stick plugged in, the rEFInd boot manager comes up with two new options:
1. booting bootmgr.efi on the usb stick. This entry is shown with the win10 logo. On the usb stick the file is located in the root directory. Booting it results in an error message from rEFInd saying "unsupported while loading bootmgr.efi"
2. booting the entry "Fallback boot loader" from the usb stick. This results in the mentioned error message regarding file EFI\Microsoft\Boot\BCD. I think the file that is loaded when choosing this entry is /efi/boot/bootx64.efi.
Next thing I'm going to try is use another .iso file.
Any other ideas where to go from here? |
|
Back to top |
|
|
mir3x Guru
Joined: 02 Jun 2012 Posts: 455
|
Posted: Wed Oct 11, 2017 11:17 pm Post subject: |
|
|
quetsch wrote: |
Any other ideas where to go from here? |
Just enable legacy and uefi mode and boot it in legacy mode ... _________________ Sent from Windows |
|
Back to top |
|
|
quetsch n00b
Joined: 09 Oct 2017 Posts: 12
|
Posted: Thu Oct 12, 2017 4:10 pm Post subject: |
|
|
Ok, obviously the .iso file I used first was damaged. I downloaded it again, created a bootable stick and the whole win10 installation process went smooth. Thanks to charles17 for pointing me in the right direction. |
|
Back to top |
|
|
|