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:scratch:
|
Why can't you edit it? Are you logged in as root? What message do you get when you try to edit it?
|
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.
|
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. |
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:
|
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
|
Some versions use grub.conf instead of menu.lst.
|
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. |
hi
Im just start using Linux, so i know little bout it.
Can u tell me how to log on as root? plz:) |
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 |
sry man.
I just found out how to do it. But thanx |
Quote:
|
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? |
Re: hi
Quote:
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. |
Quote:
- that you can't login as root, - that you can't edit (and save) menu.lst, or - on reboot, you don't see any changes ???. From a console/terminal enter: Code:
id |
Quote:
- Log in as root; type "root" in the username: field and your root password (if you have one) in the password: field. If you don't have one, try hitting Enter. You should see a # prompt. - Now type ls -la /boot/grub - You should see either grub.conf or menu.lst in the list. - Type vi grub.conf or vi menu.lst. This will show you what's in the file. type "i" to edit, and when you're done and satisfied with changes you've made, hit Esc, then : (a colon), then type wq! - If you can't edit grub or menu.lst, let us know what error message you get. If you have insufficient permissions, you could try chmod 777 <filename>. |
You might battle with vi as an editor. If you have a kde dsektop then go K ->System and look for File manager on the menu. It will ask for root password. Once in there use the folder icon on the left and open up the directory tree and go to /boot/grub and look for grub.conf or menu.lst and use something like kwarite to edit the file.
|
All times are GMT -5. The time now is 09:10 PM. |