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

 

 

 

Error 1962: No operating system found

Ask for help with issues regarding the Installations of the Debian O/S.
Message
Author
Silvergator
Posts: 23
Joined: 2022-11-27 10:00

Re: Error 1962: No operating system found

#21 Post by Silvergator »

These are the screens displayed at boot. Are you asking for the bios from pressing F1 while booting? I could not find any OS options in the bios to choose between MS Windows or other OSs. I'm on my boat today but will post when I'm back to land.

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

Re: Error 1962: No operating system found

#22 Post by p.H »

The boot menu is usually triggered by pressing F8, F9 or F12 but it may be any other key depending on the BIOS/UEFI firmware brand. It lists all the available boot options at run-time (registered EFI boot entries, storage media, network adapters...).

Silvergator
Posts: 23
Joined: 2022-11-27 10:00

Re: Error 1962: No operating system found

#23 Post by Silvergator »

Attached is the screen shown when I press F12 while booting:
Image
This a screen I get when Supergrub2 is booting:
Image

Silvergator
Posts: 23
Joined: 2022-11-27 10:00

Re: Error 1962: No operating system found

#24 Post by Silvergator »

sunrat wrote: 2022-12-08 01:57 "Error 1962: No operating system found" is a BIOS/UEFI message. I recall when I first used my current system ~6 years ago, I had to change a setting in UEFI setup from something like "Windows OS" to "Other OS" before I could get it to work with Linux. I don't remember exactly the setting, but worth a look.
I do not see any options on my bios for other OS. I've set up dozens of computers with Linux but this is a new issue for me. It's probably the 1st time I've encountered a factory installed Windows 7 disk and attempted to install Linux to the entire disk. Usually I buy old computers without HDD and purchase a new drive to install Linux.

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

Re: Error 1962: No operating system found

#25 Post by p.H »

The startup menu does not show "debian" even though an EFI boot entry exists...
What happens if you select SATA 1 at the startup device menu ?

Maybe the UEFI firmware is hardwired to boot Windows boot manager. You can try to fake it:

Code: Select all

mkdir -p /boot/efi/EFI/Microsoft/Boot
cp /boot/efi/EFI/debian/grubx64.efi /boot/efi/EFI/Microsoft/Boot/
cp /boot/efi/EFI/debian/shimx64.efi /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
Last edited by p.H on 2022-12-10 08:35, edited 1 time in total.

Silvergator
Posts: 23
Joined: 2022-11-27 10:00

Re: Error 1962: No operating system found

#26 Post by Silvergator »

p.H wrote: 2022-12-09 23:04 The startup menu does not show "debian" even though an EFI boot entry exists...
What happens if you select SATA 1 at the startup device menu ?

Maybe the UEFI firmware is hardwired to boot Windows boot manager. You can try to fake it:

Code: Select all

mkdir -p /boot/efi/EFI/Microsoft/Boot
cp /boot/efi/EFI/debian/grubx64.efi /boot/efi/EFI/Microsoft/Boot/
cp /boot/efi/EFI/debian/shimx64.efi /boot/efi/EFI/Microsoft/Boot/bootx64.efi
Created the directory and copied the files.

Code: Select all

root@debian:/boot/efi/EFI/Microsoft/Boot# ls -l
total 2596
-rwx------ 1 root root  934240 Dec  9 23:13 bootx64.efi
-rwx------ 1 root root 1717696 Dec  9 23:13 grubx64.efi

Still the same error and no boot.

Silvergator
Posts: 23
Joined: 2022-11-27 10:00

Re: Error 1962: No operating system found

#27 Post by Silvergator »

p.H wrote: 2022-12-09 23:04
What happens if you select SATA 1 at the startup device menu ?
SATA1 takes me to the Supergrub menu if the SD card is present, otherwise it just gives the Error 1962.

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

Re: Error 1962: No operating system found

#28 Post by p.H »

My bad, the correct name is bootmgfw.efi, not bootx64.efi. Previous message corrected.

Silvergator
Posts: 23
Joined: 2022-11-27 10:00

Re: Error 1962: No operating system found

#29 Post by Silvergator »

p.H wrote: 2022-12-10 08:33 My bad, the correct name is bootmgfw.efi, not bootx64.efi. Previous message corrected.
I changed the name of bootx64.efi to bootmgfw.efi in the Microsoft/Boot directory. Still get the same error. I think the Supergrub disk is now dedicated to my PC. Is there anyway to automate the supergrub memu selections? I should check out their website first I suppose.
I do appreciate all the help and if you see anything else I could try, I'm game!

Code: Select all

root@debian:/boot/efi/EFI/Microsoft/Boot# ls -l
total 2596
-rwx------ 1 root root  934240 Dec  9 23:13 bootmgfw.efi
-rwx------ 1 root root 1717696 Dec  9 23:13 grubx64.efi


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

Re: Error 1962: No operating system found

#30 Post by p.H »

I'm starting to think that maybe something's wrong with the disk partition table or layout and the UEFI firmware cannot see the EFI partition at all.
I guess you do not need Supergrubdisk and you could install Debian's GRUB on a USB stick if the UEFI firmware cannot boot from the internal disk.
Or install GRUB for BIOS/legacy boot.

Silvergator
Posts: 23
Joined: 2022-11-27 10:00

Re: Error 1962: No operating system found

#31 Post by Silvergator »

A clue may be that the menu selection that works with the Supergrub sd card is (hd1,gpt2) /boot/grub/grub.cfg. Does this indicate BIOS/legacy boot and is there any way to rout to it on the HDD without using the sd card?

Silvergator
Posts: 23
Joined: 2022-11-27 10:00

Re: Error 1962: No operating system found

#32 Post by Silvergator »

Another clue may be that the computer was working with Windows 7 before I tried installing Debian. After partitioning in Windows (I think) to add Debian to about half of the HDD and doing the installation, it would still boot directly to Windows and gave me no Debian option. Since I didn't need Windows 7, I reinstalled Debian Sid from the installer to use the entire disk. That install is the one on the PC now.

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

Re: Error 1962: No operating system found

#33 Post by p.H »

Silvergator wrote: 2022-12-10 18:36 A clue may be that the menu selection that works with the Supergrub sd card is (hd1,gpt2) /boot/grub/grub.cfg.
A clue for what ?
Silvergator wrote: 2022-12-10 19:00 Does this indicate BIOS/legacy boot
No.
Silvergator wrote: 2022-12-10 18:36 is there any way to rout to it on the HDD without using the sd card?
All attempts to do so have failed so far. This is why I suggested to boot from a dedicated USB drive (if you want to stick to EFI boot) or switch to legacy boot..

Silvergator
Posts: 23
Joined: 2022-11-27 10:00

Re: Error 1962: No operating system found

#34 Post by Silvergator »

In the results from bootinfoscript is:
=> Grub2 (v1.99-2.00) is installed in the MBR of /dev/sda and looks at sector
1708620 of the same hard drive for core.img, but core.img can not be found
at this location.
This raised two questions:
  1. Is the /boot/grub/i386-pc/core.img found on sda1 not the correct img or not in the correct location?

    2. Where can I put core.img so that it's in sector 1708630?

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

Re: Error 1962: No operating system found

#35 Post by p.H »

Silvergator wrote: 2022-12-11 14:08 Is the /boot/grub/i386-pc/core.img found on sda1 not the correct img or not in the correct location?
Neither. The GRUB boot image in the MBR of /dev/sda looks for the core image in sector 1708620 which, according to the partition table, belongs to /dev/sda2, not /dev/sda1. It is probably a remain of a previous installation. /dev/sda2 also contains a /boot/grub/i386-pc/core.img file but it does not seem to start at sector 1708620, so either it is unrelated or it was moved around to another location. Files are not reliable locations for the core image as they may be moved around in different blocks.

Anyway, the missing core image is not the issue, at least not yet. If the BIOS executed the legacy boot code in the MBR, it would at least print "GRUB". Maybe it requires a partition entry in the MBR has the boot/active flag, this is a common bug. You can set this flag either with fdisk (with "-t dos" to force use of the MBR partition table) or parted command "disk_set pmbr_boot on". Note that a UEFI firmware may reject a GPT partition table if this flag is set, this is another common bug (sometimes present in the same BIOS/UEFI implementation).

Silvergator
Posts: 23
Joined: 2022-11-27 10:00

Re: Error 1962: No operating system found

#36 Post by Silvergator »

I tried using fdisk as suggested:
You can set this flag either with fdisk (with "-t dos" to force use of the MBR partition table)

Code: Select all

bill@debian:/usr/local/bin$ sudo fdisk -t dos /dev/sda
I got this message:

Code: Select all

This disk is currently in use - repartitioning is probably a bad idea.
It's recommended to umount all file systems, and swapoff all swap
partitions on this disk.
and decided to try the alternative:
or parted command "disk_set pmbr_boot on".
and could not proceed:

Code: Select all

bill@debian:/usr/local/bin$ sudo parted disk_set pmbr_boot on
Error: Could not stat device disk_set - No such file or directory.
I've also copied a grub image to a sd card and it boots to grub with several choices of systems (Linux, BSD, Windows ...). It says I must first load the kernel but at least I don't get the error message at power on. I didn't take pictures but can if it would be beneficial.

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

Re: Error 1962: No operating system found

#37 Post by p.H »

Silvergator wrote: 2022-12-12 15:47 I got this message:
Ignore it and proceed.
Silvergator wrote: 2022-12-12 15:47 parted disk_set pmbr_boot on
Device specification /dev/sda missing.

Silvergator
Posts: 23
Joined: 2022-11-27 10:00

Re: Error 1962: No operating system found

#38 Post by Silvergator »

I tried

Code: Select all

bill@debian:/usr/local/bin$ sudo parted /dev/sda disk_set pmbr_boot on
and it seemed to succeed but I still get the same error. I'm ready to just use a sd card to boot and would appreciate directions on making a bootable grub card. The one I made gives a boot menu but says to I must load the kernel first when I select Linux. The only problem with the superboot card is that it is slow and requires selection from 3 menus. Otherwise, the OS works after booting and I can remove the superboot card/

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

Re: Error 1962: No operating system found

#39 Post by p.H »

Install grub-pc-bin if not installed.
Create a DOS partition table on the removable media.
Create a partition of at least 34 MB with type "EFI System" (0xEF) and active flag.
Format the partition as FAT32.
Mount it on /mnt.
Run

Code: Select all

grub-install --target=x86_64-efi --no-nvram --force-extra-removable --efi-directory=/mnt
grub-install --target=i386-pc /dev/sdb

Silvergator
Posts: 23
Joined: 2022-11-27 10:00

Re: Error 1962: No operating system found

#40 Post by Silvergator »

This works! I now have a SD card that boots! Previously, I was able to get to a grub command prompt but had to enter:

Code: Select all

set root=(hd1,gpt2)
linux /boot/linuz root=/dev/sda2
initrd /boot/initrd
boot (hd1,gpt2)
Note: When booting from the Grub command prompt, I renamed /boot/vmlinuz-6.0.0-4-amd64 and /boot/initrd.img-6.0.0-4-amd64 to ease typing the commands.

Now everything boot normally as long as my SD card is present.

Thanks!

Post Reply