So I have GRUB2 (v2.02 beta 3.6ubuntu3.9)working on a dual boot (each os has own hdd) Win10/Ubuntu 16.04 UEFI PC. A Macrium Reflect ("MR") backup image is created of all Win10 C:\ partitions (3; 221GB GPT, 99MB FAT32, 451 Unallocated).
Upon restoration of C drive (disk3) image GRUB2 menu disappears. Because it is a NVMe (e.g., instead of GRUB2 on sda1 it is on nvmeOn1p1) posted solutions will not work. Likewise, a "bare metal" restoration of N:\ drive (disk0;ssd) that has home and root partitions (SWAP on hdd) for Linux will not bring GRUB2 back.
A re-installation of Linux is required to get GRUB2 back. This happens with Reflect, Acronis, and Lazesoft imaging software. Tried backing up via EasyUEFI but this failed as well. Is there a better way to get GRUB2 back after an image restore?
Clarification:
I backup all partitions on a ssd via imaging software -- e.g., Macrium Reflect. When I need to restore an OS I boot from a WinPE usb or USBLinux and install an image from an image (MR) file in order to restore the drive to a previous condition.
Since I installed Ubuntu 16.04 I began dual booting. Despite reinstalling images for BOTH OS images (Win10 on NVMe C:\ (disk3) and Ubuntu on N:\ (disk0) GRUB2 cannot be restored. GRUB2 (and Linux) is installed on disk0 (MBR) but, my understanding, is that part of GRUB2 is also on disk3's EFI System Partition.
So either GRUB2 is hidden somewhere such that the imaging software can't copy it or it needs something like command "grub-update" to reactivate it, idk. The only way I can get the original GRUB2 is to reinstall Linux from a live Linux usb onto disk0 ssd. This is the problem -- GRUB2 disappears whenever I have to restore a backup os image. I'd like to either capture GRUB2 in the disk image (and be able to reinstall it via image) or find another way to backup GRUB2 so I don't have to reinstall Linux every time I have to restore a backup image of Win10 or Linux.
Apologies for the lengthy post. I had hoped to describe the problem in three short paragraphs but hopefully the above Clarification provides the details Android Dev requested.
Thanks!
System Info:
**Secure Boot & Fast Boot: Disabled**
Summary
Operating Systems:
Windows 10 Pro 64-bit/Ubuntu 16.04 64-bit
CPU
Intel Core i7 4790 @ 3.60GHz 38 °C
Haswell 22nm Technology
RAM
16.0GB Dual-Channel DDR3 @ 780MHz (9-9-9-24)
Motherboard
ASUSTeK COMPUTER INC. Z97-A (SOCKET 1150) 28 °C
Graphics
ASUS VE278 (1920x1080@59Hz)
Dell E193FP (1280x1024@60Hz)
2048MB ATI AMD Radeon HD 7800 Series (Sapphire/PCPartner) 43 °C
Storage
119GB Samsung SSD 840 PRO Series (SSD) 29 °C
1863GB Seagate ST32000641AS (SATA) 36 °C
3726GB TOSHIBA HDWQ140 (SATA) 34 °C
232GB Samsung SSD 960 EVO 250GB (Unknown)
3GB Samsung SSD 840 PRO Series (SSD) 29 °C
Hi, oldfred, your assistance is GREATLY appreciated. Here is the result of efibootmgr:
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0002,0001,003B,003E,0044,0045,0046
Boot0000* ubuntu HD(1,GPT,2087d7-5dc8-4038-a9c1-90939c232,0xe1800,0x31800)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0001* Windows Boot Manager HD(1,GPT,287d7-5dc8-4038-a9c1-9d969c232,0xe1800,0x31800)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...d................
Boot0002* Windows Boot Manager HD(1,GPT,20887dc7-5dc8-4038-a9c1-9d09639c2322,0xe1800,0x31800)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...d................
Boot003B* UEFI: (NTFS) Lexar USB Flash Drive PciRoot(0x0)/Pci(0x14,0x0)/USB(21,0)/HD(1,MBR,0x104,0x800,0x3b9e800)..BO
Boot003E* Windows Boot Manager PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/NVMe(0x1,00-25-38-57-71-B0-F8-84)/HD(1,GPT,20887dc7-5dc8-4038-a9c1-9d09639c2322,0xe1800,0x31800)..BO
Boot0044* Windows Boot Manager PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/NVMe(0x1,00-25-38-57-71-B0-F8-84)/HD(1,GPT,2087c7-5dc8-4038-a9c1-90969c2322,0xe1800,0x31800)..BO
Boot0045* ubuntu PciRoot(0x0)/Pci(0x1,0x1)/Pci(0x0,0x0)/NVMe(0x1,00-25-38-57-71-B0-F8-84)/HD(1,GPT,20887dc7-5dc8-4038-a9c1-9d0939c232,0xe1800,0x31800)..BO
Boot0046* ubuntu HD(1,GPT,2087dc7-5dc8-4038-a9c1-9d06392322,0xe1800,0x31800)/File(\EFI\UBUNTU\GRUBX64.EFI)..BO
and from blkid:
device fs_type label mount point UUID
-------------------------------------------------------------------------------
/dev/nvme0n1
(in use)
/dev/nvme0n1p1
vfat /boot/efi 2A4B-F383
/dev/nvme0n1p2
ntfs 960NVMe (not mounted) EE60D3E6040F31
/dev/sda1 ext4 (not mounted) 08bd78-3292-473f-a132-8b62dc7b1
/dev/sda2 ntfs QA /media/gks/QA 64DA7D8DA5C8
/dev/sda3 ext4 / 1ca465-6375-402c-be7d-4c7eb840e
/dev/sda4 ext4 /home b467e3d-a581-4335-981b-bb7c0d23e
/dev/sdb1 ntfs WindowsPAGE (not mounted) 6EEAFF83EA8B
/dev/sdb2 ntfs BackUp (not mounted) E862507262504788
/dev/sdb4 swap [SWAP] cbd8ffa2-1c86-42c4-bead-64d6ab7bf82a
/dev/sdb5 ntfs ASUSHDD2E (not mounted) 01CCE805006500
/dev/sdb6 ntfs ASUSHDD2D (not mounted) 01CCE687CD6DC0
/dev/sdc1 (not mounted)
/dev/sdc2 ntfs Toshiba4 (not mounted) 26E4D4EED61FBB
/dev/sdd1 ntfs
sudo efibootmgr -v
&sudo blkid -c /dev/null -o list
UEFI's NVRAM forgets entries if a drive is disconnected. Or if ESP - efi system partition is recreated with new UUID/GUID as UEFI looks for GUID. PartUUID in blkid should match GUID in efibootmgr list of ubuntu entry. Also good idea to separately backup ESP/FAT32 partition(s). I do like to have an ESP on every drive with copies of boot files, but UEFI generally only uses one of them. And Ubuntu/grub only wants to install to sda. – oldfred Sep 04 '17 at 15:39lsblk -o +PARTUUID /dev/sda
Do not have NVME, so not sure of exact command, but expect something like this for it.lsblk -o +PARTUUID /dev/nvme0n1
You want partUUID of nvme0n1p1 to match entry in UEFI. Should be either 2087d7-5dc8-4038-a9c1-90939c232 or 287d7-5dc8-4038-a9c1-9d969c232,0xe1800,0x31800. – oldfred Sep 04 '17 at 17:52