LinuxQuestions.org
Review your favorite Linux distribution.
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 03-25-2005, 09:48 AM   #1
earth.hero
LQ Newbie
 
Registered: Mar 2005
Posts: 4

Rep: Reputation: 0
Exclamation anyone know how to edit the /boot/grub/menu.lst? plzz help


I cannot edit the /boot/grub/menu.lst.I just want to change sumthing.plzz help me
 
Old 03-25-2005, 09:53 AM   #2
batard
LQ Newbie
 
Registered: Jan 2005
Distribution: Fedora Core 3, Mandrake 10.1
Posts: 16

Rep: Reputation: 0
Why can't you edit it? Are you logged in as root? What message do you get when you try to edit it?
 
Old 03-25-2005, 09:54 AM   #3
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Why? You need to be the root user to do this. Become root, then edit it. When you save the file it should be automatically written to the mbr.
 
Old 03-25-2005, 10:51 AM   #4
visaris
Member
 
Registered: Dec 2004
Distribution: gentoo
Posts: 190

Rep: Reputation: 30
Not to be as a$$, but I just wanted to correct TigerOC slightly. When the grub config file is saved, no data is actually written to the mbr. Grub has the ability to read ext2 filesystems, and will mount/read the menu/config/etc file directly. This is why you don't need to do anything other than save the file for the changes to take effect.
 
Old 03-25-2005, 10:53 AM   #5
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Beg pardon but with Debian it does - don't know about other distros.
Ok I follow - sorry I did not know the menu.lst was read by grub but thought it was written to the mbr. No matter - the end result is the same.

Last edited by TigerOC; 03-25-2005 at 10:59 AM.
 
Old 03-25-2005, 11:06 AM   #6
visaris
Member
 
Registered: Dec 2004
Distribution: gentoo
Posts: 190

Rep: Reputation: 30
I suppose what you say is possible, but I don't beleive it.

From: http://www.redhat.com/docs/manuals/l...de/ch-grub.htm
Quote:
GRUB's configuration file is read from the disk every time the system boots, preventing the user from having to write over the MBR every time a change the boot options is made. Most boot loaders are not sophisticated enough to read configuration files and use them to set up boot options. For example, to change a LILO boot configuration, such as changing the default operating system to boot, users must change a LILO configuration file and run a command that overwrites the system's MBR with the new configuration data. This is more risky than GRUB's method, because a misconfigured MBR would leave the system unbootable. With GRUB, if the configuration file is erroneously configured and rebooted, it will simply default to a command line and allow the user to manually type commands that will launch the operating system. The MBR is not touched except to update the Stage 1, Stage 2, or menu configuration file locations, and this is rarely necessary.

Last edited by visaris; 03-25-2005 at 11:08 AM.
 
Old 03-25-2005, 11:19 AM   #7
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
This is an interesting one because Debian does not have such a configuration file. I see it mentioned in regard to other distros but there isn't one in Debian i.e. no /etc/grub
 
Old 03-25-2005, 11:22 AM   #8
drowbot
Member
 
Registered: Dec 2004
Location: Tulsa, OK, USA
Distribution: SUSE, ArchLinux, Gentoo, LFS, Slackware, Fedora
Posts: 100

Rep: Reputation: 15
Some versions use grub.conf instead of menu.lst.
 
Old 03-25-2005, 11:36 AM   #9
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
OK just clarify the whole process which can be read here .

Grub installs stage1 to the mbr which then reads stage2 (containing the menu directives) which links to menu.lst or grubconf which ever the distro uses.
 
Old 03-25-2005, 10:09 PM   #10
earth.hero
LQ Newbie
 
Registered: Mar 2005
Posts: 4

Original Poster
Rep: Reputation: 0
hi

Im just start using Linux, so i know little bout it.
Can u tell me how to log on as root?
plz
 
Old 03-25-2005, 10:32 PM   #11
contusion
Member
 
Registered: Mar 2005
Posts: 310

Rep: Reputation: 34
root logon explained

In the username just type root
in the password just type your root password.
It's that simple.


My site Veera's
 
Old 03-25-2005, 10:35 PM   #12
earth.hero
LQ Newbie
 
Registered: Mar 2005
Posts: 4

Original Poster
Rep: Reputation: 0
sry man.
I just found out how to do it.
But thanx
 
Old 03-25-2005, 10:41 PM   #13
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
Quote:
Originally posted by TigerOC
This is an interesting one because Debian does not have such a configuration file. I see it mentioned in regard to other distros but there isn't one in Debian i.e. no /etc/grub
the most common place for grub config files is /boot/grub/
 
Old 03-25-2005, 10:48 PM   #14
earth.hero
LQ Newbie
 
Registered: Mar 2005
Posts: 4

Original Poster
Rep: Reputation: 0
im really sorry but I still cant edit that file.
I tried to log on as root but sum how it's not working.
Can any1 plz show me how to do it?
 
Old 03-25-2005, 10:49 PM   #15
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,207

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Re: hi

Quote:
Originally posted by earth.hero
Im just start using Linux, so i know little bout it.
Can u tell me how to log on as root?
plz
Damn, just finished an answer

To the discussion re grub - that Redhat link is useful, but don't treat it as gospel.
As an aside the code looks for menu.lst. Lots of distros symlink this to grub.conf, some patch the code to look for grub.conf.
Some flip-flop between the two - the Gentoo guys can look at the patch set that comes down with the emerge of a new version of grub. Changes from one to the next.
Makes it difficult to offer good advice on sites like this that have a mix of user competence, and a mix of distros.
The OP in this case hasn't told us what distro (s)he uses.
 
  


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
Right way to edit /boot/grub/menu.lst ? eeried Linux - Software 2 02-07-2007 08:59 AM
How to edit /boot/grub/menu.lst of the host satimis Linux From Scratch 1 09-25-2005 07:21 AM
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 11:45 AM
/boot/grub/menu.lst gets re-written by apt-get..NOT COOL terrapin24h Ubuntu 2 07-04-2005 09:14 AM
GRUB menu.lst for Fedora and Mandrake Dual boot the_padre Linux - Newbie 3 03-15-2005 01:21 AM


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