LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   restore grub after windows update (https://www.linuxquestions.org/questions/linux-software-2/restore-grub-after-windows-update-4175641206/)

DBabo 10-26-2018 06:21 PM

restore grub after windows update
 
Hello,
latest threads are back to 2012. I figured i'll try my luck with a new thread.

Situation:
dual boot with ... not sure what windows ..10, probably.. and Fedora 28. After allowing win to update itself i don't get the linux's boot manager.

this thread seemed to be what i need to do, but :
Code:

fdisk -l
Disk /dev/sda: 953.9 GiB, 1024209543168 bytes, 2000409264 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 401E0122-4DC1-4213-8B97-85C4E2A1BE64

Device          Start        End  Sectors  Size Type
/dev/sda1        2048    1026047  1024000  500M EFI System
/dev/sda2    1026048    1288191    262144  128M Microsoft reserved
/dev/sda3    1288192  453661892 452373701 215.7G Microsoft basic data
/dev/sda4  1928222720 1929969663  1746944  853M Windows recovery environment
/dev/sda5  1929969664 1953521663  23552000  11.2G Windows recovery environment
/dev/sda6  453662720  455759871  2097152    1G Linux filesystem
/dev/sda7  455759872 1415935999 960176128 457.9G Linux LVM

Partition table entries are not in disk order.

the sda1 is EFI and i'm not sure what the implications of "grub-install --root-directory=/mnt/ /dev/sda" ( i suspect the author meant sda1)
Please advise. thank you

P.S. I can boot into Linux if i get the F10/one time BIOS loader to popup.

syg00 10-26-2018 06:38 PM

The Win10 update changed the default boot entry - with UEFI, there is no need to re-install grub. Simply boot into Fedora, go get efibootmgr and run it - it will list all the NVRAM entries - use it to make Fedora the default.

Done.

DBabo 10-26-2018 06:58 PM

Quote:

Originally Posted by syg00 (Post 5919559)
The Win10 update changed the default boot entry - with UEFI, there is no need to re-install grub. Simply boot into Fedora, go get efibootmgr and run it - it will list all the NVRAM entries - use it to make Fedora the default.

Done.

Code:


efibootmgr
BootCurrent: 0007
Timeout: 1 seconds
BootOrder: 0008,0007,0006,0009
Boot0000* test
Boot0001  Fedora
Boot0002  Fedora
Boot0003  Fedora
Boot0004  Fedora
Boot0005  Fedora
Boot0006* UEFI: SATA SSD
Boot0007* Fedora
Boot0008* Windows Boot Manager
Boot0009* UEFI:  PMAP


[root@dell5000 ~]# efibootmgr -o 0007,0006,0009
BootCurrent: 0007
Timeout: 1 seconds
BootOrder: 0007,0006,0009
Boot0000* test
Boot0001  Fedora
Boot0002  Fedora
Boot0003  Fedora
Boot0004  Fedora
Boot0005  Fedora
Boot0006* UEFI: SATA SSD
Boot0007* Fedora
Boot0008* Windows Boot Manager
Boot0009* UEFI:  PMAP


DONE.

Thank you!


All times are GMT -5. The time now is 12:55 AM.