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!
-
so you want to keep your Ubuntu as it is, increase the size and want to wipe windows partitions and reinstall. thats fine. can you attach a pic when you are in Ubuntu and open "GParted"? your windows and ubuntu both are in UEFI Boot mode or BIOS boot mode? also is it MBR Partitioned or GPT Partitioned?– PRATAPCommented Jul 1, 2018 at 16:31
-
My windows and Ubuntu are in BIOS Boot mode. My hard drive is GPT Partitioned. Here's the picture of my GParted: i.imgur.com/6PA6Mcs.png– Cabron91944Commented Jul 1, 2018 at 16:44
-
as per the attached pic, there is EFI Partition. meaning UEFI Boot mode. what is sda8??– PRATAPCommented Jul 1, 2018 at 16:45
-
I think sda8 is a partition I made for debian a long time ago because I wanted to try it out, because debian still shows up as one of the OS I can load my pc to in grub.– Cabron91944Commented Jul 1, 2018 at 16:49
-
I don't need sda8. My Windows version is Windows 10, but my pc came pre-installed with windows 8. I also thought I have BIOS boot because the dual boot screen looks like this person's: sevenforums.com/attachments/hardware-devices/…– Cabron91944Commented Jul 1, 2018 at 16:52
|
Show 1 more comment
1 Answer
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/sda
to 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?)