Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 17-09-2004, 11:49 AM   #1 (permalink)
In The Zone
 
firewall's Avatar
 
Join Date: Mar 2004
Location: Kolkata - INDIA
Posts: 301
Default How to restore GRUB


It's happened to almost every GNU/Linux and Windows dual boot user at some point: You have a nice installation GNU/Linux cross-booted with Windows. So far so good. But then, at some point, you reinstall Windows, perhaps because you upgraded to a new version, or perhaps you just did it to "clean up" Windows, reinstalling the original system files to make it a little more stable. When you reboot, however, you'll find that if you had LILO running from your hard disk's MBR, it has been killed, and Windows has claimed the MBR as its own. How will you reinstall your boot manager so you can get into GNU/Linux?

here is small tutorial on how to reinstall your gnu boot loader in that case. I chose GRUB here as now a days it's very popular and powerful too.
----

Boot into the rescue mode using install CD1 by typing "linux rescue" at the boot prompt. When it asks you if you want it to find your installation and mount it, let it by selecting "Continue". Once you get to the sh prompt chroot into you installation with:

# chroot /mnt/sysimage

If the disk you boot from is /dev/hda then you should be able to reinstall grub with:

# grub-install /dev/hda

Just remember to exit the chroot'ed shell before you reboot. If you reboot by "Ctrl-Alt-Del" the installer will unmount your partitions. Although it probably wouldn't hurt to try to unmount as many as you can yourself with something like:

# umount /dev/hd?[1-9]*


-----
__________________
www.aloke.info
firewall is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 17-09-2004, 11:58 AM   #2 (permalink)
Human Spambot
 
tuxfan's Avatar
 
Join Date: Feb 2004
Location: Mumbai
Posts: 2,653
Default

Cool!! Some newbie has a thread here on the same problem. Why not post it there too!! Or shall I quote you there?
__________________
:: Free hosting and free domain names available in special cases. Conditions apply ::
tuxfan is offline  
Old 17-09-2004, 02:00 PM   #3 (permalink)
Right Off the Assembly Line
 
Join Date: Aug 2004
Posts: 4
Default

very cool!! I had the same problem once and because of the problem i did reinstall whole linux...
hope that won't happen again...
thouchin is offline  
Old 17-09-2004, 02:41 PM   #4 (permalink)
In The Zone
 
firewall's Avatar
 
Join Date: Mar 2004
Location: Kolkata - INDIA
Posts: 301
Default

Quote:
Originally Posted by tuxfan
Why not post it there too!! Or shall I quote you there?
Oh ! i missed that....

btw just redirect that person to this thread.... simple...

__________________
www.aloke.info
firewall is offline  
Old 17-09-2004, 02:53 PM   #5 (permalink)
Coming back to life ..
 
it_waaznt_me's Avatar
 
Join Date: Nov 2003
Location: A bit closer to heaven
Posts: 1,997
Default

Thanx ...
__________________
Sleight of hand and twist of fate...
On a bed of nails she makes me wait...
And I wait without you ...
With or without you ..
----
Batty = Too Busy Now !!!
it_waaznt_me is offline  
Old 18-09-2004, 12:23 AM   #6 (permalink)
Salieri Family
 
hard_rock's Avatar
 
Join Date: Feb 2004
Location: Somewhere in Internet.......Have dynamic IP address
Posts: 357
Default

I think Tuxfan, ur talkin abt me...........I have similar problem with grub loader..........Thanx 4 ur solution yaar.......
__________________
A person who wants everything in his life... May end up with nothing at all
-Tommy[Mafia]
hard_rock is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Krow
- by abhidev
- by topgear
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 07:02 AM.


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

Search Engine Optimization by vBSEO 3.3.2