[SOLVED] Dual boot windows 10 ,lubuntu 18.04 working but a hassle ( need to press Esc to go to GRUB)
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Dual boot windows 10 ,lubuntu 18.04 working but a hassle ( need to press Esc to go to GRUB)
Hello guys,
It's been a while I didn't tinkering with dual boot. Windows 7 and opensuse just work for all these years with BIOS/MBR configuration.
With new laptop,UEFI GPT thing, windows 10 ,I have to deal with dual boot issue again.
And because I use laptop, I decide to post in this section. Hope I'm not wrong.
Quick background:
I use Lenovo Thinkpad E480 (bought empty OS), installed win 10 first and then installed Lubuntu 18.10. Got 'problem' which was boot straight to Lubuntu. Googled here and there.
Disabled secure boot in BIOS.
Now, I am able to dual boot by press Esc while boot to show Grub and added some windows config in Grub( Grub windows config provided below).
The issues that I have are more likely hassle and a suboptimal system: 1. Have to keep press Esc to go to GRUB. If not, system will directly go to lubuntu. How to show Grub without have to press anything?
Having to press Esc whenever I want to boot win 10 is just getting old.
2.In my win 10, inside shell command window running as Admin.
If I want to run bcdedit, I get error:
The boot configuration data store could not be found. The requested system device cannot be found
This should not happening right?
The systems I have with EFI Grub for windows all have a 'set root' line which points to the partition in Grub terminology or by UUID (shown below) which doesn't exist in your entry.
Quote:
set root='hd0,gpt1'
search --no-floppy --fs-uuid --set=root 00AB-33E7
Do you have a boot option key from the BIOS after using the Esc key? The entry you posted points to the correct windows boot file but doesn't tell which partition it is on so are you booting from and EFI files for windows or is it actually Grub?
The link below is to boot repair and using the 2nd option (ppa) is best as it is kept more current. Just run it with the Create BootInfo Script option without making any changes and post the link here.
Boot Info Script 0.77 [10 June 2018]
============================= Boot Info Summary: ===============================
=> No boot loader is installed in the MBR of /dev/sda.
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda2: __________________________________________________________________________
File system: vfat
Boot sector type: Windows 8/2012: FAT32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/Boot/bootx64.efi /efi/Boot/fbx64.efi
/efi/Boot/mmx64.efi /efi/ubuntu/grubx64.efi
/efi/ubuntu/mmx64.efi /efi/ubuntu/shimx64.efi
/efi/Microsoft/Boot/bootmgfw.efi
/efi/Microsoft/Boot/bootmgr.efi
/efi/Microsoft/Boot/memtest.efi
sda3: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
sda4: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /Windows/System32/winload.exe
sda5: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows 8/2012: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda6: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 18.10
Boot files: /boot/grub/grub.cfg /boot/grub/custom.cfg /etc/fstab
sda7: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sda8: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Disk /dev/sda: 931,5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 1 1,953,525,167 1,953,525,167 ee GPT
GUID Partition Table detected.
Partition Attrs Start Sector End Sector # of Sectors System
/dev/sda1 R 2,048 1,023,999 1,021,952 Windows Recovery Environment (Windows)
/dev/sda2 1,024,000 1,228,799 204,800 Data partition (Windows/Linux)
/dev/sda3 1,228,800 1,261,567 32,768 Microsoft Reserved Partition (Windows)
/dev/sda4 1,261,568 614,402,047 613,140,480 Data partition (Windows/Linux)
/dev/sda5 614,402,048 1,024,002,047 409,600,000 Data partition (Windows/Linux)
/dev/sda6 1,024,002,048 1,355,778,047 331,776,000 Data partition (Linux)
/dev/sda7 1,355,778,048 1,945,602,047 589,824,000 Data partition (Linux)
/dev/sda8 1,945,602,048 1,953,525,134 7,923,087 Swap partition (Linux)
Attributes: R=Required, N=No Block IO, B=Legacy BIOS Bootable, +=More bits set
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 9C4016904016716E ntfs Recovery
/dev/sda2 4E18-6429 vfat
/dev/sda3
/dev/sda4 5AD4E343D4E31FCD ntfs
/dev/sda5 2C8E4C7E8E4C4316 ntfs WINDATA
/dev/sda6 5e120623-031b-411b-9f3f-3a95bdefcd4b ext4
/dev/sda7 a7c86da2-3158-49b0-8a7c-e874f900cca7 ext4
/dev/sda8 12b354a0-c8fa-48fd-8894-1a2600d15ccc swap
========================= "ls -l /dev/disk/by-id" output: ======================
total 0
lrwxrwxrwx 1 root root 9 Apr 3 14:46 ata-WDC_WD10SPZX-08Z10_WD-WX81E87CSNLC -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 3 14:46 ata-WDC_WD10SPZX-08Z10_WD-WX81E87CSNLC-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 3 14:46 ata-WDC_WD10SPZX-08Z10_WD-WX81E87CSNLC-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 3 14:46 ata-WDC_WD10SPZX-08Z10_WD-WX81E87CSNLC-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Apr 3 14:46 ata-WDC_WD10SPZX-08Z10_WD-WX81E87CSNLC-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Apr 3 14:46 ata-WDC_WD10SPZX-08Z10_WD-WX81E87CSNLC-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Apr 3 14:46 ata-WDC_WD10SPZX-08Z10_WD-WX81E87CSNLC-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Apr 3 14:46 ata-WDC_WD10SPZX-08Z10_WD-WX81E87CSNLC-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Apr 3 14:46 ata-WDC_WD10SPZX-08Z10_WD-WX81E87CSNLC-part8 -> ../../sda8
lrwxrwxrwx 1 root root 9 Apr 3 14:46 wwn-0x50014ee608199a05 -> ../../sda
lrwxrwxrwx 1 root root 10 Apr 3 14:46 wwn-0x50014ee608199a05-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Apr 3 14:46 wwn-0x50014ee608199a05-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Apr 3 14:46 wwn-0x50014ee608199a05-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Apr 3 14:46 wwn-0x50014ee608199a05-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Apr 3 14:46 wwn-0x50014ee608199a05-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Apr 3 14:46 wwn-0x50014ee608199a05-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Apr 3 14:46 wwn-0x50014ee608199a05-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Apr 3 14:46 wwn-0x50014ee608199a05-part8 -> ../../sda8
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/sda2 /boot/efi vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sda6 / ext4 (rw,relatime)
/dev/sda7 /home ext4 (rw,relatime)
=========================== sda6/boot/grub/grub.cfg: ===========================
--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${initrdfail}" = 2 ]; then
set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
set next_entry="${prev_entry}"
set prev_entry=
save_env prev_entry
if [ "${next_entry}" ]; then
set initrdfail=2
fi
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
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 initrdfail {
if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
if [ -z "${initrdfail}" ]; then
set initrdfail=1
if [ -n "${boot_once}" ]; then
set prev_entry="${default}"
save_env prev_entry
fi
fi
save_env initrdfail
fi; fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
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 5e120623-031b-411b-9f3f-3a95bdefcd4b
else
search --no-floppy --fs-uuid --set=root 5e120623-031b-411b-9f3f-3a95bdefcd4b
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=0
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 0 ; then
set timeout=0
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=1
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Lubuntu 18.10 GNU/Linux' --class lubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-5e120623-031b-411b-9f3f-3a95bdefcd4b' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
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 5e120623-031b-411b-9f3f-3a95bdefcd4b
else
search --no-floppy --fs-uuid --set=root 5e120623-031b-411b-9f3f-3a95bdefcd4b
fi
linux /boot/vmlinuz-4.18.0-17-generic root=UUID=5e120623-031b-411b-9f3f-3a95bdefcd4b ro quiet splash resume=UUID=12b354a0-c8fa-48fd-8894-1a2600d15ccc $vt_handoff
initrd /boot/initrd.img-4.18.0-17-generic
}
submenu 'Advanced options for Lubuntu 18.10 GNU/Linux' $menuentry_id_option 'gnulinux-advanced-5e120623-031b-411b-9f3f-3a95bdefcd4b' {
menuentry 'Lubuntu 18.10 GNU/Linux, with Linux 4.18.0-17-generic' --class lubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.18.0-17-generic-advanced-5e120623-031b-411b-9f3f-3a95bdefcd4b' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
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 5e120623-031b-411b-9f3f-3a95bdefcd4b
else
search --no-floppy --fs-uuid --set=root 5e120623-031b-411b-9f3f-3a95bdefcd4b
fi
echo 'Loading Linux 4.18.0-17-generic ...'
linux /boot/vmlinuz-4.18.0-17-generic root=UUID=5e120623-031b-411b-9f3f-3a95bdefcd4b ro quiet splash resume=UUID=12b354a0-c8fa-48fd-8894-1a2600d15ccc $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.18.0-17-generic
}
menuentry 'Lubuntu 18.10 GNU/Linux, with Linux 4.18.0-17-generic (recovery mode)' --class lubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.18.0-17-generic-recovery-5e120623-031b-411b-9f3f-3a95bdefcd4b' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
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 5e120623-031b-411b-9f3f-3a95bdefcd4b
else
search --no-floppy --fs-uuid --set=root 5e120623-031b-411b-9f3f-3a95bdefcd4b
fi
echo 'Loading Linux 4.18.0-17-generic ...'
linux /boot/vmlinuz-4.18.0-17-generic root=UUID=5e120623-031b-411b-9f3f-3a95bdefcd4b ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.18.0-17-generic
}
menuentry 'Lubuntu 18.10 GNU/Linux, with Linux 4.18.0-16-generic' --class lubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.18.0-16-generic-advanced-5e120623-031b-411b-9f3f-3a95bdefcd4b' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
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 5e120623-031b-411b-9f3f-3a95bdefcd4b
else
search --no-floppy --fs-uuid --set=root 5e120623-031b-411b-9f3f-3a95bdefcd4b
fi
echo 'Loading Linux 4.18.0-16-generic ...'
linux /boot/vmlinuz-4.18.0-16-generic root=UUID=5e120623-031b-411b-9f3f-3a95bdefcd4b ro quiet splash resume=UUID=12b354a0-c8fa-48fd-8894-1a2600d15ccc $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.18.0-16-generic
}
menuentry 'Lubuntu 18.10 GNU/Linux, with Linux 4.18.0-16-generic (recovery mode)' --class lubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.18.0-16-generic-recovery-5e120623-031b-411b-9f3f-3a95bdefcd4b' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
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 5e120623-031b-411b-9f3f-3a95bdefcd4b
else
search --no-floppy --fs-uuid --set=root 5e120623-031b-411b-9f3f-3a95bdefcd4b
fi
echo 'Loading Linux 4.18.0-16-generic ...'
linux /boot/vmlinuz-4.18.0-16-generic root=UUID=5e120623-031b-411b-9f3f-3a95bdefcd4b ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.18.0-16-generic
}
menuentry 'Lubuntu 18.10 GNU/Linux, with Linux 4.18.0-15-generic' --class lubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.18.0-15-generic-advanced-5e120623-031b-411b-9f3f-3a95bdefcd4b' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
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 5e120623-031b-411b-9f3f-3a95bdefcd4b
else
search --no-floppy --fs-uuid --set=root 5e120623-031b-411b-9f3f-3a95bdefcd4b
fi
echo 'Loading Linux 4.18.0-15-generic ...'
linux /boot/vmlinuz-4.18.0-15-generic root=UUID=5e120623-031b-411b-9f3f-3a95bdefcd4b ro quiet splash resume=UUID=12b354a0-c8fa-48fd-8894-1a2600d15ccc $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.18.0-15-generic
}
menuentry 'Lubuntu 18.10 GNU/Linux, with Linux 4.18.0-15-generic (recovery mode)' --class lubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.18.0-15-generic-recovery-5e120623-031b-411b-9f3f-3a95bdefcd4b' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
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 5e120623-031b-411b-9f3f-3a95bdefcd4b
else
search --no-floppy --fs-uuid --set=root 5e120623-031b-411b-9f3f-3a95bdefcd4b
fi
echo 'Loading Linux 4.18.0-15-generic ...'
linux /boot/vmlinuz-4.18.0-15-generic root=UUID=5e120623-031b-411b-9f3f-3a95bdefcd4b ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.18.0-15-generic
}
}
### 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_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### 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 ###
--------------------------------------------------------------------------------
========================== sda6/boot/grub/custom.cfg: ==========================
--------------------------------------------------------------------------------
menuentry "Windows 10 (UEFI)" {
search --set=root --file /EFI/Microsoft/Boot/bootmgfw.efi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
--------------------------------------------------------------------------------
=============================== sda6/etc/fstab: ================================
--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=4E18-6429 /boot/efi vfat defaults 0 2
UUID=5e120623-031b-411b-9f3f-3a95bdefcd4b / ext4 defaults 0 1
UUID=a7c86da2-3158-49b0-8a7c-e874f900cca7 /home ext4 defaults 0 2
UUID=12b354a0-c8fa-48fd-8894-1a2600d15ccc swap swap defaults 0 2
--------------------------------------------------------------------------------
=================== sda6: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
584.413711548 = 627.509444608 boot/grub/grub.cfg 2
569.493312836 = 611.488788480 boot/vmlinuz-4.18.0-15-generic 1
569.938625336 = 611.966939136 boot/vmlinuz-4.18.0-16-generic 1
490.985500336 = 527.191666688 boot/vmlinuz-4.18.0-17-generic 1
490.985500336 = 527.191666688 vmlinuz 1
569.938625336 = 611.966939136 vmlinuz.old 1
569.784675598 = 611.801636864 boot/initrd.img-4.18.0-15-generic 2
570.718273163 = 612.804079616 boot/initrd.img-4.18.0-16-generic 1
491.211910248 = 527.434772480 boot/initrd.img-4.18.0-17-generic 3
491.211910248 = 527.434772480 initrd.img 3
570.718273163 = 612.804079616 initrd.img.old 1
@yancek
Sorry I don't understand your questions.
In my system after presing ESc several times when booting, it will go to GRUB. To go to BIOS menu I have to user another key. IIRC F1 or F5, I forgot.
Yes,there's no setting UUID in my custom.cfg, does it matter? because I'm already able to boot and login to windows.
@colorpurple21859
I don't even have that option (commented or set) in /etc/default/grub.
Here's mine, I remove commented variable for brevity.
It's somewhat surprising that Grub on Lubuntu did not detect your windows UEFI install and add it to the grub.cfg menu. According to the link below, the custom.cfg entries should show after the grub.cfg entries, not sure why it doesn't. If the change suggested above do not work, you might take a look at the link below. If you scroll down the page a bit, you will see a sample entry for booting windows 10. Try adding that to your custom.cfg file as it has several lines in the entry yours does not show.
wow..this actually works to resolve my first issue. Thanks a lot colorpurple21859. But I still have the 2nd issue, with the windows 10 command. I know this is Linux forum, but I just don't believe the solutions for windows 10 that spread in internet. They have the potential to break grub/linux bootloader. Anyway, I'll mark this thread resolved. Thank you guys.
But I still have the 2nd issue, with the windows 10 command.
What issue would that be? Are you trying to create an entry for Lubuntu in windows BCD? I don't think that is possible. See the link below at the neosmart site, the paragraph beginning with "What this means". Did some online research on this and didn't find anything to contradict it. Good luck.
(I should add that I could initially boot nothing but windows, as HP suggested F2 and there was no hint whatsoever that one needs to hit escape to mess with bios and the boot order)
Tried the solution with the commenting out the hidden part, no luck(on an HP laptop). So:
If I do nothing, windows boots
I I do Escape and then F9 to go to boot manager, I get a list as follows:
Boot Option Menu
OS Boot Manager
ubuntu
Slack
Boot from EFI File
up and down arrow sto change option, ENTER to select an option
Press F10 to BIOS Setup Options, ESC to exit
If I choose 'OS Boot Manager', Windows boots.
If I choose ubuntu, I get a grub menu.
If I chose slack, elilo is invoked to boot slack.
If I choose 'Boot from EFI file', I again get menus and can boot linux
So the point is getting 'OS Boot Manager' which is Windows to the bottom of the choices, so presumably the default grub is invoked(i.e. change positions of 'ubuntu' and 'OS Boot Manager'
Any ideas?
On the HP notebook I use, hitting Esc then F10 takes me to the BIOS with a System Configuration tab, Boot Options. Arrow down to OS Boot Manager and make sure this entry is at the top in Boot Options. With OS Boot Manager highlighted press Enter and you should see entries for windows, Slack and Ubuntu. Use arrow key to highlight the entry you want and then the F5/F6 keys to move order, F6 moves up, F5 down. You need to do this in the BIOS as doing it in the Boot Options (with F9) is a one time only selection.
That still doesn't do it. In BIOS->System Coniguration->Boot Option
OS Boot Manager is highligted, but enter does nothing, nor do left and right arrows.
F5/F6 move them up or down, but no way to get to the F9 menu.
BTW I have both Secure Boot and Legacy SUpport disabled. Do I need to enable Legacy Support? The way this is written is about supporting oldr windows
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.