Because I referred that I wanted to backup EFI Partition below are correct?
Especially these are correct?
mkdir -p E:/backup/EFI
Xcopy S:\*.* E:\backup\EFI /E /H /C /I
==================================
Microsoft Windows [Version 10.0.19041.928]
(c) Microsoft Corporation. All rights reserved.
X:\Sources>notepad
X:\Sources>Bcdedit /enum | find "osdevice"
osdevice partition=C:
X:\Sources>Bootrec /rebuildbcd
Scanning all disks for Windows installations.
Please wait, since this may take a while...
Successfully scanned Windows installations.
Total identified Windows installations: 0
The operation completed successfully.
X:\Sources>BCDBOOT C:\WINDOWS
Boot files successfully created.
X:\Sources>Bootrec /rebuildbcd
Scanning all disks for Windows installations.
Please wait, since this may take a while...
Successfully scanned Windows installations.
Total identified Windows installations: 0
The operation completed successfully.
X:\Sources>
X:\Sources>diskpart
Microsoft DiskPart version 10.0.19041.610
Copyright (C) Microsoft Corporation.
On computer: MININT-NMH26CS
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
Disk 0 Online 931 GB 0 B *
Disk 1 Online 57 GB 16 MB
DISKPART> list vol
Volume ### Ltr Label Fs Type Size Status Info
Volume 0 C System NTFS Partition 930 GB Healthy
Volume 1 FAT32 Partition 100 MB Healthy Hidden
Volume 2 D NTFS Partition 502 MB Healthy Hidden
Volume 3 E USB DISK FAT32 Removable 57 GB Healthy
DISKPART> exit
Leaving DiskPart...
X:\Sources>
DiskPart
List Vol
Select Volume 1
Assign Letter=S
Exit
List Vol
mkdir -p E:/backup/EFI
Xcopy S:\*.* E:\backup\EFI /E /H /C /I
DiskPart
List Vol
Select Volume 1
Format Quick FS=fat32 Label="EFI"
Exit
BCDBoot C:\Windows /s S: /f UEFI
DiskPart
Select Vol=S
Remove Letter=S
Exit