The Grub2 files on a single drive Lenovo dual boot laptop have been erased, along with everything else in the Ext4 partition, when the user resized the Ext4 partition to make more space for Windows 10 Pro 64-bit ver 1709. /boot/grub/grub.cfg
/etc/grub.d/
and /etc/default/grub
are all gone along with everything else in the ext4 filesystem.
So the system doesn’t boot and I need to get Windows booting again as a priority; once Windows boots, reinstalling Linux is easy.
DISKPART shows the disk as neither Dyn nor GPT; no asterisk for either.
There are three NTFS partitions on the machine's drive, plus a vacant Ext4 partition in a position relocated from its original place. I want to get Windows booting again as a priority; the user can wait for Linux, although I certainly am not averse to the recovery tools of Debian derived distros.
Can't boot from a LiveUSB with grub-recovery; when I do, I get a Windows boot manager error message. Without the LiveUSB, I get a Grub error prompt.
Looked for the original Windows 10 recovery USB, found it was physically destroyed (two moves = one fire, as they say).
Created a Recovery USB from another Windows 10 (ver 1803) machine and ran bootrec.exe /fixmbr
Enter responded with "The operation completed successfully". Closed the command window, powered down, unplugged the USB and powered up; failed to boot with "BOOTMGR is missing."
Bootrec.exe /rebuildbcd
tells me 0 drives repaired and rebooting failed to boot with "BOOTMGR is missing."
Bootrec.exe /fixboot
tells me "Access is denied."
Since, as previously stated, there are no FAT32 partitions, and since M$ states a FAT32 partition is required for GPT: "The device must contain a system partition. On GPT drives, this is known as the EFI System Partition, or the ESP. This partition is usually stored on the primary hard drive. The device boots to this partition. The minimum size of this partition is 100 MB, and must be formatted using the FAT32 file format" I suspect the partitioning is all-MBR.
However, since Lenovo has its own partition GUIDs, should I look at that as well?
DISKPART shows
list disk
Disk ### Status Size Free Dyn Gpt
-------- ------ ----- ---- --- ----
Disk 0 Online 298GB 0B
list part
Partition ### Type Size Offset
----------- ------ ------ ------
Partition 1 Primary 100MB 1024KB
Partition 2 Primary 279GB 101MB
Partition 4 Primary 17GB 279GB
Partition 3 Recovry 953MB 297GB
How may I resolve this?
grub
orubuntu
?