2

I have a dual boot (actually triple with windows but that's irrelevant) with Ubuntu 12.04 [1] and another Ubuntu [2]. I recently upgraded [2] which may have overwritten [1]'s grub with [2]'s grub, ie [2] is top of the list and background color previously changed is back to purple. [1] being my main OS, Id like [1]'s grub back :(

Im well aware of the windows-ubuntu MBR issue that can be fixed by reinstalling grub 2. Im just asking if there's a simpler way when it's about 2 ubuntus. What could I do knowing that I have access to all OS' ?

PS: sudo update-grub in [1] isn't enough ...

user50745
  • 199

1 Answers1

2

sudo grub-install /dev/sdX (where "sdX" is something like "sda", not a partition like "sda1".

You can also disable the running of grub-install by Ubuntu #2's grub-pc package by removing all install devices. With versions of Ubuntu before 12.04 this can be done by running sudo dpkg-reconfigure grub-pc and selecting the defaults for the linux cmdline questions then using space bar to deselect any selected devices, and hit return to continue. For doing the same in Ubuntu 12.04 see How should one set the grub-pc package's "install_devices" debconf setting? (which is unanswered as of this writing).

Jordan Uggla
  • 4,565
  • Simple enough. Thanks for pointing me to grup-pc. It's now answered but not accepted so I'll just say sudo dpkg-reconfigure grub-pc works for me. Thanks again. – user50745 May 12 '12 at 07:59