LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-14-2021, 08:04 AM   #1
luofeiyu
Member
 
Registered: Aug 2015
Posts: 229

Rep: Reputation: Disabled
How can adjust the grub.cfg called when rebooting?


I have installed two debians ,one is in /dev/sda1 ,other is in /dev/sdb1,and there are two grub.cfg in the pc,
one is in /dev/sda1/boot/grub/grub.cfg,other is in /dev/sdb1/boot/grub/grub.cfg.
I find that the pc always call the /dev/sdb1/boot/grub/grub.cfg to use when rebooting,
how can make it call the /dev/sda1/boot/grub/grub.cfg to use when rebooting?
 
Old 07-14-2021, 09:37 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,923

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Run grub-install from that system.
 
Old 07-14-2021, 01:45 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 9,485

Rep: Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111
Quote:
how can make it call the /dev/sda1/boot/grub/grub.cfg to use when rebooting?
If you can boot the Debian install on sda from the sdb drive, installing Grub there should do it. Maybe you just need to set sda to first boot priority in the BIOS firmware. Is this a Legacy or UEFI isntall?
 
Old 07-14-2021, 07:03 PM   #4
luofeiyu
Member
 
Registered: Aug 2015
Posts: 229

Original Poster
Rep: Reputation: Disabled
Maybe it is both legacy and uefi.Here is the setting in my bios.
Attached Thumbnails
Click image for larger version

Name:	target.jpg
Views:	11
Size:	122.3 KB
ID:	36784  
 
Old 07-15-2021, 07:32 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 9,485

Rep: Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111Reputation: 2111
In your other post, you indicated that your grub.cfg file output showed Debian was installed on sda7 and your second Debian was on sdb1. The sda device was GPT/EFI and sdb was Legacy/msdos.

Have you tried the other boot options shown in the bottom of the image you posted?
You have UEFI and Legacy set and generally in that case, UEFI takes priority. You could try disabling Legacy to test as you need the UEFI boot to boot windows EFI and it should also boot Debian in Legacy mode.
 
Old 07-15-2021, 07:08 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 5,660

Rep: Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108Reputation: 1108
as root post the output of
Code:
parted -l
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
GRUB menu not getting updated even after changing /boot/grub/grub.cfg KNSI Linux From Scratch 4 06-20-2018 09:13 PM
Files in /etc/grub.d not included in /boot/grub/grub.cfg. stf92 Slackware 21 05-27-2018 04:38 PM
Can't adjust brightness with function key and can't adjust brightness after suspend. QuarkDev Linux Deepin 2 03-19-2015 10:46 AM
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
[SOLVED] how to the give path of the part.cfg file in %include command in ks.cfg. YOGESHAS87 Linux - Newbie 2 01-11-2011 04:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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