Probably GRUB problem with Debian 9.7.0

Help with issues regarding installation of Debian

Probably GRUB problem with Debian 9.7.0

Postby Delta Gamma » 2019-02-19 11:03

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

Postby p.H » 2019-02-19 13:00

Please install the package boot-info-script and post the report generated by
Code: Select all
bootinfoscript
p.H
 
Posts: 1329
Joined: 2017-09-17 07:12

Re: Probably GRUB problem with Debian 9.7.0

Postby Delta Gamma » 2019-03-14 16:32

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

Postby Head_on_a_Stick » 2019-03-14 18:51

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.
User avatar
Head_on_a_Stick
 
Posts: 11972
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Probably GRUB problem with Debian 9.7.0

Postby Delta Gamma » 2019-03-14 20:15

delete
Last edited by Delta Gamma on 2020-02-09 08:04, edited 5 times in total.
Delta Gamma
 
Posts: 23
Joined: 2018-12-06 10:13

Re: Probably GRUB problem with Debian 9.7.0

Postby p.H » 2019-03-14 21:54

Now you can run
Code: Select all
bootinfoscript

as root and post the generated report.
p.H
 
Posts: 1329
Joined: 2017-09-17 07:12

Re: Probably GRUB problem with Debian 9.7.0

Postby Delta Gamma » 2019-03-14 22:38

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

Postby Delta Gamma » 2019-03-15 13:14

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

Postby p.H » 2019-03-15 14:09

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.
p.H
 
Posts: 1329
Joined: 2017-09-17 07:12

Re: Probably GRUB problem with Debian 9.7.0

Postby Delta Gamma » 2019-03-15 21:24

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

Postby Delta Gamma » 2019-03-15 21:34

delete
Last edited by Delta Gamma on 2020-02-09 08:05, edited 3 times in total.
Delta Gamma
 
Posts: 23
Joined: 2018-12-06 10:13

Re: Probably GRUB problem with Debian 9.7.0

Postby p.H » 2019-03-15 21:38

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.
p.H
 
Posts: 1329
Joined: 2017-09-17 07:12

Re: Probably GRUB problem with Debian 9.7.0

Postby Delta Gamma » 2019-03-15 23:00

delete
Last edited by Delta Gamma on 2020-02-09 08:06, edited 2 times in total.
Delta Gamma
 
Posts: 23
Joined: 2018-12-06 10:13

Re: Probably GRUB problem with Debian 9.7.0

Postby p.H » 2019-03-15 23:01

What are you talking about ? There is only one update-grub command. You just run it and that's it.
p.H
 
Posts: 1329
Joined: 2017-09-17 07:12

Re: Probably GRUB problem with Debian 9.7.0

Postby Delta Gamma » 2019-03-16 21:07

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

Next

Return to Installation

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable