lost grub menu after update

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help

lost grub menu after update

Postby bcroll on Fri Nov 23, 2012 7:36 pm

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 ?
bcroll
Level 1
Level 1
 
Posts: 7
Joined: Wed Nov 07, 2012 7:21 pm

Linux Mint is funded by ads and donations.
 

Re: lost grub menu after update

Postby wayne128 on Fri Nov 23, 2012 11:22 pm

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
wayne128
Level 10
Level 10
 
Posts: 3325
Joined: Tue Jul 13, 2010 12:15 am

Re: lost grub menu after update

Postby bcroll on Mon Nov 26, 2012 12:40 pm

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
bcroll
Level 1
Level 1
 
Posts: 7
Joined: Wed Nov 07, 2012 7:21 pm

Re: lost grub menu after update

Postby JyDy on Tue Nov 27, 2012 8:48 am

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
JyDy
Level 1
Level 1
 
Posts: 2
Joined: Tue Nov 27, 2012 6:29 am

Re: lost grub menu after update

Postby mintybits on Tue Nov 27, 2012 9:25 am

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
mintybits
Level 5
Level 5
 
Posts: 935
Joined: Fri Jan 27, 2012 5:09 pm

Re: lost grub menu after update [SOLVED]

Postby bcroll on Thu Nov 29, 2012 11:53 am

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.
bcroll
Level 1
Level 1
 
Posts: 7
Joined: Wed Nov 07, 2012 7:21 pm


Return to Newbie Questions

Who is online

Users browsing this forum: Google Adsense [Bot], Mute Ant, simonbrown and 34 guests