ChrisTitusTech / website

My HUGO Website that I use for Videos, Blogs, and Redirects
75 stars 44 forks source link

repair-windows-boot-partition/ #39

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Repair Windows Boot Partition | Includes files and partitioning

Having Fun with Technology

https://christitus.com/repair-windows-boot-partition/

mikrose commented 1 year ago

BSOD trouble with your video. When I go to Advanced>Command Prompt, it shows X:WindowsSystem32config like yours. DISKPART gives me Microsoft Version/Copyright/and MININT-NTKFOEK on 3 separate lines. If I enter SELECT DISK 0, it says disk not valid. Select Disk 1 and Select Disk MININT-NTKFOEK say disk not valid. What should I select for SELECT DISK?

Hi-Phile commented 1 year ago

Thanks Chris your information is helpful and concise. Although I have a different setup, i'm dual booting and using rEFInd as my boot manager, I was able to still fix both my Arch Linux and Windows 10 so they both can boot after I migrated from a SATA SSD to a NVME M.2 SSD. I did a full disk sector copy from the SSD to the NVME, then disabled the SATA drive in BIOS, booted into my Arch Linux ISO from a Ventoy USB, then mounted the ESP partition and mounted the Arch root fs and ran grub-mkconfig, grub-install, then finally mkinitcpio then rebooted and grub came up and could boot back into Arch. Once, back in Arch, from a terminal I then ran sudo efibootmgr which listed the EFI entries, found the rEFInd entry and just reordered it so that it was first in the EFI boot order using: sudo efibootmgr -o 0002,0000 The '-o' option allows the reordering of the EFI entries, and where 0002 was rEFInd and 0000 was Grub.

Then after another reboot, rEFInd would come up and then I would boot off the Ventoy USB and choose the Windows 10 ISO. Because i'm not replacing the ESP, I just needed to see the disks and drive letters and made sure the NTFS Windows partition was C: which it was, but the ESP didn't have a letter, so I only selected the vol where ESP resided and then assigned the drive letter=g:, then I only ran the following to get the Windows 10 to successfully boot:
bootbcd c:\windows /s g: /f UEFI bootrec /rebuildbcd bootrec /fixmbr bootrec /fixboot I then exited and rebooted back into rEFInd and was able to select Windows from rEFInd and then Windows complained, about the last boot, so I just selected F8 to boot into Safe Mode and once it loaded, rebooted again and back into rEFInd and then the next Windows boot went back to normal.

Rawimage commented 1 year ago

Hi, I performed the steps to "DISKPART> list vol" which displays as follows:

Volume ### Ltr Label Fs Type Size Status Info

Volume 0 C RAW Partition 476 GB Healthy Volume 1 D NTFS Partition 508 MB Healthy Volume 2 SYSTEM FAT32 Partition 260 MB Healthy Hidden

Will the rebuild still work with a RAW C partition? Or, is there another way to reboot from the automatic repair loop?