How do I edit the OS loader (grub.conf ?) in RedHat 9?

abovewood

Platinum Member
Oct 9, 1999
2,424
6
81
I am new to Linux and can't find out how to do this.

I have Win XP, Win 2k, and RH9 installed on the system.
At start up, it gives 3 choices:

1. redhat 9 (works fine)
2 Win2k (which doens't work)
3 XP (works fine, and let me choose win2k or XP after I pick this option.)

now I want to remove the 2nd choice from the list.

thanks in advance.
 

randalee

Senior member
Nov 7, 2001
683
0
0
1. Become root. su - NOTE the hyphen is IMPORTANT TO ALWAYS DO!
2. Edit grub.conf with your favorite editor. vi /etc/grub.conf or else gedit /etc/grub.conf If you don't know how to use vi, we can give you a few tips.
3. It should be fairly easy to see each entry on your boot menu in the grub.conf file. Perhaps "comment out" the Windows 2000 lines (probably like 3-5 lines worth?) with a hash # (pound or number sign, called a hash) instead of deleting in case you run into trouble later.

That should be it! Let me know if you have other questions.

Randy
 

abovewood

Platinum Member
Oct 9, 1999
2,424
6
81
thanks.

Now I can't go to root. don't have the permissions.???

I only created one account. How do I get permission?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Then when you type 'su -' enter that password and you'll be given a root shell.
 

Sunner

Elite Member
Oct 9, 1999
11,641
0
76
And a more general tip, don't give out your root password on public forums ;)
 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
and a general security tip...don't allow root access to ssh/telnet, esp. if you are giving it out on public forums ;)


su -
login
run "passwd" and give it a new password, avoid common words, kids names, etc. Use UppERcaSE and lowercase. Use letters and numbers.