Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: Disabled
Grub installation in ubuntu11.04

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
grub-install --root-directory=/mnt/2 /dev/sda
and found grub installed with no errors
Then I am trying to update the grub using
sudo update-grub
But I am getting the error as below
/usr/sbin/grub-probe: error: cannot stat `aufs'.
If I reboot the machine I am getting the prompt as
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:	13
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 08:56 PM.
Old 01-09-2012, 09: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, 09:59 AM   #3
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.


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 10:35 AM
upgrading to ubuntu11.10 from ubuntu11.04 using .iso on harddisk without burning bant4u Linux - Newbie 1 12-12-2011 11:09 PM
ubuntu11.10 freezing compsciStudent Linux - Newbie 2 11-03-2011 05:03 PM
Avidemux in Ubuntu11.10 zack670303 Linux - Newbie 1 10-26-2011 08:27 PM
[SOLVED] Ubuntu11.04 andrewc54 Linux - Newbie 3 03-31-2011 02:43 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:32 PM.

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