How do I edit the grub file?

Asked by Milardo on 2007-03-11

I want to edit the grub boot file and I tried these

gksudo gedit /boot/grub/menu.lst (graphical)

sudo nano /boot/grub/menu.lst (terminal)

that I read on another support request here. However the first command after entering my password gets me nowhere and the second command lets me do nothing to the file. What do I do?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Milardo
Solved:
2007-03-12
Last query:
2007-03-12
Last reply:
2007-03-11
Leandro Gómez (leogg) said : #1

Hello Milardo!

The first command:

gksudo gedit /boot/grub/menu.lst

opens the gnome text editor for the edition of the grub file... (you must have gedit installed)

Here's the grub howto:

https://help.ubuntu.com/community/GrubHowto

Best Milardo (zerosportslegacy) said : #2

Thank you for the info here is the exact command needed to edit the grub file. Open the terminal application and type

sudo gedit /boot/grub/menu.lst

Note that there is a space between sudo and gedit and gedit and /boot. Critical that you pay attention to that otherwise I think command won't be acknowledged. For me when after entering password the document was blank still so what I did was open another menu.1st in the terminal and got the right document.