Home User CP Browse Members Calendar Register Today!  
Get New posts Faq / Help?
   

Not A Member Yet? Register today and become part of the community.

Go Back   > PC Technology Zone > Linux, BSD, other *nixes & Open Source Software

Linux, BSD, other *nixes & Open Source Software Talk about open source software for your desktop, server, related news etc..

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-30-2007, 10:02 AM
bizzard
Status: Offline
Senior Member
 
Join Date: Jan 2006
Location: A small remote village in Kerala, India
Posts: 383
bizzard is on a distinguished road
Send a message via MSN to bizzard Send a message via Yahoo to bizzard
Default How to reinstall GRUB

Many of those who use dual booting systems with Windows and Linux must have come across GRUB error. Its easy to reinstall GRUB if you have a bootable GRUB floppy.
Here is how to reinstall grub in a Debian system.

  1. Creating GRUB floppy: It will be better to have a GRUB floppy everytime with you. To create one, after loading Linux, insert a floppy in drive and type
    grub-floppy /dev/fd0
  2. Installing GRUB: Configure system to boot first from floppy and insert the GRUB floppy.
    In the grub> prompt, type the following commands.
    grub> root (hd0, x)
    here x refers to your Linux installed partition. You can find it by pressing the TAB key after root (hd0,
    grub> kernel /boot/vmlinuz <Kernel Version> root=/dev/hda<x+1>
    Kernel version is automatically detected by pressing TAB key after typing grub> kernel /boot/vmlinuz If the value of x in the previous step was 2, you must type 3 in the place of x+1

    grub> initrd /boot/initrd <Kernel Version>
    grub> boot
  3. Now, you will be able to boot to the pre installed Linux in your system. After logging in as root, type the following in root terminal.

    grub-install /dev/hda
After this, you will be able to access the Linux installed in your system from the boot menu
__________________
At last a domain for myself.... www.tvmanukrishnan.uni.cc

Check my personal blog @
blog.tvmanukrishnan.uni.cc

My pet project:
Reply With Quote

  #2 (permalink)  
Old 09-01-2007, 12:38 AM
Doomed
Status: Offline
Member
 
Join Date: Aug 2007
Posts: 76
Doomed is on a distinguished road
Default

Also, you may be able to reinstall grub of the disk your distro came on, I know Suse is able to repair grub.

On a side note, for those who have come across a grub error, because linux has died and they want to boot into windows, you can still boot into windows by entering (hd0 is the drive you've got windows on and this time the x is the windows partition)

Code:
grub> root (hd0, x)

grub> chainloader +1
grub> boot
and that's it, the computer should boot into windows.
Reply With Quote

  #3 (permalink)  
Old 09-22-2007, 04:19 AM
bizzard
Status: Offline
Senior Member
 
Join Date: Jan 2006
Location: A small remote village in Kerala, India
Posts: 383
bizzard is on a distinguished road
Send a message via MSN to bizzard Send a message via Yahoo to bizzard
Default

Quote:
grub> root (hd0, x)

grub> chainloader +1
grub> boot
yeah, the above command do work. But, for a permanent solution, you have to reinstall the GRUB boot loader. If you want only to access windows, with the Windows XP installation CD, choose the repair option and type the command "fixmbr". It will reinstall the boot configuration.
__________________
At last a domain for myself.... www.tvmanukrishnan.uni.cc

Check my personal blog @
blog.tvmanukrishnan.uni.cc

My pet project:
Reply With Quote

Reply


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
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Important: Get grub (in debian linux) to boot cd? shaunyshoo Linux, BSD, other *nixes & Open Source Software 0 06-18-2007 09:41 PM


All times are GMT -7. The time now is 05:25 AM.

Skin Design By vBSkinworks



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

Sponsored by Web Hosting


Profuse Solutions LLC

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79