Carlos E. R. composed on 2021-06-15 09:12 (UTC+0200):
Felix Miata wrote:
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
Warning! That may overwrite the partition table.
That's the reason for "Were it that".
It is:
dd if=backup of=/dev/sda bs=446 count=1
Limiting to bs=446 is what I forgot about. :p
There is a trick for an MBR to be used with Windows. From my archive:
https://nwrickert2.wordpress.com/2015/06/15/generic-boot-code/
Seek this post in the mail list archive:
Date: Thu, 21 Apr 2016 08:42:55 -0500 From: Neil Rickert <nrickert@ameritech.net> Reply-To: OS-en <opensuse@opensuse.org> To: opensuse@opensuse.org Subject: Re: [opensuse] A small nuisance I'm seeing with double boot of Windows 10 and openSUSE 13.1. Message-ID: <5718D8DF.1050702@ameritech.net>
This method works perfectly.
As I always have generic MBR code anyway, I just move the flag where Windows needs it when it absolutely must have it, then move it back afterwards. I don't boot Windows anywhere near once a month. Usually it's just to catch up on a zillion updates when I have nothing better to do. -- 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