Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Grub doesn't see Windows

Ask for help with issues regarding the Installations of the Debian O/S.
Message
Author
regees
Posts: 4
Joined: 2019-02-05 21:15

Grub doesn't see Windows

#1 Post by regees »

Hi,
I'm new and recently installed Debian, but encountered a problem with grub. There is no option to select Windows 10
I'm trying some wiki but it doesn't work.
os-prober doesn't show anything

blkid
/dev/nvme0n1p1: LABEL="Odzyskiwanie" UUID="4A8607F58607E075" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="6722fd04-6141-426e-9b75-d9336a911b18"
/dev/nvme0n1p10: UUID="5d1f609d-2f12-4166-9d40-752d2f2084bf" TYPE="ext4" PARTUUID="b62380b6-f0e2-49c2-9ec0-e4dabe640d8a"
/dev/nvme0n1p11: UUID="5b2dca93-2e72-4ec0-abe1-fda300a3a32b" TYPE="ext4" PARTUUID="cff6410e-55bf-4faa-8555-9dad3e13aa43"
/dev/nvme0n1p2: UUID="0608-F0BE" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="2b388f58-afb6-4560-9471-70bc6bdab502"
/dev/nvme0n1p4: UUID="1CF82325F822FD20" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="841c53a9-e754-4978-8aee-10e40d80f768"
/dev/nvme0n1p5: LABEL="DiscD" UUID="C2C4D976C4D96D63" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="487cf06e-38b7-452f-9cb6-387948f9a90b"
/dev/nvme0n1p7: UUID="62aceb96-62d9-455b-8b89-4abbc47dd0f3" TYPE="ext4" PARTUUID="3b1805d4-e7b1-43fe-8a81-46f0982b39ba"
/dev/nvme0n1p8: UUID="095121fc-c3ab-450c-bce7-d1b7004aad4d" TYPE="ext4" PARTUUID="0fe5b4f1-6631-48a6-9626-ec2346e5b5b6"
/dev/nvme0n1p9: UUID="8b104f6c-8ba0-480b-9104-bfc6627e5e78" TYPE="swap" PARTUUID="8b3405b8-0392-4f97-9e6b-2ee488fce255"
/dev/nvme0n1: PTUUID="135444b9-092e-49a1-b0d0-356aea2c6d9d" PTTYPE="gpt"
/dev/nvme0n1p3: PARTLABEL="Microsoft reserved partition" PARTUUID="b2058f4f-5aa2-4225-a9ac-5c0f42a5983d"
/dev/nvme0n1p6: PARTUUID="eca20199-134f-4491-98b4-badd5ade2a07"
/dev/sda1: PARTLABEL="Microsoft reserved partition" PARTUUID="4982d370-aea3-432c-9ba8-38a2d155bfc2"
/dev/sda2: LABEL="DiscE" UUID="C004BCA404BC9F3A" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="dcdc40b5-d665-4d74-bcb8-7084d002ad64"
/dev/sr0: UUID="2017-10-13-21-07-03-00" LABEL="ASRock SupportCD" TYPE="iso9660"

fdisk -l
Urządzenie Początek Koniec Sektory Rozmiar Typ
/dev/nvme0n1p1 2048 1023999 1021952 499M Środowisko odtworzeniowe Windows
/dev/nvme0n1p2 1024000 1226751 202752 99M System EFI
/dev/nvme0n1p3 1226752 1259519 32768 16M Microsoft - zarezerwowana
/dev/nvme0n1p4 1259520 307199999 305940480 145,9G Microsoft - dane podstawowe
/dev/nvme0n1p5 307200000 1580566527 1273366528 607,2G Microsoft - dane podstawowe
/dev/nvme0n1p6 1580566528 1580568575 2048 1M BIOS - rozruchowa
/dev/nvme0n1p7 1580568576 1629396991 48828416 23,3G Linux - system plików
/dev/nvme0n1p8 1629396992 1648928767 19531776 9,3G Linux - system plików
/dev/nvme0n1p9 1648928768 1715793919 66865152 31,9G Linux swap
/dev/nvme0n1p10 1715793920 1719699455 3905536 1,9G Linux - system plików
/dev/nvme0n1p11 1719699456 2000408575 280709120 133,9G Linux - system plików

I've tried adding a custom entry in /etc/grub.d/40_custom with different uuid but it doesn't work either. The entry is visible but when selected is says /bootmgr is missing.
Any help?

Ok I found that when F11 pressed during startup then I can choose Windows Boot Manager and Windows starts. When I point disc nvme then Debian starts. Is there an option to select it via Grub?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Grub doesn't see Windows

#2 Post by Head_on_a_Stick »

Did you boot the installer in UEFI mode?

Is your Debian system installed in UEFI mode?

Check for /sys/firmware/efi, if it doesn't exist then either re-install in UEFI mode or convert the system to UEFI booting.

Debian stretch does not support Secure Boot so make sure that is disabled when installing the system.

Pro-tip: if configuration files don't work then you should post them here, we're not psychic...
deadbang

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Grub doesn't see Windows

#3 Post by p.H »

Please append commands with "LANG=C" to produce output in English.
Head_on_a_Stick wrote:Is your Debian system installed in UEFI mode?
The presence of a BIOS boot partition indicates a BIOS installation, whereas Windows boots in EFI mode.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Grub doesn't see Windows

#4 Post by Head_on_a_Stick »

p.H wrote:Please append commands with "LANG=C" to produce output in English.
I think you mean prepend ;)
p.H wrote: The presence of a BIOS boot partition indicates a BIOS installation, whereas Windows boots in EFI mode.
Yes indeed, almost certainly.
deadbang

Delta Gamma
Posts: 23
Joined: 2018-12-06 10:13

Re: Grub doesn't see Windows

#5 Post by Delta Gamma »

delete
Last edited by Delta Gamma on 2020-02-09 08:09, edited 2 times in total.

_nobody_
Posts: 62
Joined: 2018-04-10 02:07

Re: Grub doesn't see Windows

#6 Post by _nobody_ »

Hello People,

To this extend, I have few advises to give to the public.

Before you all install WIN10 Pro or what ever WIN10 (Ultimate), please, set the BIOS correctly. Please, stop into BIOS (CMOS), and disable CSM (Compatibility Support Mode). Every BIOS these days is UEFI BIOS, especially on 64bit machines, since every 64bit BIOS is UEFI capable automatically.

You need also to set proper GFX mode in BIOS. If you use legacy, you need to set vBIOS mode, if UEFI: GOP mode.

Then you need to place WIN10.iso file on the USB stick. Please, use rufus 3.1 (https://rufus.ie/) for that, with proper UEFI settings:
Partition scheme: GPT
Target system: UEFI
File system: FAT32
Cluster size: 4096

Image

Every Linux distro these days is UEFI capable. Please, do note that. So, after installing WIN10 you can go ahead and install any Linux (if there is a free space on the HDD, or add another HDD), not touching BIOS.
_______

One final advise: if you do NOT need Legacy, do set everything ONLY to use GPT scheme and UEFI mode. Mixes are allowed, but if you do NOT know what are you doing, mixes can be deadly obstacles. :mrgreen:

_nobody_

jibberjabber
Posts: 162
Joined: 2016-01-10 16:58

Re: Grub doesn't see Windows

#7 Post by jibberjabber »

Installation
Help with issues regarding installation of Debian
Seems weird to me, Why do we have so many Windows users here ?
by _nobody_ » 2019-02-07 17:44

Hello People,

To this extend, I have few advises to give to the public.

Before you all install WIN10 Pro or what ever WIN10 (Ultimate), please,
Why on earth would I want to install that mal ware , any way ?
Besides, I thought this forum was about Debian and installing Debian, guess I was wrong :(
https://itvision.altervista.org/why-win ... sucks.html
And this:
https://www.gnu.org/proprietary/malware ... ft.en.html
===========
The irony, and it is so sad:
by regees » 2019-02-05 21:32

Hi,
I'm new and recently installed Debian, but encountered a problem with grub. There is no option to select Windows 10
You have Debian installed, Why ? Why is it the windows users want a Debian toy, and the first, most important thing to them is to be able to select Windows10 , when they boot,....this forum really would be a better place if the Windows users / promoters would stay away.
Instead of worrying so much about keeping your beloved MS products, and going through so much effort to keep using, concentrate on learning how to use the better OS, and use it to it's full potential,
"JUST SAY NO ", to Microsoft and it's malware,...

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Grub doesn't see Windows

#8 Post by bw123 »

jibberjabber wrote: Seems weird to me, Why do we have so many Windows users here ?
...
I think it's because of OEM agreements that preinstall windows so that is often the only experience people have. Because a computer is useless without an operating system, and because equipment mfgrs don't want the hassle of dealing with support, it's easier for them to license a copy of the os from m$ and let customers deal with support that way. So when people complain or need help, the mfgr can say, "Well, that's an os issue, please contact M$ for support." and it saves them money and payroll.

People feel abused by this, because it's obviously an abusive relationship from a user point-of-view. They want to get a divorce, but they can't just leave. They worry about what they will do without the abusive relationship. Will I ever be able to look at photos facebook again if I leave? Will my mother approve of my choice if I get the divorce? Maybe I should play around a little with debian before I decide to leave for good?

And like a scared person that has been abused for years, they really want to have both, the abusive relationship in which they strangely feel "safe" and freedom.
resigned by AI ChatGPT

Delta Gamma
Posts: 23
Joined: 2018-12-06 10:13

Re: Grub doesn't see Windows

#9 Post by Delta Gamma »

delete
Last edited by Delta Gamma on 2020-02-09 08:09, edited 2 times in total.

Delta Gamma
Posts: 23
Joined: 2018-12-06 10:13

Re: Grub doesn't see Windows

#10 Post by Delta Gamma »

delete
Last edited by Delta Gamma on 2020-02-09 08:10, edited 1 time in total.

_nobody_
Posts: 62
Joined: 2018-04-10 02:07

Re: Grub doesn't see Windows

#11 Post by _nobody_ »

jibberjabber wrote:
Installation
Help with issues regarding installation of Debian
Seems weird to me, Why do we have so many Windows users here ?
by _nobody_ » 2019-02-07 17:44

Hello People,

To this extend, I have few advises to give to the public.

Before you all install WIN10 Pro or what ever WIN10 (Ultimate), please,
Why on earth would I want to install that mal ware , any way ?
Besides, I thought this forum was about Debian and installing Debian, guess I was wrong :(
https://itvision.altervista.org/why-win ... sucks.html
And this:
https://www.gnu.org/proprietary/malware ... ft.en.html
===========
The irony, and it is so sad:
by regees » 2019-02-05 21:32

Hi,
I'm new and recently installed Debian, but encountered a problem with grub. There is no option to select Windows 10
You have Debian installed, Why ? Why is it the windows users want a Debian toy, and the first, most important thing to them is to be able to select Windows10 , when they boot,....this forum really would be a better place if the Windows users / promoters would stay away.
Instead of worrying so much about keeping your beloved MS products, and going through so much effort to keep using, concentrate on learning how to use the better OS, and use it to it's full potential,
"JUST SAY NO ", to Microsoft and it's malware,...
Hello Jabber,

Some people (including me) need WIN10 for the administration. I use Microsoft Office for years, and I am lazy to change it. I am even lazy (as being true virtuoso with VMs) to install VBox WIN10 VM with this regard. And to solve this problem, I have WIN10 always as first one OS installed on my SSDs (around 80GB), then the rest goes to Linux (usually Fedora - currently Fedora29). Most of my VBox VMs are on F29, and all of them are Debian based.

I am Linux Systems guy, and I use for the 1000% R&D Fedora29 and all tools there. But the awkward habit remains... Sorry/apologies for that. NOT that I advertise WIN10 (NOT at all), it is just a bad habit which is pure product of my laziness. :roll:

_nobody_

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Grub doesn't see Windows

#12 Post by Head_on_a_Stick »

@_nobody_, please remove that oversized image.

I don't see what your posts have to do with the OP, which clearly states that Windows is already installed.
deadbang

_nobody_
Posts: 62
Joined: 2018-04-10 02:07

Re: Grub doesn't see Windows

#13 Post by _nobody_ »

OK. I see, that I need to give another lecture. This time about the real problem we here (the thread itself) are exploring. :idea:

And, what shoudl be done, should be done!

I have pure UEFI installation, and the lecture will be my real state (as of NOW) of Linux/F29 boot directories, with /boot/efi partition, as product of true UEFI booting.

[1] Where is my grub. cfg located?
root@fedora29-ssd fedora]# pwd
/boot/efi/EFI/fedora
[root@fedora29-ssd fedora]# ls -al
total 6580
drwx------. 4 root root 4096 Feb 5 11:53 .
drwx------. 6 root root 4096 Jul 13 2018 ..
-rwx------. 1 root root 110 Oct 2 20:00 BOOTX64.CSV
drwx------. 2 root root 4096 Oct 4 23:18 fonts
drwx------. 2 root root 4096 Aug 8 2018 fw
-rwx------. 1 root root 65824 Aug 8 2018 fwupia32.efi
-rwx------. 1 root root 77496 Aug 8 2018 fwupx64.efi
-rwx------. 1 root root 8462 Feb 5 11:53 grub.cfg
-rwx------. 1 root root 1024 Jan 15 2018 grubenv
-rwx------. 1 root root 1744712 Oct 4 23:18 grubx64.efi
-rwx------. 1 root root 1159560 Oct 2 20:00 mmx64.efi
-rwx------. 1 root root 1210776 Oct 2 20:00 shim.efi
-rwx------. 1 root root 1210776 Oct 2 20:00 shimx64.efi
-rwx------. 1 root root 1204496 Oct 2 20:00 shimx64-fedora.efi
[root@fedora29-ssd fedora]#
[2] How my grub.cfg looks like?

Code: Select all

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set pager=1

if [ -f ${config_directory}/grubenv ]; then
  load_env -f ${config_directory}/grubenv
elif [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

terminal_output console
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/01_menu_auto_hide ###
if [ "${boot_success}" = "1" -o "${boot_indeterminate}" = "1" ]; then
  set last_boot_ok=1
else
  set last_boot_ok=0
fi

# Reset boot_indeterminate after a successful boot
if [ "${boot_success}" = "1" ] ; then
  set boot_indeterminate=0
# Avoid boot_indeterminate causing the menu to be hidden more then once
elif [ "${boot_indeterminate}" = "1" ]; then
  set boot_indeterminate=2
fi
set boot_success=0
save_env boot_success boot_indeterminate

if [ x$feature_timeout_style = xy ] ; then
  if [ "${menu_show_once}" ]; then
    unset menu_show_once
    save_env menu_show_once
    set timeout_style=menu
    set timeout=60
  elif [ "${menu_auto_hide}" -a "${last_boot_ok}" = "1" ]; then
    set orig_timeout_style=${timeout_style}
    set orig_timeout=${timeout}
    if [ "${fastboot}" = "1" ]; then
      # timeout_style=menu + timeout=0 avoids the countdown code keypress check
      set timeout_style=menu
      set timeout=0
    else
      set timeout_style=hidden
      set timeout=1
    fi
  fi
fi
### END /etc/grub.d/01_menu_auto_hide ###

### BEGIN /etc/grub.d/01_users ###
if [ -f ${prefix}/user.cfg ]; then
  source ${prefix}/user.cfg
  if [ -n "${GRUB2_PASSWORD}" ]; then
    set superusers="root"
    export superusers
    password_pbkdf2 root ${GRUB2_PASSWORD}
  fi
fi
### END /etc/grub.d/01_users ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora (4.20.6-200.fc29.x86_64) 29 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.20.4-200.fc29.x86_64-advanced-2fb90d44-55ec-46f9-96ff-fd05c3b3b240' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  7af7e510-61cf-4907-9115-647accd1ea78
	else
	  search --no-floppy --fs-uuid --set=root 7af7e510-61cf-4907-9115-647accd1ea78
	fi
	linuxefi	/vmlinuz-4.20.6-200.fc29.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet LANG=en_US.UTF-8
	initrdefi /initramfs-4.20.6-200.fc29.x86_64.img
}
menuentry 'Fedora (4.20.5-200.fc29.x86_64) 29 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.20.4-200.fc29.x86_64-advanced-2fb90d44-55ec-46f9-96ff-fd05c3b3b240' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  7af7e510-61cf-4907-9115-647accd1ea78
	else
	  search --no-floppy --fs-uuid --set=root 7af7e510-61cf-4907-9115-647accd1ea78
	fi
	linuxefi	/vmlinuz-4.20.5-200.fc29.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet LANG=en_US.UTF-8
	initrdefi /initramfs-4.20.5-200.fc29.x86_64.img
}
menuentry 'Fedora (4.20.4-200.fc29.x86_64) 29 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.20.4-200.fc29.x86_64-advanced-2fb90d44-55ec-46f9-96ff-fd05c3b3b240' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  7af7e510-61cf-4907-9115-647accd1ea78
	else
	  search --no-floppy --fs-uuid --set=root 7af7e510-61cf-4907-9115-647accd1ea78
	fi
	linux	/vmlinuz-4.20.4-200.fc29.x86_64 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet
	initrd	/initramfs-4.20.4-200.fc29.x86_64.img
}
menuentry 'Fedora (4.9.16) 29 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.9.16-advanced-2fb90d44-55ec-46f9-96ff-fd05c3b3b240' {
	load_video
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  7af7e510-61cf-4907-9115-647accd1ea78
	else
	  search --no-floppy --fs-uuid --set=root 7af7e510-61cf-4907-9115-647accd1ea78
	fi
	linux	/vmlinuz-4.9.16 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet
	initrd	/initramfs-4.9.16.img
}
menuentry 'Fedora (0-rescue-3c8fbce2324b4dd78c361ce8ba65908f) 29 (Workstation Edition)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-3c8fbce2324b4dd78c361ce8ba65908f-advanced-2fb90d44-55ec-46f9-96ff-fd05c3b3b240' {
	load_video
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint-baremetal=ahci0,gpt6  7af7e510-61cf-4907-9115-647accd1ea78
	else
	  search --no-floppy --fs-uuid --set=root 7af7e510-61cf-4907-9115-647accd1ea78
	fi
	linux	/vmlinuz-0-rescue-3c8fbce2324b4dd78c361ce8ba65908f root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quiet
	initrd	/initramfs-0-rescue-3c8fbce2324b4dd78c361ce8ba65908f.img
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-E2B4-D0CB' {
	insmod part_gpt
	insmod fat
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  E2B4-D0CB
	else
	  search --no-floppy --fs-uuid --set=root E2B4-D0CB
	fi
	chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
# Other OS found, undo autohiding of menu unless menu_auto_hide=2
if [ "${orig_timeout_style}" -a "${menu_auto_hide}" != "2" ]; then
  set timeout_style=${orig_timeout_style}
  set timeout=${orig_timeout}
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'System setup' $menuentry_id_option 'uefi-firmware' {
	fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
[root@fedora29-ssd fedora]# 
[3] How my /boot directory looks like?

Code: Select all

[root@fedora29-ssd boot]# pwd
/boot
[root@fedora29-ssd boot]# ls -al
total 335572
dr-xr-xr-x.  8 root root     4096 Feb  5 11:53 .
dr-xr-xr-x. 20 root root     4096 Jan  8 18:50 ..
-rw-r--r--.  1 root root   201324 Jan 23 17:26 config-4.20.4-200.fc29.x86_64
-rw-r--r--.  1 root root   201369 Jan 28 20:50 config-4.20.5-200.fc29.x86_64
-rw-r--r--.  1 root root   201369 Jan 31 17:11 config-4.20.6-200.fc29.x86_64
drwx------.  5 root root     4096 Jan  1  1970 efi
-rw-r--r--.  1 root root   184380 Jul 20  2018 elf-memtest86+-5.01
drwxr-xr-x.  2 root root     4096 Jun 29  2018 extlinux
drwx------.  3 root root     4096 Jan  8 19:04 grub2
-rw-------.  1 root root 73797790 Jan 30 10:22 initramfs-0-rescue-3c8fbce2324b4dd78c361ce8ba65908f.img
-rw-------.  1 root root 24660143 Sep 24  2017 initramfs-4.12.13-300.fc26.x86_64.img.genesis
-rw-------.  1 root root 34257634 Jan 29 20:09 initramfs-4.20.4-200.fc29.x86_64.img
-rw-------.  1 root root 34230186 Feb  3 12:21 initramfs-4.20.5-200.fc29.x86_64.img
-rw-------.  1 root root 34228351 Feb  5 11:53 initramfs-4.20.6-200.fc29.x86_64.img
-rw-------.  1 root root 86984966 Mar 19  2017 initramfs-4.9.16.img
drwxr-xr-x.  3 root root     4096 Jun 29  2018 loader
drwx------.  2 root root    16384 Dec 31  2016 lost+found
-rw-r--r--.  1 root root   182704 Jan 24  2017 memtest
-rw-r--r--.  1 root root   182704 Jul 20  2018 memtest86+-5.01
-rw-------.  1 root root  4111332 Jan 23 17:25 System.map-4.20.4-200.fc29.x86_64
-rw-------.  1 root root  4111389 Jan 28 20:50 System.map-4.20.5-200.fc29.x86_64
-rw-------.  1 root root  4111597 Jan 31 17:11 System.map-4.20.6-200.fc29.x86_64
-rwxr-xr-x.  1 root root  8749256 Jan 30 10:22 vmlinuz-0-rescue-3c8fbce2324b4dd78c361ce8ba65908f
-rwxr-xr-x.  1 root root  8749256 Jan 23 17:26 vmlinuz-4.20.4-200.fc29.x86_64
-rw-r--r--.  1 root root      167 Jan 23 17:22 .vmlinuz-4.20.4-200.fc29.x86_64.hmac
-rwxr-xr-x.  1 root root  8749256 Jan 28 20:50 vmlinuz-4.20.5-200.fc29.x86_64
-rw-r--r--.  1 root root      167 Jan 28 20:46 .vmlinuz-4.20.5-200.fc29.x86_64.hmac
-rwxr-xr-x.  1 root root  8749256 Jan 31 17:12 vmlinuz-4.20.6-200.fc29.x86_64
-rw-r--r--.  1 root root      167 Jan 31 17:07 .vmlinuz-4.20.6-200.fc29.x86_64.hmac
-rwxr-xr-x.  1 root root  6869344 Mar 19  2017 vmlinuz-4.9.16
[root@fedora29-ssd boot]# 
[4] Where are these partitions, /boot and /boot/efi/ on my SSD?
[root@fedora29-ssd boot]# df
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 6074356 0 6074356 0% /dev
tmpfs 6094200 102500 5991700 2% /dev/shm
tmpfs 6094200 1884 6092316 1% /run
tmpfs 6094200 0 6094200 0% /sys/fs/cgroup
/dev/mapper/fedora-root 389907580 330264372 43152596 89% /
tmpfs 6094200 80 6094120 1% /tmp
/dev/sda6 967320 346408 554560 39% /boot
/dev/sda2 1044480 52000 992480 5% /boot/efi

tmpfs 1218840 36 1218804 1% /run/user/1001
[root@fedora29-ssd boot]#
[5] How should I generate new grub.cfg and try to fix the problem with the GRUB2 configuration?
(A) In the directory /boot/efi/EFI/fedora cp grub.cfg to grub.cfg.latest
(B) cd /boot
(C) In /boot, please, execute the following command: grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

Then, please, inspect your new grub.cfg, looking for WIN10 partitions there (they should be inherited from the old grub.cfg).
Hope this helps! :mrgreen:
_nobody_

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Grub doesn't see Windows

#14 Post by Head_on_a_Stick »

_nobody_ wrote:I need to give another lecture
No, please don't.

Is your bipolar disorder on an upswing or something?

Your rambling posts are full of crap and have *nothing* to do with the problem in the first post.

@"Delta Gamma", your posts are equally nonsensical and also un-related to the OP, I would appreciate it if you join @_nobody_ and leave this thread alone. Thanks.
deadbang

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Grub doesn't see Windows

#15 Post by p.H »

Head_on_a_Stick wrote:
p.H wrote:Please append commands with "LANG=C" to produce output in English.
I think you mean prepend
Yes, thanks for correcting.

However, consider I am out of this thread now. It has been ruined and I can't be bothered to read past those OT lengthy posts.
Sorry OP and good luck.

Delta Gamma
Posts: 23
Joined: 2018-12-06 10:13

Re: Grub doesn't see Windows

#16 Post by Delta Gamma »

delete
Last edited by Delta Gamma on 2020-02-09 08:11, edited 2 times in total.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Grub doesn't see Windows

#17 Post by Head_on_a_Stick »

Delta Gamma wrote:I want to stay here, but if you still want me to leave, I will do it.
I just meant this thread, you're welcome on these boards but please don't hijack other people's threads.

Anyway, p.H is right, this thread is pretty much ruined now so whatever.
deadbang

Delta Gamma
Posts: 23
Joined: 2018-12-06 10:13

Re: Grub doesn't see Windows

#18 Post by Delta Gamma »

delete
Last edited by Delta Gamma on 2020-02-09 08:11, edited 2 times in total.

_nobody_
Posts: 62
Joined: 2018-04-10 02:07

Re: Grub doesn't see Windows

#19 Post by _nobody_ »

Head_on_a_Stick wrote:
_nobody_ wrote:I need to give another lecture
No, please don't.

Is your bipolar disorder on an upswing or something?

Your rambling posts are full of crap and have *nothing* to do with the problem in the first post.

Thanks.
Hello Head (?).

Actually, my posts are from the real experience, and no once I saved my PC when it could not boot even to GRUB menu. And not only mine... But many others!

But you gotta to have some minimal knowledge to understand it. And... It has everything to do with OP.

OP can do all first 4 steps to verify what is, and if is as I advertised (these 4 steps assure that Original Poster has correct UEFI grub2 installation).

The 5th is one of the tries (first one) to restore correct grub.cfg .

Ill stress again, Head: you gotta to to have some minimal knowledge to understand it! Not my fault if you do not (and seems/sure that you don't)! :mrgreen:

Thank you,
_nobody_

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Grub doesn't see Windows

#20 Post by Head_on_a_Stick »

OK, what the hell. I'm bored so let's have a pointless argument.
_nobody_ wrote:OP can do all first 4 steps to verify what is, and if is as I advertised (these 4 steps assure that Original Poster has correct UEFI grub2 installation).
What a load of crap. Do you have any experience at all of Debian and how GRUB is configured for this distribution?

Here's a clue for you:

Code: Select all

root@shinken:~ # cat $(which update-grub)
#!/bin/sh
set -e
exec grub-mkconfig -o /boot/grub/grub.cfg "$@"
root@shinken:~ #
Can you spot your mistake yet?

Anyway, the Debian system is already booting so their grub.cfg is fine (apart from the missing Windows entry).

The OP's Debian installation is almost certainly booting in non-UEFI mode (hence the absence of an entry for the UEFI Windows system), a quick check for /sys/firmware/efi will confirm this for sure, as I already stated in my first post in this thread.
_nobody_ wrote:The 5th is one of the tries (first one) to restore correct grub.cfg
:lol:

I'm curious: why change directory to /boot when grub-mkconfig is given a full path for the output? Are you really that stupid?

And there is no "grub2-mkconfig` command in Debian, that's a Fedora thing...

Please **** off back to Fedora and stop spamming these boards with your nonsense.
deadbang

Post Reply