[Solved] Toshiba laptop booted to grub prompt

This is just to report an "issue" I solved today when installing Debian Buster on a friend's laptop that previously had Ubuntu, but no Windows. I'm not particularly fond of dealing with, or writing about, broken grub issues but I hope it may be of interest to someone with a similar grub problem.
The installation went fine but when I rebooted, in spite of keeping my fingers crossed, I was greeted with:
I haven't looked at this grub prompt thing for a very long time but I was lucky to find what I was looking in a post here so I continued:
but this resulted, not very promisingly, in:
So I pressed some random key and the screen was momentarily plunged into darkness. The alloc magic seemed to be irrelevant since up came a BIOS Boot Manager screen with:
Whereupon I was able to select & boot Debian. I didn't know what the old ubuntu entry was doing there, but little did I know that it was causing the problem. I used a Grub Rescue disk called "RESCATUX" but after it reported that Grub had been fixed, back came the same grub prompt. Then it occurred to me to get rid of the ubuntu entry and after
where both entries were shown I removed ubuntu with
And Buster now boots OK from the usual grub menu. Job done.
The installation went fine but when I rebooted, in spite of keeping my fingers crossed, I was greeted with:
- Code: Select all
GNU GRUB version 2.02~bet2-38ubuntu3.22
Minimal BASH-like line editing is supported. For the first word, TAB lists possible command command completions. Anywhere else TAB lists possible device or file completions.

I haven't looked at this grub prompt thing for a very long time but I was lucky to find what I was looking in a post here so I continued:
- Code: Select all
grub> initrd (hd0,01)/boot/initrd
but this resulted, not very promisingly, in:
- Code: Select all
alloc magic is broken at 0x72433460: 0
Aborted. press any key to escape.
So I pressed some random key and the screen was momentarily plunged into darkness. The alloc magic seemed to be irrelevant since up came a BIOS Boot Manager screen with:
Boot Options Menu
ubuntu (TOSHIBA MQQ1abf050)
debian (TOSHIBA MQQ1abf050)
Boot From EFI File
↑ and↓ to change option, ENTER to select an option.
press F10 to BIOS Setup Options, ESC to exit.
Whereupon I was able to select & boot Debian. I didn't know what the old ubuntu entry was doing there, but little did I know that it was causing the problem. I used a Grub Rescue disk called "RESCATUX" but after it reported that Grub had been fixed, back came the same grub prompt. Then it occurred to me to get rid of the ubuntu entry and after
- Code: Select all
# cd /boot/efi/EFI
where both entries were shown I removed ubuntu with
- Code: Select all
# rm -rf ubuntu
And Buster now boots OK from the usual grub menu. Job done.