Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 14-07-2006, 07:08 PM   #1 (permalink)
Alpha Geek
 
saurabh.sauron's Avatar
 
Join Date: Jan 2006
Location: Middle Earth
Posts: 503
Default GRUB related problem


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
saurabh.sauron is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 14-07-2006, 07:22 PM   #2 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,536
Post Re: GRUB related problem

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:
http://http://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"
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org

Last edited by praka123; 14-07-2006 at 07:30 PM.
praka123 is offline  
Old 14-07-2006, 10:46 PM   #3 (permalink)
GaurishSharma.com
 
gary4gar's Avatar
 
Join Date: May 2005
Location: Jaipur
Posts: 4,116
Default Re: GRUB related problem

also check the ubuntu wiki as it is more revalant b'cos u have a dapper.
https://help.ubuntu.com/community/Re...tallingWindows
gary4gar is offline  
Old 16-07-2006, 09:53 PM   #4 (permalink)
Wise Old Owl
 
JGuru's Avatar
 
Join Date: Dec 2005
Location: Space-time continuum
Posts: 1,646
Default Re: GRUB related problem

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!!
JGuru is offline  
Old 16-07-2006, 10:43 PM   #5 (permalink)
GaurishSharma.com
 
gary4gar's Avatar
 
Join Date: May 2005
Location: Jaipur
Posts: 4,116
Default Re: GRUB related problem

^^^
i think it does not work for ubuntu.atleast did'nt worked for me the wiki page is the best for this purpose
gary4gar is offline  
Old 16-07-2006, 11:13 PM   #6 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: GRUB related problem

grub-install (hd0,2) worked for me.
Please note: - I have installed ubuntu on hda3.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 16-07-2006, 11:33 PM   #7 (permalink)
Wise Old Owl
 
JGuru's Avatar
 
Join Date: Dec 2005
Location: Space-time continuum
Posts: 1,646
Default Re: GRUB related problem

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.
JGuru is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by topgear

Advertisement




All times are GMT +5.5. The time now is 08:52 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2