LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-08-2003, 08:30 PM   #1
stupid_guy
Member
 
Registered: Jun 2003
Distribution: mandrake 9.2
Posts: 57

Rep: Reputation: 15
how to change "kernel arguments" in grub boot loader permanently


how to change "kernel arguments" in grub boot loader permanently?

my redhat kernel won't boot unless the kernel arguments has the line "apm=off" in it. But I'm having to change the kernel arguments everytime I boot my computer because the boot seems to reset itself with every shutdown which is very annoying.

Thanks, and linux professionals- please try to keep the solution simple
 
Old 06-08-2003, 08:51 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
Edit the /boot/grub/grub.conf file. It holds everything you see when you are editting at boot-time.
 
Old 06-08-2003, 09:54 PM   #3
kazuni
Member
 
Registered: May 2003
Location: Hong Kong
Distribution: Android on HTC Hero
Posts: 256

Rep: Reputation: 30
actually, /boot/grub/menu.lst is the one
 
Old 06-09-2003, 08:14 AM   #4
stupid_guy
Member
 
Registered: Jun 2003
Distribution: mandrake 9.2
Posts: 57

Original Poster
Rep: Reputation: 15
thanks for the location of the file, but I don't know how to edit these files

I opened the file up vi [filename] then with view [filename] but both times a screen comes up with the following on it
~
~
~
....etc

how do I edit it? and how do I get out of it and save the changes?
 
Old 06-09-2003, 03:59 PM   #5
cpv204
Member
 
Registered: Mar 2003
Location: Tribeca, NYC
Distribution: Slackware 9.0, Fedora Core 1
Posts: 111

Rep: Reputation: 15
Instead of vi, try pico to edit that file.
 
Old 06-09-2003, 04:01 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally posted by kazuni
actually, /boot/grub/menu.lst is the one
grub changed the official name of the config file from menu.lst to grub.conf a fair whie ago now. menu.lst is just a fallback now.
 
Old 06-09-2003, 08:41 PM   #7
stupid_guy
Member
 
Registered: Jun 2003
Distribution: mandrake 9.2
Posts: 57

Original Poster
Rep: Reputation: 15
thanks people, it works.
here's what I did,
type "pico grub.conf" in the right folder and it showed me some lines that I am familiar with at grub loader screen, adding to it "apm=off"
Just to be certain that menu.lst could be the real one, I opened up menu.lst and lo and behold, it was changed automatically! it seems that the 2 of them are related somehow. Restart comp, and yea!
 
Old 06-09-2003, 10:32 PM   #8
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
menu.lst is a symbolic link to grub.conf . When you open menu.lst, the system sees it is a link, and follows it to the real file.
 
  


Reply



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
Gentoo... grub problems... "/boot/grub/stage1" exists... no halo14 Gentoo 5 02-06-2011 04:50 PM
GRUB boot loader "kernel" options?? registering Mandriva 4 08-18-2005 07:12 AM
"Operating system not found", problem with the motherboard/GRUB Loader maybe?? brynjarh Linux - General 3 12-14-2004 02:17 PM
"No kernel packages were installed... Boot loader will not be changed..." error messa ptexpress Linux - Newbie 1 11-03-2003 03:54 AM
How to config "that" boot loader to start Greb fromzj Linux - Newbie 1 07-17-2002 02:34 PM

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

All times are GMT -5. The time now is 05:49 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