LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-09-2020, 08:41 AM   #76
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594

is there a /etc/grub.d/40_custom.save and a /etc/grub.d/40_custom in ubuntu? If so what is the contents of both?
 
1 members found this post helpful.
Old 11-09-2020, 09:11 AM   #77
whois1230
Member
 
Registered: Sep 2018
Posts: 214

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
is there a /etc/grub.d/40_custom.save and a /etc/grub.d/40_custom in ubuntu? If so what is the contents of both?
Code:
user@Lenovo-ideapad-110-17IKB:~$ sudo gedit /etc/grub.d/40_custom.save
Code:
!/bin/sh
exec tail -n +3 $0
# 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.
menuentry 'fedora config file'{
insmod btrfs
configfile (hd0,4)/grub2/grub.cfg
}
Code:
user@Lenovo-ideapad-110-17IKB:~$ sudo gedit /etc/grub.d/40_custom
Code:
#!/bin/sh
exec tail -n +3 $0
# 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.
menuentry 'fedora chainload'{
chainloader (hd0,1)/EFI/fedora/grubx64.efi
}
Ok, it worked, thanks. I have one last question: How can I remove the 2nd Fedora entry in BIOS and Boot, as one of them is obsolete?
 
Old 11-09-2020, 09:22 AM   #78
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
open a terminal post the output of
Code:
efibootmgr
 
1 members found this post helpful.
Old 11-09-2020, 09:24 AM   #79
whois1230
Member
 
Registered: Sep 2018
Posts: 214

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
open a terminal post the output of
Code:
efibootmgr
Code:
user@Lenovo-ideapad-110-17IKB:~$ efibootmgr
BootCurrent: 0006
Timeout: 0 seconds
BootOrder: 0006,0002,0000,0005,2003,2001,2002
Boot0000* Windows Boot Manager
Boot0002* Fedora
Boot0003* EFI Network 0 for IPv4 (54-E1-AD-0B-AF-B6) 
Boot0004* EFI Network 0 for IPv6 (54-E1-AD-0B-AF-B6) 
Boot0005* Fedora
Boot0006* ubuntu
Boot0007* EFI Network 0 for IPv4 (54-E1-AD-0B-AF-B6) 
Boot0008* EFI Network 0 for IPv6 (54-E1-AD-0B-AF-B6) 
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network
user@Lenovo-ideapad-110-17IKB:~$
 
Old 11-09-2020, 11:51 AM   #80
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,392

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
post output of
Code:
efibootmgr -v |grep fedora
Attempting to see which one to delete. Does both of them work when selected in the bios boot menu?
one of them can be deleted with efibootmgr.
look at
Code:
man efibootmgr

Last edited by colorpurple21859; 11-09-2020 at 11:54 AM.
 
1 members found this post helpful.
Old 11-09-2020, 12:14 PM   #81
whois1230
Member
 
Registered: Sep 2018
Posts: 214

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
post output of
Code:
efibootmgr -v |grep fedora
Attempting to see which one to delete. Does both of them work when selected in the bios boot menu?
one of them can be deleted with efibootmgr.
look at
Code:
man efibootmgr
Code:
user@Lenovo-ideapad-110-17IKB:~$ efibootmgr -v |grep fedora
Boot0002* Fedora	HD(1,GPT,bbca276a-71b2-44d4-8063-c1737eb0e017,0x800,0x82000)/File(\EFI\fedora\shimx64.efi)
Boot0005* Fedora	HD(1,GPT,bbca276a-71b2-44d4-8063-c1737eb0e017,0x800,0x82000)/File(\EFI\fedora\shim.efi)RC
Both of them work

Last edited by whois1230; 11-09-2020 at 12:21 PM.
 
Old 11-09-2020, 12:23 PM   #82
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by whois1230 View Post
Code:
user@Lenovo-ideapad-110-17IKB:~$ efibootmgr -v |grep fedora
Boot0002* Fedora	HD(1,GPT,bbca276a-71b2-44d4-8063-c1737eb0e017,0x800,0x82000)/File(\EFI\fedora\shimx64.efi)
Boot0005* Fedora	HD(1,GPT,bbca276a-71b2-44d4-8063-c1737eb0e017,0x800,0x82000)/File(\EFI\fedora\shim.efi)RC
The second is (I think) the rescue kernel that fedora automatically keeps. The first would be the current kernel in fedora.
My fedora install shows similarly.
 
1 members found this post helpful.
  


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
After installing Mint 20 for dual boot, Windows 10 Home won't boot abover Linux - Newbie 8 10-15-2020 06:59 AM
[SOLVED] Dual boot Fedora and Windows 10. After reinstalling Fedora Windows 10 entry is gone from bootloader. bkone Linux - Newbie 4 01-05-2019 12:21 AM
Dual Boot: linux after windows 10. Windows won't boot edhe1 Linux Mint 1 05-08-2018 05:01 PM
fedora won't boot after Windows 8/triple boot Windows 7/8 Fedora 15 - no grub? idilly Linux - Laptop and Netbook 11 10-04-2011 11:38 PM
Windows 7 wont boot up after installing Fedora 15 (Windows 7 already installed)? ranger149 Fedora 6 09-02-2011 09:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:40 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