Download your favorite Linux distribution at LQ ISO.
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 08-20-2011, 02:19 PM   #1
LQ Newbie
Registered: Jun 2010
Posts: 6

Rep: Reputation: 0
dual booting. i have installed windows vista after ubuntu. want 2 recover grub.

i have installed windows vista on my laptop over ubuntu to which im unable to access ubuntu. i dont know the version of my ubuntu to inform wheather grub 1 or 2 .i remember that i have upgrade the kernal so i dont know which live cd to use and how to re install grub. please anyone explain me each and every step involved in recovering ubuntu o.s including nomenclature of partioning. if it can be done using BCDEDIT utility of vista then please let me know each and every step.
Old 08-20-2011, 03:04 PM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
The Ubuntu documentation already has this process explained in excellent detail, you should simply need to follow along with this and you will be back up and running:

Rescuing Ubuntu after installing Windows
Old 08-20-2011, 03:12 PM   #3
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
See if this simpler or quicker.

(1) Boot up Ubuntu and run it as a Live CD.

(2) Click Application/Accessories/terminal and claim to be a Super user by
sudo su
(3) Display the hard disk partition by command
fdisk -l
and identify which partition holds Ubuntu. It will be the first one with type 83. Say this is sda2.

(4) Create a mount point and mount Ubuntu partition (assuming it is sda2) and do a grub-install
mkdir /mnt/sda2
mount /dev/sda2 /mnt/sda2
grub-install --root-directory=/mnt/sda2 /dev/sda
The procedure Will work for every Linux that uses Grub. For non-Debian and non-Ubuntu distros claim the super user by
-----------------------------using Vista to dual boot Linux-------------------------------------------------

Do the above except in Step (4) Last command you tell Grub2 to install itself in sda2 by
grub-install --root-directory=/mnt/sda2 --force /dev/sda2
You then follow Task E5 of Just booting tips in my signature on how to use BCDedit to arrange the dual boot.

You should be left in no illusion that Grub needs only 1/4 of the work of Vista's bootmgr (Vista/Win7 boot loader) to do a dual boot.

When it comes to booting Linux is light years ahead of M$ systems.

Last edited by saikee; 08-20-2011 at 03:23 PM.
Old 08-20-2011, 03:21 PM   #4
LQ Newbie
Registered: Jun 2011
Distribution: Zorin OS 3 Core,Windows XP SP3
Posts: 25

Rep: Reputation: 11
Hi hemanthm17,just boot from live cd,from which you installed ubuntu,open terminal then type these commands

sudo grub
find /boot/grub/stage2

look at the output of above command, it will show a partition like this (hd0,9)
now type

root (hd0,9)
setup (hd0)

don't forget to replace (hd0,9) with what "find /boot/grub/stage2" command returns.


dual boot, grub, version, vista

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
[SOLVED] Grub problem on dual-booting with Ubuntu 11.04 and Windows Francoo Linux - Newbie 10 07-04-2011 03:12 PM
Dual Booting Ubuntu 8.10 with Vista Installed First George Jeng Linux - Newbie 2 11-04-2008 01:13 AM
Windows Vista Dual-Booting with Ubuntu 6.10 Koueen Linux - Newbie 6 06-02-2008 06:12 PM
LXer: Dual-Booting Windows XP/Vista And Ubuntu 7.04 LXer Syndicated Linux News 0 07-22-2007 01:46 PM
help dual booting windows on already installed ubuntu machine ralphbluecoat Linux - Software 2 02-09-2007 09:02 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:36 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