LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 09-20-2004, 12:22 PM   #1
Permaximus
Member
 
Registered: Sep 2004
Distribution: Slackware
Posts: 61

Rep: Reputation: 15
Editing Grub


Hello. I have a question about my bootloader. I have searched the forums and haven't found anything useful so I decided to go ahead and post my problem. I have two hard drives, a win98 and a rh9. The rh9 is set to master and the 98 to slave. I installed Linux before the win98 drive was on the machine so the boot loader does not recognize the drive. I need to know how to edit the boot loader so I can select my boot device. I tried reinstalling GRUB from the redhat cd, but it wouldn't do it for some reason. I was going to try to edit /boot/grub/grub.conf, but I dont' know what to edit it with or what code to add. Any help is much appreciated. Thank you.
 
Old 09-20-2004, 12:40 PM   #2
ieuuk
Member
 
Registered: Aug 2004
Location: England, United kingdom
Distribution: Fedora 10 + Cent OS 5.3
Posts: 65

Rep: Reputation: 15
in redhat i think there is an option to adjust the bootloader settings off the start button... cant remember where abouts tho.
with that you should be able to add entrys saying that win 98 is on hda and rh on hdb
 
Old 09-20-2004, 06:39 PM   #3
Ateo
Member
 
Registered: Sep 2004
Location: http://longbeach.ca.u$
Distribution: Ubuntu,Gentoo, OSX
Posts: 136

Rep: Reputation: 15
Installing Windows after linux is somewhat tricky sometimes but it can be done. Some simple thing you might want to check/do....

1. Find out what partition your bootloader is installed on
2. Make sure that the partition that has your bootloader installed on it is set to be the "active partition". This is done via fdisk.
3. You might have to run grub setup again (as opposed to reinstalling grub).
 
Old 09-20-2004, 10:54 PM   #4
Permaximus
Member
 
Registered: Sep 2004
Distribution: Slackware
Posts: 61

Original Poster
Rep: Reputation: 15
I am not having problems with the boot loader. It loads fine. I just dont know how to edit it. I looked for anything in the "start menu" and didnt find anything about the boot loader. I have booted from the rh cd at least three times to try to both update and reinstall grub, and then to install Lilo over it. It said the kernel wasnt updated and no changes had been made. But I will give it another shot. Thanks.
 
Old 09-21-2004, 12:54 AM   #5
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
I think running

grub-install hda1

will reconfigure grub.

then you have to edit the /boot/grub/grub.conf file and add the following to the bottom

title Windows 98
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1
makeactive
boot
 
Old 09-21-2004, 04:31 AM   #6
Ateo
Member
 
Registered: Sep 2004
Location: http://longbeach.ca.u$
Distribution: Ubuntu,Gentoo, OSX
Posts: 136

Rep: Reputation: 15
You won't find anything about grub in any start menu from any DE/WM. It's a file in your /boot directory so you definately need to mount your /boot directory to configure grub.

Since you say grub is installed, you should be able to run the "grub" (as root and after mounting /boot) command that puts you inside the grub configuration environment to make any edits. You also need to make sure that you set the partition that has your bootloader to active via fdisk.
 
Old 09-21-2004, 09:55 AM   #7
ieuuk
Member
 
Registered: Aug 2004
Location: England, United kingdom
Distribution: Fedora 10 + Cent OS 5.3
Posts: 65

Rep: Reputation: 15
ohhh yeah, i remember, all you can change in the option on the start menu is how long the boot loader is up.

in webmin on my mandrake box you can adjust the lilo boot loader and there is an option to adjust a grub on but i dont have it installed.
 
Old 09-21-2004, 11:30 PM   #8
Permaximus
Member
 
Registered: Sep 2004
Distribution: Slackware
Posts: 61

Original Poster
Rep: Reputation: 15
Thanks Jax, thats just what I needed...only...how do you edit the file? I dont know what viewer to open it with. Thanks again.
 
Old 09-22-2004, 12:04 AM   #9
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
any viewer will do.
You can use vi like this

vi /boot/grub/grub.conf


or kedit like this

kedit /boot/grub/grub.conf

or any other editor. Only use vi if you know what you are doing though because it is a text based editor and not very user friendly.

if you dont have kedit just go into the menu and look for any other text editor like gedit or something.

ALSO: you will have to be logged on as root to change this file. So log in as the root account or change to the root account by typing

su

in a terminal and putting the root password in.

Last edited by jax8; 09-22-2004 at 12:05 AM.
 
Old 09-22-2004, 09:14 AM   #10
Permaximus
Member
 
Registered: Sep 2004
Distribution: Slackware
Posts: 61

Original Poster
Rep: Reputation: 15
Thank you! You're a saint!
 
  


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
Grub Editing hoe Linux - General 2 11-07-2004 06:45 PM
Editing Grub onelung02 Suse/Novell 3 10-27-2004 03:45 AM
need help editing grub orionpc84 Linux - Newbie 5 09-11-2004 11:50 PM
editing grub pcmatt Linux - General 7 11-21-2002 10:49 PM
Grub: Editing Kryptow Linux - Newbie 4 09-05-2002 01:47 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration