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
-
- Posts: 23
- Joined: 2018-12-06 10:13
Probably GRUB problem with Debian 9.7.0
delete
Last edited by Delta Gamma on 2020-02-09 08:04, edited 2 times in total.
-
- 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
Please install the package boot-info-script and post the report generated by
Code: Select all
bootinfoscript
-
- Posts: 23
- Joined: 2018-12-06 10:13
Re: Probably GRUB problem with Debian 9.7.0
delete
Last edited by Delta Gamma on 2020-02-09 08:04, edited 2 times in total.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Probably GRUB problem with Debian 9.7.0
First enter this command: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.
Code: Select all
su -
Code: Select all
apt install boot-info-script
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
-
- Posts: 23
- Joined: 2018-12-06 10:13
Re: Probably GRUB problem with Debian 9.7.0
delete
Last edited by Delta Gamma on 2020-02-09 08:04, edited 5 times in total.
-
- 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
Now you can run
as root and post the generated report.
Code: Select all
bootinfoscript
-
- Posts: 23
- Joined: 2018-12-06 10:13
Re: Probably GRUB problem with Debian 9.7.0
delete
Last edited by Delta Gamma on 2020-02-09 08:04, edited 2 times in total.
-
- Posts: 23
- Joined: 2018-12-06 10:13
Re: Probably GRUB problem with Debian 9.7.0
delete
Last edited by Delta Gamma on 2020-02-09 08:05, edited 2 times in total.
-
- 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
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
If the "efi" directory is present, then the system is booted in EFI mode.
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.
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
Code: Select all
ls /boot/grub
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.
-
- Posts: 23
- Joined: 2018-12-06 10:13
Re: Probably GRUB problem with Debian 9.7.0
delete
Last edited by Delta Gamma on 2020-02-09 08:05, edited 2 times in total.
-
- Posts: 23
- Joined: 2018-12-06 10:13
Re: Probably GRUB problem with Debian 9.7.0
delete
Last edited by Delta Gamma on 2020-02-09 08:05, edited 3 times in total.
-
- 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
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.
Rebuilding grub.cfg with update-grub should add Windows to the boot menu.
-
- Posts: 23
- Joined: 2018-12-06 10:13
Re: Probably GRUB problem with Debian 9.7.0
delete
Last edited by Delta Gamma on 2020-02-09 08:06, edited 2 times in total.
-
- Posts: 23
- Joined: 2018-12-06 10:13
Re: Probably GRUB problem with Debian 9.7.0
delete
Last edited by Delta Gamma on 2020-02-09 08:07, edited 2 times in total.
-
- Posts: 23
- Joined: 2018-12-06 10:13
Re: Probably GRUB problem with Debian 9.7.0
delete
Last edited by Delta Gamma on 2020-02-09 08:07, edited 2 times in total.
-
- Posts: 23
- Joined: 2018-12-06 10:13
Re: Probably GRUB problem with Debian 9.7.0
delete
Last edited by Delta Gamma on 2020-02-09 08:07, edited 3 times in total.
-
- 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
Why ? You did not need this. This is a part of the Debian source package. It is useless for you.Delta Gamma wrote:I have downloaded this:
grub2_2.02~beta3-5+deb9u1.debian.tar.xz
The update-grub command was already installed as part of the grub2-common binary package.