Hi. I need to reconfigure GRUB to include an operating system.
The situation is as follows: I installed Windows on a primary partition, then created new partitions for Debian. The GRUB configured at the end of the Debian install worked fine. I then installed Android on a new partition and a GRUB config was created, wiping the previous one, but only presenting W10 and Android. From a live session I reconfigured GRUB to recover access to Debian, but Android is not present.
Is there a way I can use the contents of menu.lst from the Android boot to edit the GRUB as configured from the live session, in order to have all three systems present on startup?
MTIA
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
Re-configure Grub manually to add OS
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Re-configure Grub manually to add OS
You can add a menuentry via /etc/grub.d/40_custom, use `update-grub` to change the configuration after editing the file.
deadbang
-
- Posts: 4
- Joined: 2018-03-28 16:45
Re: Re-configure Grub manually to add OS
Thanks for the quick response. Will do as you suggest.Head_on_a_Stick wrote:You can add a menuentry via /etc/grub.d/40_custom, use `update-grub` to change the configuration after editing the file.
Re: Re-configure Grub manually to add OS
a perfect use case for rescatux.
after rescuing your debian's grub, issuefrom your debian install.
assuming os-prober is installed, that should fix things without needing a custom grub entry.
after rescuing your debian's grub, issue
Code: Select all
update-grub
assuming os-prober is installed, that should fix things without needing a custom grub entry.
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: Re-configure Grub manually to add OS
Or you can add a menuentry in /boot/grub/custom.cfg which is included at runtime, not requiring to run update-grub after each modification.Head_on_a_Stick wrote:You can add a menuentry via /etc/grub.d/40_custom, use `update-grub` to change the configuration after editing the file.
Note that you may have to adjust the menu entry from GRUB 1 syntax (menu.lst) to GRUB 2 syntax (grub.cfg).
Re: Re-configure Grub manually to add OS
oh yes, i noticed that but then forgot to comment on it.p.H wrote:Note that you may have to adjust the menu entry from GRUB 1 syntax (menu.lst) to GRUB 2 syntax (grub.cfg).