computing:bootloaders
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| computing:bootloaders [2022/12/09 18:20] – oscar | computing:bootloaders [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Dual Window Grub Bootloader ====== | ||
| - | If Windows update overwrites the Grub bootloader. Simple way to restore is to copy the debian bootloader (grubx64.efi) over the windows bootloader. We do the following steps: | ||
| - | - Save the bootloader installed by Windows: | ||
| - | - Copy the debian grub bootloader over the bootloader installed by Microsoft (bootmgfw.efi). //copy E: | ||
| - | - Add an entry in Grub boot menu to start the orginal windows loader. | ||
| - | |||
| - | | ||
| - | ==== Correct within Windows ==== | ||
| - | Open CMD prompt as " | ||
| - | < | ||
| - | mountvol E: /S | ||
| - | |||
| - | E: | ||
| - | | ||
| - | | ||
| - | |||
| - | | ||
| - | |||
| - | 06-12-2016 | ||
| - | 06-12-2016 | ||
| - | 06-12-2016 | ||
| - | 13-02-2021 | ||
| - | 27-11-2021 | ||
| - | 13-02-2021 | ||
| - | 0 File(s) | ||
| - | 6 Dir(s) | ||
| - | </ | ||
| - | |||
| - | copy the debian grub bootloader over the bootloader installed by Microsoft (bootmgfw.efi). | ||
| - | < | ||
| - | copy E: | ||
| - | </ | ||
| - | |||
| - | |||
| - | ===== Add Windows enty in grub ===== | ||
| - | Add the following lines to: **/ | ||
| - | < | ||
| - | menuentry 'WIN 10 (on / | ||
| - | insmod part_gpt | ||
| - | insmod fat | ||
| - | set root=' | ||
| - | if [ x$feature_platform_search_hint = xy ]; then | ||
| - | search --no-floppy --fs-uuid --set=root --hint-bios=hd0, | ||
| - | else | ||
| - | search --no-floppy --fs-uuid --set=root 502B-5BC6 | ||
| - | fi | ||
| - | chainloader / | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | ===== Change Bootorder ===== | ||
| - | < | ||
| - | efibootmgr -v | ||
| - | |||
| - | |||
| - | BootCurrent: | ||
| - | Timeout: 5 seconds | ||
| - | BootOrder: 0002, | ||
| - | Boot0000* Notebook Hard Drive - SAMSUNG MZNTY128HDHP-000H1 BBS(HD, | ||
| - | Boot0001* Windows Boot Manager HD(1, | ||
| - | Boot0002* debian HD(1, | ||
| - | Boot2001* EFI USB Device RC | ||
| - | Boot2002* EFI DVD/ | ||
| - | Boot3001* Internal Hard Disk or Solid State Disk RC | ||
| - | </ | ||
| - | |||
| - | Change the boot order: | ||
| - | < | ||
| - | efibootmgr -o 0002, | ||
| - | </ | ||
| - | |||
| - | ===== BCDedit ===== | ||
| - | < | ||
| - | C: | ||
| - | |||
| - | Windows Boot Manager | ||
| - | -------------------- | ||
| - | identifier | ||
| - | device | ||
| - | path \EFI\Microsoft\Boot\bootmgfw.efi | ||
| - | description | ||
| - | locale | ||
| - | inherit | ||
| - | default | ||
| - | resumeobject | ||
| - | displayorder | ||
| - | toolsdisplayorder | ||
| - | timeout | ||
| - | |||
| - | Windows Boot Loader | ||
| - | ------------------- | ||
| - | identifier | ||
| - | device | ||
| - | path \WINDOWS\system32\winload.efi | ||
| - | description | ||
| - | locale | ||
| - | inherit | ||
| - | recoverysequence | ||
| - | displaymessageoverride | ||
| - | recoveryenabled | ||
| - | isolatedcontext | ||
| - | allowedinmemorysettings 0x15000075 | ||
| - | osdevice | ||
| - | systemroot | ||
| - | resumeobject | ||
| - | nx OptIn | ||
| - | bootmenupolicy | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | bcdedit /set {bootmgr} path \EFI\debian\grubx64.efi | ||
| - | bcdedit /set {bootmgr} path \EFI\Microsoft\Boot\bootmgfw.efi | ||
| - | |||
| - | bcdedit /enum firmware | ||
| - | bcdedit /timeout 10 | ||
| - | bcdedit /copy {current} /d " | ||
| - | </ | ||
| - | |||
| - | < | ||
| - | Windows Boot Manager | ||
| - | -------------------- | ||
| - | identifier | ||
| - | device | ||
| - | path \EFI\Microsoft\Boot\bootmgfw.efi | ||
| - | description | ||
| - | locale | ||
| - | inherit | ||
| - | default | ||
| - | resumeobject | ||
| - | displayorder | ||
| - | toolsdisplayorder | ||
| - | timeout | ||
| - | </ | ||
computing/bootloaders.1670610031.txt.gz · Last modified: by oscar
