LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-04-2005, 11:14 AM   #1
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Rep: Reputation: 30
Question Grub boot loader problem


I've installed grub boot loader into the first sector of the partition. My system currently have Win2003 and xp. Each time i boot i have windows selection menu. But how am i going to access my RHL 9.0 ? Please advise. Thanks

Regards
Daniel
 
Old 05-04-2005, 11:46 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
u need to install the bootloader on the MBR

regards
 
Old 05-04-2005, 12:10 PM   #3
0perat0r
Member
 
Registered: Jul 2004
Location: New Jersey, US
Distribution: Red Hat Linux WS version 3
Posts: 126

Rep: Reputation: 15
If you want GRUB to handle your boot loading, you will have to reinstall it so that it is GRUB doing the work, not the Windows boot loader. Please see http://www.gnu.org/software/grub/man...l#Installation . I had some issues with GRUB, so I just recently decided to simply boot into RH off of a floppy. The only problem with this is (to my knowledge) I have to type out several lines to actually boot the OS after GRUB is loaded from the floppy, and I get the prompt:

grub> root (hd1,0)

grub> kernel /vmlinuz-2.4.21-15.0.4.EL ro root=LABEL=/ hdd=ide-scsi

grub> initrd /initrd-2.4.21-15.0.4.EL.img

grub> boot

You can see how this might be agitating, but I do not know if there is a way to automatically boot from the floppy directly to the OS, because no one has answered my post from earlier this week.

If you reinstall GRUB successfully, you will see all 3 OS choices in the GRUB menu, and the Windows boot loader will no longer be used. Otherwise, you might need some method whereby you can get back to your Linux disto, like with a Knoppix CD. For more information, please see this thread:

http://www.linuxquestions.org/questi...hreadid=316775
 
Old 05-04-2005, 07:41 PM   #4
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Hi, if i want to use windows as boot loader, what should i do ? what is the easiest way to make dual boot ? Thanks

Regards
Daniel


Quote:
Originally posted by 0perat0r
If you want GRUB to handle your boot loading, you will have to reinstall it so that it is GRUB doing the work, not the Windows boot loader. Please see http://www.gnu.org/software/grub/man...l#Installation . I had some issues with GRUB, so I just recently decided to simply boot into RH off of a floppy. The only problem with this is (to my knowledge) I have to type out several lines to actually boot the OS after GRUB is loaded from the floppy, and I get the prompt:

grub> root (hd1,0)

grub> kernel /vmlinuz-2.4.21-15.0.4.EL ro root=LABEL=/ hdd=ide-scsi

grub> initrd /initrd-2.4.21-15.0.4.EL.img

grub> boot

You can see how this might be agitating, but I do not know if there is a way to automatically boot from the floppy directly to the OS, because no one has answered my post from earlier this week.

If you reinstall GRUB successfully, you will see all 3 OS choices in the GRUB menu, and the Windows boot loader will no longer be used. Otherwise, you might need some method whereby you can get back to your Linux disto, like with a Knoppix CD. For more information, please see this thread:

http://www.linuxquestions.org/questi...hreadid=316775
 
Old 05-04-2005, 07:53 PM   #5
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
I've installed windows, but how to use windows as boot loader? Thanks

Regards
Daniel


Quote:
Originally posted by masand
u need to install the bootloader on the MBR

regards
 
Old 05-04-2005, 10:57 PM   #6
0perat0r
Member
 
Registered: Jul 2004
Location: New Jersey, US
Distribution: Red Hat Linux WS version 3
Posts: 126

Rep: Reputation: 15
I'm not sure how this is accomplished, as I've never tried it before, but this link may help:

http://www.pperry.f2s.com/linux-dualboot-win.htm
 
Old 05-04-2005, 11:47 PM   #7
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
there is this utility called loadlin
this might help u

http://elserv.ffm.fgan.de/~lermen/manual.txt

regards
 
Old 05-05-2005, 01:07 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
The link as posted by 0perat0r is the generally accepted way of doing what was requested.
A bit verbose, but seems to cover things o.k.

In short, you need to copy the boot sector record of the partition you installed grub in to the Windows boot partition (i.e. C: ), and update boot.ini to reflect the filename you chose (can be arbitrary).
 
Old 05-05-2005, 06:45 AM   #9
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Quote:
Originally posted by 0perat0r
I had some issues with GRUB, so I just recently decided to simply boot into RH off of a floppy. The only problem with this is (to my knowledge) I have to type out several lines to actually boot the OS after GRUB is loaded from the floppy, and I get the prompt:
I also faced the same problem. However I got away by clearing MBR . And then reinstalling Ubuntu from its CD.

--Prasanta

Last edited by prasanta; 05-05-2005 at 06:48 AM.
 
Old 05-05-2005, 09:59 AM   #10
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Hi, can you show me an example how to copy the boot partition to C boot partition ? Thanks

Regards
Daniel


Quote:
Originally posted by syg00
The link as posted by 0perat0r is the generally accepted way of doing what was requested.
A bit verbose, but seems to cover things o.k.

In short, you need to copy the boot sector record of the partition you installed grub in to the Windows boot partition (i.e. C: ), and update boot.ini to reflect the filename you chose (can be arbitrary).
 
Old 05-05-2005, 04:04 PM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Just read and follow the instructions in the referenced post.
Also plenty of discussion previously in LQ - a search will find it.
 
Old 05-05-2005, 05:22 PM   #12
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Hi, i've changed my mind about using windows boot loader , so i use grub boot loader. I thought i have to modify grub.conf after reinstalling with windows but nothing happened, now i can boot using linux and windows also. Why is that ? My win is win2003 server. Just curious.

Regards
Daniel


Quote:
Originally posted by 0perat0r
I'm not sure how this is accomplished, as I've never tried it before, but this link may help:

http://www.pperry.f2s.com/linux-dualboot-win.htm
 
Old 05-05-2005, 07:36 PM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Because you installed grub after windows the RH installer (Anaconda ??) handled it for you.
Note this is a feature of Anaconda, not grub itself. A (native) grub install will not by itself find any windows installs - or other Linux's for that matter.

In your case, if you (re-)install Windows again it will re-write the MBR and you will lose access to grub, and Linux.
Simply re-install from RH recovery mode booted off the first (I think) CD.
 
Old 05-05-2005, 09:14 PM   #14
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Previously , i installed Win2000 server and linux and i have to modify the grub.conf . I also install grub after windows.

Regards
Daniel


Quote:
Originally posted by syg00
Because you installed grub after windows the RH installer (Anaconda ??) handled it for you.
Note this is a feature of Anaconda, not grub itself. A (native) grub install will not by itself find any windows installs - or other Linux's for that matter.

In your case, if you (re-)install Windows again it will re-write the MBR and you will lose access to grub, and Linux.
Simply re-install from RH recovery mode booted off the first (I think) CD.
 
  


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 05:45 PM
SUSE 10.0- GRUB boot loader problem soc_kev SUSE / openSUSE 1 10-25-2005 06:52 PM
Grub boot loader problem wizardzx2 Linux - Software 3 06-23-2004 06:20 PM
GRUB boot loader problem bukich Linux - General 3 06-15-2004 01:22 AM
GRUB boot loader problem with Windows 2000 bukich Linux - General 1 06-11-2004 06:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:57 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
Open Source Consulting | Domain Registration