LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having 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


Reply
  Search this Thread
Old 03-31-2019, 11:41 PM   #1
hottdogg
Member
 
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222

Rep: Reputation: 30
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?


Here's some info that may help:
df
Code:
Filesystem     1K-blocks     Used Available Use% Mounted on
udev             3997728        0   3997728   0% /dev
tmpfs             806164     1428    804736   1% /run
/dev/sda6      162235268  6793272 147131212   5% /
tmpfs            4030816   236236   3794580   6% /dev/shm
tmpfs               5120        4      5116   1% /run/lock
tmpfs            4030816        0   4030816   0% /sys/fs/cgroup
/dev/sda2          98304    31546     66758  33% /boot/efi
/dev/sda7      289235056 87015604 187457468  32% /home
tmpfs             806160       12    806148   1% /run/user/1000

cfdisk
Code:
label: gpt
label-id: FA8C6181-B92E-40D8-BB8A-BF291092AB1A
device: /dev/sda
unit: sectors
first-lba: 34
last-lba: 1953525134

/dev/sda1 : start=        2048, size=     1021952, type=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC, uuid=50A742CF-C364-4A24-89DF-5D296F52A069, name="Basic data partition", attrs="RequiredPartition"
/dev/sda2 : start=     1024000, size=      204800, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=ED01E228-A15C-4F77-9868-41BF583E8777, name="EFI system partition"
/dev/sda3 : start=     1228800, size=       32768, type=E3C9E316-0B5C-4DB8-817D-F92DF00215AE, uuid=0ECD1CC4-70B7-40FC-A447-99C0F79A277A, name="Microsoft reserved partition"
/dev/sda4 : start=     1261568, size=   613140480, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=0F28B3AE-44D3-47B5-A293-26762D70FCDE, name="Basic data partition"
/dev/sda5 : start=   614402048, size=   409600000, type=EBD0A0A2-B9E5-4433-87C0-68B6B72699C7, uuid=1EF69CB2-3396-4740-A7F8-2C903794D3A0, name="Basic data partition"
/dev/sda6 : start=  1024002048, size=   331776000, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=07D5DF67-D65B-42AE-B355-9F11F31EAC38
/dev/sda7 : start=  1355778048, size=   589824000, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4, uuid=D99281CE-17DA-4A7B-B573-321E03D588DF
/dev/sda8 : start=  1945602048, size=     7923087, type=0657FD6D-A4AB-43C4-84E5-0933C84B4F4F, uuid=47C2D113-7B91-4FB0-877C-B55208170ECD

/boot/grub/custom.cfg
Code:
menuentry "Windows 10 (UEFI)" {
 search --set=root --file /EFI/Microsoft/Boot/bootmgfw.efi
 chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}

Thank you very much in advance for any help.
Let me know if more system information is needed to troubleshoot.

Last edited by hottdogg; 04-03-2019 at 03:01 AM. Reason: Lubuntu 18.10 NOT 18.04
 
Old 04-01-2019, 12:37 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Go get bootinfoscript or boot-repair and run the report. Post it here - or a link for boot-repair.
 
Old 04-01-2019, 08:27 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,520

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
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.

https://help.ubuntu.com/community/Boot-Repair
 
Old 04-01-2019, 09:29 AM   #4
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
edit the GRUB_HIDDEN_TIMEOUt lines in /etc/default/grub then run sudo update-grub
https://www.aioboot.com/en/show-grub2-menu/
 
Old 04-03-2019, 03:23 AM   #5
hottdogg
Member
 
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222

Original Poster
Rep: Reputation: 30
@syg00

Here's the result of bootinfoscript (got it from https://github.com/arvidjaar/bootinfoscript)

Code:
                  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.
Code:
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR='Lubuntu 18.10'
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=12b354a0-c8fa-48fd-8894-1a2600d15ccc"
GRUB_CMDLINE_LINUX=""
 
Old 04-03-2019, 05:01 AM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
change it to this
Code:
GRUB_DEFAULT=0
#GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=20
GRUB_DISTRIBUTOR='Lubuntu 18.10'
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=12b354a0-c8fa-48fd-8894-1a2600d15ccc"
GRUB_CMDLINE_LINUX=""
then run
Code:
sudo update-grub
 
1 members found this post helpful.
Old 04-03-2019, 08:36 AM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,520

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
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.

https://forum.antergos.com/topic/903...s-custom-cfg/2
 
Old 04-06-2019, 09:59 AM   #8
hottdogg
Member
 
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by colorpurple21859 View Post
change it to this
Code:
GRUB_DEFAULT=0
#GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=20
GRUB_DISTRIBUTOR='Lubuntu 18.10'
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=12b354a0-c8fa-48fd-8894-1a2600d15ccc"
GRUB_CMDLINE_LINUX=""
then run
Code:
sudo update-grub
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.
 
Old 04-06-2019, 12:21 PM   #9
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
I don't think the /boot/grub/custom.cfg file always works

Add the entry for windows to /etc/grub.d/40_custom then run sudo update-grub

Last edited by colorpurple21859; 04-06-2019 at 03:32 PM.
 
Old 04-06-2019, 01:22 PM   #10
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,520

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
Quote:
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.

https://neosmart.net/wiki/easybcd/uefi/
 
Old 04-12-2019, 03:11 PM   #11
svar
Member
 
Registered: Jul 2003
Posts: 362

Rep: Reputation: 30
does not seem to work for me

(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?
 
Old 04-12-2019, 03:40 PM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,520

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
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.
 
Old 04-12-2019, 10:03 PM   #13
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,352

Rep: Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590Reputation: 1590
On my hp I have to hit the f10 key while in the OS Boot Manager selector to make the the change stick
 
Old 04-13-2019, 07:11 AM   #14
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,520

Rep: Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494Reputation: 2494
Quote:
On my hp I have to hit the f10 key while in the OS Boot Manager selector to make the the change stick
Yes, same on mine which is standard on most/many BIOS setups. Make the change, hit F10 then Enter to save.
 
Old 04-13-2019, 08:27 AM   #15
svar
Member
 
Registered: Jul 2003
Posts: 362

Rep: Reputation: 30
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
Cannot sequentially press Alt key then menu accelerator, must press both concurrently Woodsman Slackware 1 03-21-2013 03:21 PM
How to suppress "press ESC to exit full-screen mode" in Firefox AGer Linux - Software 1 01-19-2010 03:26 PM
Have installed Ubuntu 9.04 and it will not start - need to press [esc] every time south207 Ubuntu 7 09-02-2009 03:45 PM
LXer: http://www.clusterresources.com/pages/press/press-releases.php LXer Syndicated Linux News 0 04-12-2006 07:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 09:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration