Sorry I can’t give images, every thing was done in tty mode, but here goes.
This is on my legacy HP Compaq CMT7700 desktop.
FIRST OFF I DELETED ALL PARTITIONS ON A GOOD HDD(it had lmde on it) and installed Leap on it. I FORGOT TO DO THE ‘grub2-mkconfig’ routine!
So when booting it got to one of those time limit thing looking for a /dev/disk that no longer existed in grub!
So I think I messed up Grub2.
got to the point nothing would boot, not even Win7.
I put in the install usb & went to the Rescue Menu, and logged in as root.
‘fdisk -l’ showed all my systems, so they are there.
I noticed that the boot flag on the Win7/Leap was on the Win7 partition.
right or wrong, I set it to the ‘system reserve’ partition
I can now boot into Win7 ONLY - YEP that should have been expected!
my windows partition manager shows ALL of the systems, so again they are there!
go back to Leap USB rescue mode and move the boot flag to Leap root partition?
OR do a grub2 REINSTALL from within Windows?
PS> I found some old opensuse articles that have walkthroughs for reinstalling Grub in winXP(still good today?)
I don’t get it. You say you installed Leap on an empty disk and then you say “… nothing would boot, not even Win7.”
That looks logical to me, when there is only Leap, it can not boot into Windows 7 or any other OS.
Sorry to have confused you, AGAIN!!
yes, I installed leap on an empty drive. BUT that drive previously had lmde Linux on it. After deleting the ldme partitions I forgot to run the grub2-mkconfig to clean up grub.
When went to boot after the new install boot process stopped at a place it was look8ng for in grub THAT no longer existed, and threw me into emergency mode.
i assume by not cleaning up grub after NOT doing the grub2-mkconfig, I messed it up and somehow got the HDD that has Leap AND Win7 on it!
All I’m asking is can I ‘REPAIR’ grub2 in Win7 since that is the only OS that boots.
To get it down to nuts and bolts, ALL THREE drives are there. ALL three drives have what they are supposed to have but I can’t access them!! I just need help figuring out how to unscrew my screw up!
You need to clean up both the the EFI boot partition which may have files pointing to non existent partitions. Also the UEFI boot table may require similar care since you need to tell the computer what is new and what is gone. It reall does not anything unless you tell it.
Then the problem also could be the formatting of the drive and and boot method selected on install.
Mostly overview, as you’ve gone through this before:
Boot any linux installation, live or rescue media
Mount and chroot to the newly installed 15.3
Make GRUB_DISTRIBUTOR= in /etc/default/grub something unique, using only alphanumerics; e.g. os153may22 or opensuse153. This is optional on MBR systems, necessary on UEFI systems booting in UEFI mode.
*]Run YaST bootloader, making sure all is as it should be, but ensuring something gets changed, to ensure YaST will write out everything. ±1 second to timeout will do it if you made no other changes.
Did all that, except, I could not run YaST in the Leap rescue system.
I’ve (somehow) managed to get grub menu on boot now, BUT each Leap selection still gets to a point where it is constantly ycling through a line searching for a /dev/disk/(followed by a uuid) that I haven’t written down yet.
The on live Linux live USB is for lmde(Linux mint Debian). Tried that, it is what got the grub menu back.
Alas, none of the Leap installs will boot past that /dev/disk(………) thing.
Thanks for your response.