5

I know you are gonna say this question is already asked but all i could find in searching is answers on how to update grub to remove old kernels and/or installations of linux.

My question is a bit different i have an old installations of windows and linux systems in my grub but i don't have them anymore on my hdd's.

I use dual boot of windows and linux because i have to use photoshop on windows. And recently i bought and SSD, divided it in 2 partitions and installed windows on one and linux on another partitions.

But before that i had 2 HDD's and windows was on one and linux on another hdd.

So when i installed finally linux on my SSD the grub loader found windows and linux installations from old HDD's. But later i formated both my old HDD's and don't have os on them. So now i am stuck with having windows and linux installations of HDD's in grub.

lonerunner
  • 393
  • 1
  • 6
  • 21

1 Answers1

8

To remove obsolete entries from the GRUB menu open the terminal and type:

sudo update-grub  

update-grub is a stub for running grub-mkconfig -o /boot/grub/grub.cfg to generate a grub2 config file. Other operating systems which have been removed from the computer will also be removed from the GRUB menu once update-grub is run as root.

karel
  • 122,292
  • 133
  • 301
  • 332