3

I hav a single nvme disk on my laptop with two uefi O.S. installed: Ubuntu 17 and Windows 10.

enter image description here

I would like to completely remove Windows 10 and reuse the freed space for my Ubuntu 17. Obviously I don't want to loose any data I have in Ubuntu and it would be great to hide the grub2 screen at startup in order to boot directly to the existing Ubuntu installation.

I went through the existing answers but I didn't find anything related to my scenario.
The only answer relevant for my problem is this one but when I tried the ubuntu installation, the screen reported never showed up. I was only allowed to reinstall Ubuntu (destroying data).

Is there someone able to give me a step by step guide in order to safely get rid of my Windows 10 Partition?

Thanks a lot.

1 Answers1

4

Grub is the boot loader, it can be replaced; however with a single installation it can be hidden and set to auto select, so you will never see it. The EFI partition is also required for boot. DO NOT delete it.

Partitions 3 and 4 can be deleted.
Then you have the option of growing partition 5 or making a data partition that you mount into your system.

If you plan to grow partition 5, I recommend doing it from a LiveCD. Manipulating mounted partitions can be dangerous.

After you have removed windows, edit /etc/default/grub.
change GRUB_TIMEOUT=0, this make grub immediately select the default option.
GRUB_HIDDEN_TIMEOUT_QUIET=true, this hides grub.
GRUB_DISABLE_OS_PROBER=true, this stops grub from looking for other OS's when updating.

then sudo update-grub

if your windows partition is auto mounted, you will have to edit etc/fstab also to remove the entry for it.

ravery
  • 6,924