Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
@izx - Thanks! that worked! – nbubis Aug 24 '12 at 23:14
up vote 2 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.