GRUB related problem

Status
Not open for further replies.

saurabh.sauron

Ambassador of Buzz
i recently installed ubuntu dapper. then formatted C:/ drive and installed XP again. now the MBR was erased and GRUB was lost. how do i reinstall GRUB. Dapper has GUI installation. so how do i reinstall GRUB.
thnx
 

praka123

left this forum longback
first thing is you need to read about installing GRUB manually by reading
Code:
info grub
just boot with live cd and open a terminal and as super user or sudo grub .
then in a terminal 'sudo grub'.
This is the link to the GRUB manual that will explain how to install GRUB. Using grub-install is less safe than installing GRUB natively.
read more here:
**www.gnu.org/software/grub/manual/grub.html#Installing-GRUB-natively

be aware of ur partns,ie your root partn number etc.. use setup(hd0) if u install grub into MBR
for finding partn names use "fdisk -l"
 
Last edited:

gary4gar

GaurishSharma.com
also check the ubuntu wiki as it is more revalant b'cos u have a dapper.
*help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows
 

JGuru

Wise Old Owl
Since you have installed Windows after installing Ubuntu, Windows will overwrite
GRUB with it's bootloader. Now from the BIOS set the 'First Boot device' as 'CD-ROM'
Insert your Ubuntu 6.06 ( Dapper Drake) CD and boot from it. Now highlight 'Rescue
a Broken System' (Recovery) line. Press Enter key.Select your language, keyboard,
and let the installer detect your Network . You will be presented with a list of available
partitions. Open a Terminal Window , create a Root account:
$ sudo passwd root
(Enter password)
(Enter password)

Now login as Root:
$ su -
(Enter password)
Now see the partitions on your disk , type :
# fdisk -l
This will display the partitions. Windows partitions FAT32 ( will showup as vfat)
and NTFS will showup as NTFS.
For eg., type:
# grub-install /dev/hda2 ( Note: In your case it may vary!!)

Wait for the process to finish. It would take a few minutes. A dozens of lines would
appear on the screen. Check whether you find the text "Installation finished".
If you do, you can restart you computer by typing 'exit' Eject the CD, reboot.
This will rectify your problem. Start using Ubuntu or Windows!!
 

gary4gar

GaurishSharma.com
^^^
i think it does not work for ubuntu.atleast did'nt worked for me the wiki page is the best for this purpose
 

JGuru

Wise Old Owl
It will definitely work. Provided you do things mentioned here properly!!
This is what even the Ubuntu guys recommend in case GRUB ( Ubuntu bootloader)
is over-written by Windows. It should work for everyone.
 
Status
Not open for further replies.
Top Bottom