mirror of
https://codeberg.org/hyperreal/techne
synced 2024-11-01 14:23:06 +01:00
28 lines
680 B
Org Mode
28 lines
680 B
Org Mode
#+title: Microsoft Windows
|
|
#+setupfile: ../org-templates/page.org
|
|
|
|
** Repair boot files
|
|
- Download Windows 11 ISO from Microsoft and write to USB.
|
|
- Boot into Windows setup utility.
|
|
- Select Repair computer -> Troubleshoot -> Advanced -> Cmd prompt
|
|
|
|
This procedure assumes the following:
|
|
- main disk is ~disk 0~
|
|
- EFI partition is ~part 1~
|
|
- Windows OS drive letter is ~c:~
|
|
|
|
The following commands will format the old EFI partition, mount it to ~s:~, and copy the boot files to it:
|
|
#+begin_src shell
|
|
diskpart
|
|
> list disk
|
|
> sel disk 0
|
|
> list part
|
|
> sel part 1
|
|
> format fs=fat32 quick label=System
|
|
> list vol
|
|
> exit
|
|
mountvol S: /S
|
|
bcdboot c:\windows /s s: /f UEFI /v
|
|
exit
|
|
#+end_src
|