Page 1 of 1

lost grub menu after update

Posted: Fri Nov 23, 2012 7:36 pm
by bcroll
I had ubuntu 12.04; linux Bohdi; Backtrack; Windows 7 and Freedos all on different partitions and had no problem with the grub menu presenting all the OS's .The last install was backtrack so the grub menu i take it was from that. The problem is i was in ubuntu 12.04 when update manager suggested 200 odd updates which i let it do then when i rebooted there was no menu but i could still guess the order of OS's and get into them.I then thought i would install mint 14 thinking it would replace the menu however it hasn't done so and is not the default OS on booting like all the other installs done.Any suggestions please ?

Re: lost grub menu after update

Posted: Fri Nov 23, 2012 11:22 pm
by wayne128
bcroll wrote:I then thought i would install mint 14 thinking it would replace the menu however it hasn't done so and is not the default OS on booting like all the other installs done.Any suggestions please ?
What you can do is, choose what default OS you want first.
Then pick up its Live DVD, boot and run live, on terminal, use
sudo os-prober to find out the list of OSes,
get the number /dev/sdaX from your list that indicate your default OS choice,
follow by two commands

sudo mount /dev/sdaX /mnt , replace X with your actual number

sudo grub-install --root-directory=/mnt /dev/sda

Re: lost grub menu after update

Posted: Mon Nov 26, 2012 12:40 pm
by bcroll
i done as you say but when using grub-install --boot-directory=/mnt/dev/sda5 i got no install_device named so i repeated the cmd and added /mnt/dev/sda at the end and got 'cannot stat mnt/dev/sda' so tried same cmd but used sda5 and got '/mnt/dev/sda5 is not a block device. i also tried sdb6 and sdb8 where the other two systems are and got cannot stat sdb6 and same with 8. Any further suggestions please

Re: lost grub menu after update

Posted: Tue Nov 27, 2012 8:48 am
by JyDy
bcroll wrote:i done as you say but when using grub-install --boot-directory=/mnt/dev/sda5 i got no install_device named so i repeated the cmd and added /mnt/dev/sda at the end and got 'cannot stat mnt/dev/sda' so tried same cmd but used sda5 and got '/mnt/dev/sda5 is not a block device. i also tried sdb6 and sdb8 where the other two systems are and got cannot stat sdb6 and same with 8. Any further suggestions please
I think you need a space after /mnt - also, I don't think you need the partition number, 5 ... just sda

Re: lost grub menu after update

Posted: Tue Nov 27, 2012 9:25 am
by mintybits
wayne128 wrote:

Code: Select all

sudo grub-install --root-directory=/mnt /dev/sda
If you want to use "--boot-directory" you need

Code: Select all

sudo grub-install --boot-directory=/mnt/boot /dev/sda

Re: lost grub menu after update [SOLVED]

Posted: Thu Nov 29, 2012 11:53 am
by bcroll
I solved it by going into the bios settings and as i have two hard drives i changed the priority to the other one upon rebooting hey presto the grub menu was there with mint 14 as default (last OS installed). Don't know how it happened but somehow the upgrade changed my bios settings!! Thanks for your suggestions.