7

I've recently installed ubuntu on a SSD, and would like to remove the old grub entries belonging to the ubuntu on the old HDD. I'd like to do one of the following:

  1. Remove the entry from grub (preferably without deleting /etc/grub.d/10_linux)
  2. Remove the files in the old HDD that tell the grub OS-prober that this is an OS.

Any help would be much appreciated.

1 Answers1

3

If you aren't going to be booting from the old HDD, cd to the old HDD root partition and run:

sudo mv /boot /backup-boot 

and then run

sudo update-grub

This should prevent the old installation from being detected.

ish
  • 141,990