Drive partition change destroyed Windows (dualboot)

Page 2 of 2 FirstFirst 12

  1. Posts : 9
    windows 10
    Thread Starter
       #11

    I've copied the Ubuntu partition back to the drive that contains windows and disconnected the other one.
    I can boot into Ubuntu fine and I'm still stuck at the windows BSOD / automatic repair

    The diskpart says the disk is GPT.


    I was trying some things, it's a bit confusing but in summary

    I still boot into bsod or automatic repair

    in advanced, command prompt, bootrec /scanos detects 1 Windows installations every time right after running Macrium, back to 0 after disk repair attempts to repair

    I have to login before using the commandprompt now (which seems like a good sign)

    Megahertz said:
    What you want to do?
    I'll do whatever will make windows work again
      My Computer


  2. Posts : 6,301
    Windows 11 Pro - Windows 7 HP - Lubuntu
       #12

    Are you sure the Ubuntu-Windows drive is GPT? On a UEFI-GPT drive the boot manager is on the EFI Fat32 partition and should not be affected by deleting the Ubuntu partition. If you also deleted the EFI partition please tell me. It is important to know what you did.
    I would like to see all partitions on the drive.

    Boot from a Win 10 installation drive.
    At the Windows Setup screen, press Shift+F10 simultaneously to open a command line prompt and type:
    Diskpart
    List disk (take note of the drive number.)
    sel disk n (replace n with the drive number found above)
    List part (take a snapshot with a Cel camera and post it here)
    exit
    Report

    To make Windows boot able is quite easy.
    For now, lets make a backup.
    Use the image software to clone the whole drive into the new SSD. Are you using Clonezilla or do you have a Win based program?
      My Computers


  3. Posts : 9
    windows 10
    Thread Starter
       #13

    Megahertz said:
    Are you sure the Ubuntu-Windows drive is GPT? On a UEFI-GPT drive the boot manager is on the EFI Fat32 partition and should not be affected by deleting the Ubuntu partition. If you also deleted the EFI partition please tell me. It is important to know what you did.
    I would like to see all partitions on the drive.

    Boot from a Win 10 installation drive.
    At the Windows Setup screen, press Shift+F10 simultaneously to open a command line prompt and type:
    Diskpart
    List disk (take note of the drive number.)
    sel disk n (replace n with the drive number found above)
    List part (take a snapshot with a Cel camera and post it here)
    exit
    Report

    For now, lets make a backup.
    Use the image software to clone the whole drive into the new SSD. Are you using Clonezilla or do you have a Win based program?
    I use gparted (a linux utility).

    On the Ubuntu forum they told me my original ubuntu partition was also an ESP, which is very unusual and a poster there said it was probably the result of a failed repair.

    I tried putting it in attachment, but it keeps giving me a message "upload or file failed", so sending it here:

    IMG-20230415-144312 hosted at ImgBB — ImgBB

    IMG-20230415-144840 hosted at ImgBB — ImgBB

    To make Windows boot able is quite easy.
    awesome, please tell me how:)
      My Computer


  4. Posts : 6,301
    Windows 11 Pro - Windows 7 HP - Lubuntu
       #14

    Did you cloned the drive to have a backup?

    Under Ubuntu, open a CMD window and type:
    sudo update-grub

    This should recreate the windows boot option under Grub
      My Computers


  5. Posts : 9
    windows 10
    Thread Starter
       #15

    Yes.

    Under Ubuntu, open a CMD window and type:
    sudo update-grub

    This should recreate the windows boot option under Grub
    I've done that a long time ago, I have it in the grub boot menu for a while now, but whenever I select windows it boots into either bsod or automatic repair.
      My Computer


  6. Posts : 6,301
    Windows 11 Pro - Windows 7 HP - Lubuntu
       #16

    Please edit your profile with ALL your hardware specs. It will help us to help you
    System Specs - Fill in at Ten Forums

    As you have a UEFI BIOS you should have a Windows Boot manager option to boot from.
    Launch the One time boot menu (F12?) during POST and it will list a Ubuntu option and a Windows Boot manager option. Select Windows Boot manager option.
    Can it boot?
      My Computers


  7. Posts : 9
    windows 10
    Thread Starter
       #17

    Megahertz said:
    As you have a UEFI BIOS you should have a Windows Boot manager option to boot from.
    Launch the One time boot menu (F12?) during POST and it will list a Ubuntu option and a Windows Boot manager option. Select Windows Boot manager option.
    Can it boot?
    Yes, into recovery again (it's F11 in my case)

    IMG-20230415-154138 hosted at ImgBB — ImgBB


    updated the relevant settings in my profile
      My Computer


  8. Posts : 6,301
    Windows 11 Pro - Windows 7 HP - Lubuntu
       #18

    Boot from a Win 10 installation drive.
    At the Windows Setup screen, press Shift+F10 simultaneously to open a command line prompt and type:
    Diskpart
    sel disk 1
    select part 1
    assign letter=w
    list vol (see what letter is assigned to win partition. It may not be C:)
    exit
    bcdboot G:\Windows /s W: /f UEFI (Replace G: with letter is assigned to win partition)
    diskpart
    select vol W
    remove letter=W
    exit
    exit
      My Computers


  9. Posts : 9
    windows 10
    Thread Starter
       #19

    It is drive C.

    the bcdboot command gives response
    "boot files successfully created."

    On the next boot same thing happens, bsod or the recovery screen
      My Computer


  10. Posts : 6,301
    Windows 11 Pro - Windows 7 HP - Lubuntu
       #20

    From the first post you said that you only deleted the Ubuntu partition but you should have done something else to the Windows partition.
    The boot manager on the EFI partition has been recreated and it doesn't boot. My diagnostic is that there is something wrong on the Windows partition. I would say that the only solution is a Win 10 clean install.

    I would install Win 10 on the new drive and use the the current to Ubuntu.
    Don't forget to Detach any other drives (SATA or Power cable) from the MB or you may end with Windows in one drive and the Boot manager on the EFI partition on the other drive.


    Windows can be installed in two ways: Legacy-MBR or UEFI-GPT
    To install as Legacy-MBR you must boot the installation drive as Legacy
    To install as UEFI-GPT you must boot the installation drive as UEFI.

    If you have a UEFI BIOS, you should install as UEFI-GPT
    Detach any other drives (SATA or Power cable) from the MB.

    During POST, press F11 to launch the boot menu. You will see two options for the USB drive. USB UEFI (Name) and USB (Name). Select USB UEFI (Name) if you want to install as UEFI-GPT or select USB (name) if you want to install as Legacy-MBR.
    Go to install and delete ALL partitions on the main drive till you have one and only one unallocated space and then proceed.
    If you don't want to use MS account, don't enable updates or connect to the internet during installation.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 23:02.
Find Us




Windows 10 Forums