LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-09-2012, 09:44 PM   #1
mandyapenguin
Member
 
Registered: Nov 2011
Location: India
Distribution: RedHat, Cent OS, Fedora, Debian, Ubuntu
Posts: 106

Rep: Reputation: Disabled
Grub installation in ubuntu11.04


Hi..All,
In RedHat based O/S I can easily recover grub menu after windows re installation by just running "grub-install /dev/sda". But in ubuntu I could never successfully recover the grub menu. So for practical purpose I installed XP and ubuntu 11.04 as dual boot on Oracle Virtual Box. I re installed the windows XP and now I want to install grub. I booted through Ubuntu11.04 Rescue CD. Here is the partitions details, please find the attachments also.
/dev/sda6 is mounted on /mnt/1 -->/boot partition
/dev/sda7 is mounted on /mnt/2 -->/ partition
/dev/sda8 not mounted --->/home partition
Here I have some confusions as in which I have to install grub when /boot is having separate partition. But I installed it on / partiton using
Code:
grub-install --root-directory=/mnt/2 /dev/sda
and found grub installed with no errors
Then I am trying to update the grub using
Code:
sudo update-grub
But I am getting the error as below
Code:
/usr/sbin/grub-probe: error: cannot stat `aufs'.
If I reboot the machine I am getting the prompt as
Code:
grub>
and unable to boot either windows or ubuntu
So please help me to recover the grub and in which I have to install grub / or /boot? when /boot is having separate partition
Attached Thumbnails
Click image for larger version

Name:	fdisk.png
Views:	7
Size:	47.8 KB
ID:	8789   Click image for larger version

Name:	df.png
Views:	9
Size:	36.1 KB
ID:	8790   Click image for larger version

Name:	grub.png
Views:	5
Size:	28.2 KB
ID:	8791  

Last edited by mandyapenguin; 01-09-2012 at 09:56 PM.
 
Old 01-09-2012, 10:22 PM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Windows will need to chainload from grub,

If grub is in a separate partition you will need to mount that partition then run the command you have above but for the
(grub-install --root-directory=/mnt/sda? /dev/sda) the '?' being the partition that is your boot partition.

It is easier to do this with a live cd.

Now find a /boot/grub/grub.cfg in the / partition of your ubuntu installation and copy and paste it to your boot partition. If you did hot install grub you will have to make a grub.cfg.file.

I do not know if you have this tutorial on grub2 but check out Section 12 grub2
 
1 members found this post helpful.
Old 01-10-2012, 10:59 AM   #3
mandyapenguin
Member
 
Registered: Nov 2011
Location: India
Distribution: RedHat, Cent OS, Fedora, Debian, Ubuntu
Posts: 106

Original Poster
Rep: Reputation: Disabled
Thanks for the reply Larry Webb,
This link helped me to recover the grub menu. Thanks for your kind help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install dictionary in ubuntu11.10 Talor Ubuntu 1 12-26-2011 11:35 AM
upgrading to ubuntu11.10 from ubuntu11.04 using .iso on harddisk without burning bant4u Linux - Newbie 1 12-13-2011 12:09 AM
ubuntu11.10 freezing compsciStudent Linux - Newbie 2 11-03-2011 06:03 PM
Avidemux in Ubuntu11.10 zack670303 Linux - Newbie 1 10-26-2011 09:27 PM
[SOLVED] Ubuntu11.04 andrewc54 Linux - Newbie 3 03-31-2011 03:43 AM


All times are GMT -5. The time now is 06:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration