So I already have a dual boot of Ubuntu and Windows, but my install of Windows has amassed too many problems and hangs at startup, so I'm going to be reinstalling it. I have a TB hard drive, and about 660GB is allocated to Windows and 210GB to Ubuntu. I already backed up the stuff I need on the Windows partition. I was wondering if there's a way I could wipe the Windows partition to make it unallocated space, then resize Ubuntu to be 660 and reinstall Windows with a 210GB allocation? I'm also a bit concerned that reinstalling Windows will get rid of my grub boot screen. Any help would be appreciated!
assuming you are with UEFI boot mode.
it is better to take the backup of your Ubuntu data also as extending ext4 / partition in GParted will take much time.
boot with bootable USB and logon to live session of Ubuntu.
- Open GParted.
- leave the sda2 EFI partition as it is.
- delete the sda1, sda3, sda4 & sda5
- now proceed with go signal to write the changes in GParted.
- select sda9 and increase its size, it may take long time in live session.
- after the completion of process. reboot the system.
- Open GParted again, run in terminal
sudo sgdisk -s /dev/sdato sort out the partitioning numbers.
- make the unallocated space into NTFS file system.
- shutdown the system.
- boot with windows10 bootable USB. and do the regular installation.
- Once windows is installed, it will directly boots to windows. you need to reinstall Grub.
- in windows10 turn of fastboot and secureboot.
- boot in live session of Ubuntu and then follow this highly voted Q&A How can I repair grub? (How to get Ubuntu back after installing Windows?)