grub editing with gedit but i need admin privileges

Asked by jim

I'm trying to edit the menu.lst file so that I can change what GRUB displys at bootup and so I can change the default boot choice. I right-click the file and select "open with text editor" and I'm able to change the menu'lst settings but I'm unable to save them as the system is saying I don't have the privileges. When I installed Ubuntu I only created one account. Yes - I'm new to Ubuntu!!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier
Solved:
Last query:
Last reply:
Revision history for this message
Best Olivier (olivier-lacroix) said :
#1

Hi !

the easiest way to do that is to use the terminal :

just type

sudo gedit /boot/grub/menu.lst

and you will be able to save the modifications

Revision history for this message
Olivier (olivier-lacroix) said :
#2

You may also want to install the package nautilus-actions, which is a program that extends the file manager
to do that search for it in synaptic, and install it.

next, download this http://www.grumz.net/?q=system/files&file=open%20in%20gedit%20as%20root.schemas&PHPSESSID=b92ed22d5167b34cc1c11a4626d8b467

and add this action to nautilus-action. After that, there will be an entry called "edit as root" when you right click on a file. This way, you avoid the terminal

to learn more about nautilus action and search for other actions, go here http://www.grumz.net

Revision history for this message
jim (mrmclellan) said :
#3

Thanks Olivier Lacroix, that solved my question.

Revision history for this message
Chan Trau (ngson2) said :
#4

thank you for your help

Revision history for this message
ramadasan7 (ramadasan7-gmail) said :
#5

I get a blank menu.lst file, and totally blank at that. My problem is I have a redundant linux-header-2.6.31-17 appearing on the boot screen which I want to remove from the boot screen. Can anyone help please?

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#6

@ ramadasan7 in Ubuntu 9.10 with the grub2 the file /boot/grub/menu.lst doesn't exist more.
Please refer here to the grub2 https://wiki.ubuntu.com/Grub2

But to remove old kernel header please simply remove the kernel package using synaptic or other package manager.

Please also make a new question.... from here: https://answers.launchpad.net/ubuntu/+addquestion
don't append your question on a already answered question like this.

Thank you