LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-28-2004, 12:26 PM   #1
ilyash
Member
 
Registered: Oct 2003
Location: NY
Distribution: Redhat 9.0
Posts: 36

Rep: Reputation: 15
Boot loader setup .. please help!


Hi, i recently had a dual boot of win xp, and redhat 9.0
i had to reinstall win xp, so i told the setup not to format anything, and just install over the previous version of XP

turns out, win xp decides to remove my grub

i dont want to reinstall redhat, so is there anyway to get the bootloader back?

i heard that you can change something in boot.ini

but what should i write in there?

this is my hard drive layout:
HD 1 : 80gb western digital 8mb cache
++++++++++++/dev/hda
++++++/dev/hda1 -> NTFS -> Windows -> 64GB
++++++/dev/hda2 -> EXT3 -> Linux -> 102MB
++++++Free Space -> Free -> 196MB
++++++/dev/hda3 -> EXT3 -> 10GB
++++++Free Space -> Free -> 1GB
2nd drive.. Seagate Barracuda 20gb [used as only a side windows drive, no OS on it]
++++++++++++/dev/hdb
++++++/dev/hdb1-> VFAT -> 14GB

This is my BOOT.ini right now:
http://www.420th.com/temp/bootINI.jpg


Thank you..
 
Old 01-28-2004, 12:40 PM   #2
masinick
Member
 
Registered: Apr 2002
Location: Clinton Township, MI
Distribution: Debian, antiX, Kubuntu, Xubuntu, and many others
Posts: 573
Blog Entries: 14

Rep: Reputation: 44
GRUB can be reinstalled using grub-install, use boot disk

IF you have a boot floppy for Red Hat, which is always a good idea, you're in luck. If so, boot to Red Hat, then login as root, then run the command

grub-install /dev/hda (assuming you want the Master Boot Record, MBR, on the first disk). You can also run grub-install /dev/hda2 to put a spare copy of the boot image on the Red Hat partition - I often keep two or three copies of boot blocks and boot programs.

You can also perform a rescue boot operation from the CD if you don't have a boot floppy.

Finally, you can also modify your boot.ini file to add an entry for Red Hat, if you'd prefer to use a Windows boot manager instead of using Red Hat's GRUB boot manager.

Last edited by masinick; 01-28-2004 at 12:41 PM.
 
Old 01-28-2004, 12:43 PM   #3
ilyash
Member
 
Registered: Oct 2003
Location: NY
Distribution: Redhat 9.0
Posts: 36

Original Poster
Rep: Reputation: 15
i dont mind using the windows boot thing..
what would i write in there?
i dont have a boot floppy.. floppy drive is broken.. need to get a new one
although i like the redhat grub better.. [it looks nice lol]
so how would i setup grub from the linux redhat 9.0 cd?
please give me a step-by-step tutorial
im really lost when it comes to boot-loaders
thanks again, Ilya
 
Old 01-28-2004, 01:18 PM   #4
ilyash
Member
 
Registered: Oct 2003
Location: NY
Distribution: Redhat 9.0
Posts: 36

Original Poster
Rep: Reputation: 15
please? someone?
i really need to get linux up and running
 
Old 01-28-2004, 01:52 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,932

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
This question has been answered several times on LinuxQuestions. I know because I've provided the answers. Have you searched this website yet? As a newbie it can be difficult to find answers because you do not know exactly what to search for. However difficult, like everthing else it requires some effort instead of whining that nobody is answering your question.

To reinstall grub to MBR like the original OS install:

Boot the 1st install CD to rescue mode. This will mount your root partition at /mnt/sysimage.

Execute the following comands:
chroot /mnt/sysimage (/ will now be /mnt/sysimage)
grub-install

Last edited by michaelk; 01-28-2004 at 02:00 PM.
 
Old 01-28-2004, 02:25 PM   #6
ilyash
Member
 
Registered: Oct 2003
Location: NY
Distribution: Redhat 9.0
Posts: 36

Original Poster
Rep: Reputation: 15
thank you..
it worked...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wireless Keyboard not working to select boot options (Grub boot loader) psrini_vasan Fedora 7 12-16-2009 06:45 PM
Software RAID 1 setup on CentOS using Grub boot loader kumarsundaram Linux - Software 1 11-30-2005 01:57 PM
To load/boot Red Hat Enterprise Linux 4 WS from Microsoft's Boot Loader (NTLDR) dhawal Linux - General 1 09-25-2005 08:07 AM
Grub boot loader menu shows two linux boot options pramos Linux - Newbie 3 09-13-2004 12:40 AM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 03:22 AM


All times are GMT -5. The time now is 10:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration