Professional Documents
Culture Documents
Search
O r, Sign in using your Launchpad ID
Ubuntu Forums > The Ubuntu Forum Community > Other Community User Name User Name Remember Me?
Discussions > Tutorials & Tips
Grub/XP/Vista Bootloader Password Log in
Register Reset Password Forum Help Forum Council Today's Posts Search
December 18th,
#1
2008
Join Date: Oct All three parts of this tutorial require that you boot from a cd. If you don't know how to do this, check here.
2007
Location: If you have made a mistake and want to revert the changes, simply follow the instructions for reinstalling the
Auckland, New previous bootloader. For example, if you have installed vista over ubuntu, try to get the ubuntu bootloader
Zealand back, but want to get the vista bootloader back, simply follow my instructions for installing the vista
My beans are bootloader.
hidden!
Ubuntu 10.10
Maverick Meerkat
How to restore the Ubuntu grub bootloader (9.10 and
beyond)
First you need to find out w hat your drives are called. You can do this by going to a terminal and typing:
Code:
sudo fdisk -l
ubuntuforums.org/showthread.php?t… 1/7
3/7/2011 Grub/XP/Vista Bootloader - Ubuntu Fo…
From that you need to find the device name of your Ubuntu drive, something like “/dev/sda5″.
So, still in the terminal, type:
Code:
sudo mkdir /media/sda5
sudo mount /dev/sda5 /media/sda5
Push enter and you’re done! Of course you need to replace “/dev/sda5″ and “/dev/sda” with what you found
in the fdisk output.
So, lets begin. To restore the grub, you must boot off the ubuntu live cd. Any ubuntu live cd will do.
Code:
sudo grub
Next, you need to find which hard drive ubuntu and the grub is installed to. You do this by running this
command:
Code:
find /boot/grub/stage1
Now you need to tell Grub w here it is installed. Using the output of the last command, change this one and
run it:
Code:
root (hd<a>,<b>)
Replacing <a> and <b> with what you got back before. For example, if "find /boot/grub/stage1" gave me "
ubuntuforums.org/showthread.php?t… 2/7
3/7/2011 Grub/XP/Vista Bootloader - Ubuntu Fo…
(hd0,1)", you would run "root (hd0,1)"
Ok, so thats the configuration over and done w ith. Now w e just need to run one command to install the Grub
to your hard drive:
Code:
setup (hd0)
Code:
quit
Code:
sudo reboot
Make sure you have taken the live cd out of your disc tray. All going well, you should start back up and see
the grub once again.
You will get to a part w here it asks if you w ant to repair or recover. To do so, press "r".
If prompted, enter your Window s XP administrator passw ord. This w ill leave you at at a command line, so
type in the follow ing tw o commands:
Code:
fixboot
Code:
fixmbr
Then type
Code:
exit
then remove your XP cd. If everything has gone well, you should come to your XP bootloader.
On the next page, if it finds your Windows Vista/7 installation, make sure it is UNSELECTED before clicking
next.
Then click on "Command prompt". From there, type in the folow ing:
Code:
bootrec.exe /fixboot
Nice tutorial there, I will work on it, but, I am not sure if the situation I find myself is same or
not.
Now close the tw o windows and click "Restart."
Join Date: Feb 2009 I have Dell Studio with preinstalled Vista Home SP1.
Beans: 33 Take outIyour
made a 20 GB
Vista/7 raw
DVD and partion and installed
hopefully, Linux
you w ill be left w
with
ith Grub
your Bootloader.
W indows Vista/7 Bootloader.
__________________
On the initial boot screen (Grub), I see option of selecting Linux or W indows.
ubuntuforums.org/showthread.php?t… 3/7
3/7/2011 Grub/XP/Vista Bootloader - Ubuntu Fo…
Next, using EasyBCD, I configured the Vista bootloader to show boot option of Microsoft
Vista and Linux.
What I prefer is to have only one boot option screen that is second one (Which i suppose is
Windows Vista's bootloader), at the same time I want to keep Linux partition intact.
Simply putting it, I want to get rid of Grub bootloader, without getting rid of Linux partition.
What is the standard procedure to install Linux, on a system with MS Vista, without
disturbing the bootloader?
thanks in advance.
cheers!!
Nice tutorial there, I will work on it, but, I am not sure if the situation I find myself is
same or not.
On the initial boot screen (Grub), I see option of selecting Linux or Windows.
Join Date: Oct 2007
Next, using EasyBCD, I configured the Vista bootloader to show boot option of Microsoft
Location: Auckland, New
Vista and Linux.
Zealand
My beans are hidden!
Currently, this is how the boot sequence is on my notebook.
Ubuntu 10.10 Maverick
->Initial boot screen : Grub (1-Linux, 2-Windows Vista)
Meerkat
->Once I select Windows, I get is another boot selection option 1-Microsoft Vista, 2-
Linux.
What I prefer is to have only one boot option screen that is second one (Which i
suppose is Windows Vista's bootloader), at the same time I want to keep Linux
partition intact.
Simply putting it, I want to get rid of Grub bootloader, without getting rid of Linux
partition.
What is the standard procedure to install Linux, on a system with MS Vista, without
disturbing the bootloader?
thanks in advance.
cheers!!
Ok, the easiest thing to do is to use easybcd to remove the option of linux, then to reinstall
the grub bootloader, which should give you your one bootloader screen, and still allow you
to access both ubuntu and w indows.
Your other option is to reinstall the vista bootloader, and edit the grub so it only has one
option.
It is up to you
__________________
Quote:
First they ignore you, then they laugh at you, then they fight you, then you win ~
Mahatma Gandhi
I tried the above thread to reload the Ubuntu grub - no joy, still get the Error 22. So I loaded
the Ubuntu CD and ran fdisk -l:
I'm not an expert, but to me, I don't see where there's a Ubuntu partition here...am I
missing something?
ubuntuforums.org/showthread.php?t… 5/7
3/7/2011 Grub/XP/Vista Bootloader - Ubuntu Fo…
Haha, cool, happy to help again. I will be making a few screencasts to accompany this post,
so that should be done in a few days.
__________________
Quote:
Join Date: Oct 2007
Location: Auckland, New First they ignore you, then they laugh at you, then they fight you, then you win ~
Zealand Mahatma Gandhi
My beans are hidden!
Ubuntu 10.10 Maverick
Meerkat
Any thoughts? Im still learning this stuff, any help is greatly appreciated. Soon i'll hopefully
be giving advice back! Thanks
__________________
"if he dies, he dies" - nemanja vidic
ubuntuforums.org/showthread.php?t… 6/7
3/7/2011 Grub/XP/Vista Bootloader - Ubuntu Fo…
Bookmarks
Tags
Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump
Forum Rules Tutorials & Tips Go
vBulletin ©2000 - 2011, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop
Project. lingonberry
ubuntuforums.org/showthread.php?t… 7/7
ERROR: undefined
OFFENDING COMMAND:
STACK: