0

I'm really new to Linux in general. So I had installed Ubuntu on one of the partitions in my HDD while keeping Windows 10 on the SSD (single partition). Today I went to install Ubuntu on the SSD in a separate partition, before which, I followed this guide to remove it from the HDD.

The first block of (D:) disk in the image was the one having Ubuntu on it. I deleted it & extended the next block of (D:) disk to take up the unallocated space.

enter image description here

I can see the (D:) disk as a single partition in the windows explorer-

enter image description here

However, I still get the earlier Ubuntu option in the Boot menu. And in newly installed Ubuntu (on SSD), I see the entire HDD with following contents-

enter image description here

What went wrong in removing the OS? How do I fix it?

1 Answers1

1

You probably installed the new Ubuntu on the SSD before removing the old one. Upon installation, GRUB is installed. It checks what operating systems exist on the system. Since your old Ubuntu was still there, it was also included in the GRUB menu.

Boot into your Ubuntu session, and run the command sudo update-grub. The existing kernels and other operating systems will be probed, resulting in an updated boot menu.

That you still may see the files of the old install is apparently related to the fact that this disk uses Windows dynamic partitions. I would not touch that drive using Linux tools. Deleting that partition from within linux probably would delete it effectively, but may damage the dynamic partitioning.

vanadium
  • 97,564