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

 

 

 

Probably GRUB problem with Debian 9.7.0

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
Delta Gamma
Posts: 23
Joined: 2018-12-06 10:13

Probably GRUB problem with Debian 9.7.0

#1 Post by Delta Gamma »

delete
Last edited by Delta Gamma on 2020-02-09 08:04, edited 2 times in total.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Probably GRUB problem with Debian 9.7.0

#2 Post by p.H »

Please install the package boot-info-script and post the report generated by

Code: Select all

bootinfoscript

Delta Gamma
Posts: 23
Joined: 2018-12-06 10:13

Re: Probably GRUB problem with Debian 9.7.0

#3 Post by Delta Gamma »

delete
Last edited by Delta Gamma on 2020-02-09 08:04, edited 2 times in total.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Probably GRUB problem with Debian 9.7.0

#4 Post by Head_on_a_Stick »

Delta Gamma wrote:I haven't answered earlier because I couldn't do what you wrote. I'm to new to Debian to be able to do it.
First enter this command:

Code: Select all

su -
Then enter the root password and run

Code: Select all

apt install boot-info-script
And then pass the command suggested by p.H and paste the output here using code tags.

If you want to use `sudo` then see the Debian wiki page about sudo for instructions.

Note that there is no /boot/grub/menu.list, that is for an old version of GRUB. See the Debian wiki page about GRUB for more information about this.
deadbang

Delta Gamma
Posts: 23
Joined: 2018-12-06 10:13

Re: Probably GRUB problem with Debian 9.7.0

#5 Post by Delta Gamma »

delete
Last edited by Delta Gamma on 2020-02-09 08:04, edited 5 times in total.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Probably GRUB problem with Debian 9.7.0

#6 Post by p.H »

Now you can run

Code: Select all

bootinfoscript
as root and post the generated report.

Delta Gamma
Posts: 23
Joined: 2018-12-06 10:13

Re: Probably GRUB problem with Debian 9.7.0

#7 Post by Delta Gamma »

delete
Last edited by Delta Gamma on 2020-02-09 08:04, edited 2 times in total.

Delta Gamma
Posts: 23
Joined: 2018-12-06 10:13

Re: Probably GRUB problem with Debian 9.7.0

#8 Post by Delta Gamma »

delete
Last edited by Delta Gamma on 2020-02-09 08:05, edited 2 times in total.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Probably GRUB problem with Debian 9.7.0

#9 Post by p.H »

Why did you have to copy the report in small units ? Couldn't you just open it in a GUI text editor and copy it all at once ?

The report tells me that :
- GRUB for BIOS (not EFI) is installed in the MBR of both drives.
- Both drives have DOS partition tables, so any Windows instance has been installed for BIOS mode, not EFI mode.
- sda1 and sda2 contain a Windows boot manager for BIOS (/bootmgr).
- There is no EFI partition so Debian has not been installed (at least not successfully) for EFI mode.
- Paradoxically, grub.cfg contains a menu entry to enter the EFI firmware setup, which can be created only when the system has been booted in EFI mode. This does not make sense.

First check if Debian booted in BIOS/legacy or EFI mode. Several checks are available.
1) At the GRUB menu, press "c" and type the command "set". Check the values of cmdpath and platform. If they contain "EFI" or "efi" this is GRUB for EFI.
2) In a Debian shell, type the following command

Code: Select all

ls /sys/firmware
If the "efi" directory is present, then the system is booted in EFI mode.

Code: Select all

ls /boot/grub
If the x86_64-efi directory is present, GRUB for EFI is installed.
If the i386-pc directory is present, GRUB for BIOS is installed.

If the system is booted in BIOS mode, the command "os-prober" should find Windows.

Delta Gamma
Posts: 23
Joined: 2018-12-06 10:13

Re: Probably GRUB problem with Debian 9.7.0

#10 Post by Delta Gamma »

delete
Last edited by Delta Gamma on 2020-02-09 08:05, edited 2 times in total.

Delta Gamma
Posts: 23
Joined: 2018-12-06 10:13

Re: Probably GRUB problem with Debian 9.7.0

#11 Post by Delta Gamma »

delete
Last edited by Delta Gamma on 2020-02-09 08:05, edited 3 times in total.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Probably GRUB problem with Debian 9.7.0

#12 Post by p.H »

I suspect that you booted the installer in EFI mode and it detected an installed OS (Windows) booting in BIOS mode so it asked whether it should do a BIOS install or an EFI install. When you selected EFI, it failed due to the lack of an EFI partition. When you selected BIOS, grub.cfg was generated from an EFI point of view anyway, so it included the EFI firmware setup and excluded Windows.

Rebuilding grub.cfg with update-grub should add Windows to the boot menu.

Delta Gamma
Posts: 23
Joined: 2018-12-06 10:13

Re: Probably GRUB problem with Debian 9.7.0

#13 Post by Delta Gamma »

delete
Last edited by Delta Gamma on 2020-02-09 08:06, edited 2 times in total.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Probably GRUB problem with Debian 9.7.0

#14 Post by p.H »

What are you talking about ? There is only one update-grub command. You just run it and that's it.

Delta Gamma
Posts: 23
Joined: 2018-12-06 10:13

Re: Probably GRUB problem with Debian 9.7.0

#15 Post by Delta Gamma »

delete
Last edited by Delta Gamma on 2020-02-09 08:07, edited 2 times in total.

Delta Gamma
Posts: 23
Joined: 2018-12-06 10:13

Re: Probably GRUB problem with Debian 9.7.0

#16 Post by Delta Gamma »

delete
Last edited by Delta Gamma on 2020-02-09 08:07, edited 2 times in total.

Delta Gamma
Posts: 23
Joined: 2018-12-06 10:13

Re: Probably GRUB problem with Debian 9.7.0

#17 Post by Delta Gamma »

delete
Last edited by Delta Gamma on 2020-02-09 08:07, edited 3 times in total.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Probably GRUB problem with Debian 9.7.0

#18 Post by p.H »

Delta Gamma wrote:I have downloaded this:
grub2_2.02~beta3-5+deb9u1.debian.tar.xz
Why ? You did not need this. This is a part of the Debian source package. It is useless for you.
The update-grub command was already installed as part of the grub2-common binary package.

Post Reply