On 14/06/2021 23.17, 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. It is:
dd if=backup of=/dev/sda bs=446 count=1
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