anyone know how to edit the /boot/grub/menu.lst? plzz help
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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
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.
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/
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.