James Knott composed on 2021-06-14 15:39 (UTC-0400):
Felix Miata wrote:
I have BOOTSECT.BAK in sda1, dated Feb 10. I suspect this may be it.
That's her.
Now to figure out how to put it back. It's been about 25 years since I did anything with boot sectors and that was only in a class room. I suppose dd could be used. The file is 8K.
8k is 16 sectors. What I expected would be only 446 bytes (or less). Were it that, this would fix it: dd if=/boot/BOOTSECT.BAK of=/dev/sda It still might, but there's copious risk. /usr/lib/boot/master-boot-code contains the code required, but it's 512 bytes, with no man or info page to explain how to install it. dd'ing it I expect would destroy the partition table. Better look through official docs to find out how to use it!!! I looked in yast partitioner and recognized nothing related. # apropos mbr Bootloader::MBRTools (3pm) - set of low-level functions for mbr manipulation is as much as I could find quickly about openSUSE tools possibly suited for the purpose. Disk partitioning tools should all be able to write generic code that Windows requires. That includes using Windows to repair boot. You'd follow that with simply moving the boot flag back from sda1 to sda3. OK, in YaST Bootloader there is an option to write generic code to MBR. Check that, and check boot from partition, and check set active flag in partition table for boot partition, then uncheck other boxes there before saving should do it. I used to do this at installation when necessary, until support for Grub 0.97 was dropped. I use DFSee for everything disk/partition related. http://www.dfsee.com/ . -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata