LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-10-2004, 09:13 PM   #1
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Rep: Reputation: 31
Moving grub boot loader


I have WinMe and RH8 in my laptop. I would like to make grub my default boot loader. This is my grub.conf file:

#boot=/dev/hd0,0
default=4
timeout=10
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-14)
root (hd0,0)
kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/
initrd /boot/initrd-2.4.18-14.img
title WinMe
rootnoverify (hd0,0)
chainloader +1

How do I make RH8 my default boot loader. Please help me, I have tried many times with no success.

Thanks
 
Old 01-12-2004, 05:28 AM   #2
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30
Howzit

u have two ways in doing this:

1. the config file u have is noe all correct but the entries in the following order...

timeout=10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-14)
root (hd0,0)
kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/
initrd /boot/initrd-2.4.18-14.img

title WinMe
rootnoverify (hd0,1)
chainloader +1

The (0,1) means the following the first digit represents the driver if they r primary master or salve (0) primary master (1) Primary slave (2) Secondary Master (3) Secondary Slave.

The (0,1) the second digit represents the partion number 0= 1st partion etc

The above frub.conf could work for u and it may not because I DONīT KNOW YOUR FULL SETUP, that is why I have given u then explaination so that u may fill in the blanks.

2. The other way of doing this is booting into rescue mode or with bootdisk and type the cmd /sbin/grub-install and it will reconfigure grub for u again.

Good luck

chow
 
Old 01-12-2004, 10:21 PM   #3
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Original Poster
Rep: Reputation: 31
how to boot into rescue mode

So, how do you boot into rescue mode in order to accomplish this task?
And how do you make grub the default boot loader?
Thank you very much.
 
Old 01-12-2004, 10:47 PM   #4
r.stiltskin
Member
 
Registered: Oct 2003
Location: USA
Distribution: Xubuntu, Arch
Posts: 231

Rep: Reputation: 31
Why do you want rescue mode? Can you boot normally now? What is your computer's current configuration & boot sequence? What bootloader are you using now? etc etc
It's hard for anyone to give useful advice without knowing these things.
 
Old 01-12-2004, 11:11 PM   #5
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Original Poster
Rep: Reputation: 31
Following Advice

I was just following the advice of my friend from portugal. But, what type of info. specifically do you need in order to give me a hand. I'm kind of new to Linux, please help. (I used partition magic to partition my HD. I made the Win partition primary and linux logical, then I changed linux to primary partition too but I have not applied the changes I was given)--I don't know
if this helps--
Thank you for your help all...
 
Old 01-12-2004, 11:21 PM   #6
r.stiltskin
Member
 
Registered: Oct 2003
Location: USA
Distribution: Xubuntu, Arch
Posts: 231

Rep: Reputation: 31
What exactly are you trying to accomplish?

Right now, is WinMe located on your first (or only) primary partition?

Is Linux on the first logical partition (drive) in your extended partition?

What is your bootloader now? Grub? or does the computer just boot immediately to Windows?

Can you boot Linux at all? With a floppy?

Can you boot Windows?

Did you simply not install any Linux bootloader to the hard disk?

Your grub.conf looks correct as is, and there's nothing wrong with the way your disk is organized and no reason to change that (mine is organized similarly, but a bit more complicated, and it works just fine). The problem is elsewhere; maybe we can figure it out after you answer these questions.

Last edited by r.stiltskin; 01-12-2004 at 11:55 PM.
 
Old 01-13-2004, 12:05 AM   #7
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Original Poster
Rep: Reputation: 31
Everything is the same!

Yes! just like the first message I posted, that is how the grub file looks like. I was messing with it a couple of days ago trying to solve the task. Since then I have made no changes. The default boot loader is WinMe. Grub is installed and I can boot linux using a boot disk, but I wanted to boot directly without using a boot disk. Grub is the loader I selected at the time of installation.

Thanks
 
Old 01-13-2004, 12:33 AM   #8
r.stiltskin
Member
 
Registered: Oct 2003
Location: USA
Distribution: Xubuntu, Arch
Posts: 231

Rep: Reputation: 31
The second line of your grub.conf looks wrong. The number there just designates which one of the "titles" listed below there is going to boot by default. Since you only have two choices listed, default=0 would boot Linux, and default=1 would boot WinMe.

Also, the sixth line is wrong. It should say
root (hd0,4)
to indicate that Linux is at the beginning of your extended partition.

Other than that, you should only have to install grub to the mbr of your disk.

If you start Linux with your boot disk, login as root and enter this command:

/sbin/grub-install /dev/hda

that should do the trick. The only thing that worries me is whether that will leave anything at the beginning of your Linux partition that shouldn't be there (even if it does, it may not matter). I think it will work.

Anyway, that's what I would do. If you're willing to take a chance try it.

PS: if for some reason this doesn't work, you can reboot with a Windows boot floppy, and type
fdisk /mbr
and that will reinstall the windows bootloader as the mbr.

Last edited by r.stiltskin; 01-13-2004 at 12:55 AM.
 
Old 01-13-2004, 07:45 PM   #9
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Original Poster
Rep: Reputation: 31
Thanks

I have another curiosity. Now that there is a new version of RH Enterprise WS, is it worth it getting it and stop using RH8 or 9?

Thanks, I would try the last suggestion, but how about if my RH8 is not an extended partition and is a primary partition would it work? I did this using Partition Magic. Should I make it back to extended?

Thanks
 
Old 01-13-2004, 10:24 PM   #10
r.stiltskin
Member
 
Registered: Oct 2003
Location: USA
Distribution: Xubuntu, Arch
Posts: 231

Rep: Reputation: 31
Quote:
Now that there is a new version of RH Enterprise WS, is it worth it getting it and stop using RH8 or 9?
Not unless you're ready to pay them $179 a year. As far as I know, Enterprise isn't free. But for RH9, updates will be available on Red Hat Network until "at least October 31, 2004". After that, I guess we have to switch to Fedora if we want to keep an up-to-date version of Red Hat.
http://fedora.redhat.com/
Or, you could switch right now. I don't know much about it but there's a lot of info on that site.

I'm planning to try out Gentoo and Linux From Scratch also, especially LFS 'cause I want to get more into the guts of linux.


Quote:
if my RH8 is not an extended partition and is a primary partition would it work?
So now WinMe is your first primary partition and your Linux root directory (/) is on your second primary partition?
Where is /boot?
Where is /home?
Where is your swap directory?

Did you reinstall linux, or just move it with Partition Magic?
 
  


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
Moving GRUB into WinMe boot loader cucolin@ Linux - Software 7 03-03-2004 01:43 PM
Moving boot loader cucolin@ Linux - Laptop and Netbook 1 12-29-2003 11:02 AM
moving boot loader atomicx Linux - General 2 10-30-2003 12:55 AM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 02:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:40 PM.

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