editing grub

David Hopkins hopkins81 at gmail.com
Mon May 15 16:39:22 BST 2006

What you need to do is open a "terminal" or "shell". This can be done
in a few ways. I can't remember off the top of my head, but have a
search around the programs in the K menu and you should find it!

You will now have a prompt waiting for you to type stuff into. Have a
play about with it e.g. type "ls -l" or mkdir tommac. If you want to
discover more about linux this is good place to start. There is a
tonne of information out there just waiting for you to discover about
the linux shell! And there is always the man pages if you need them.

Okay, back to the task in hand. I asked you to type "sudo kate
/boot/grub/menu.lst". Lets break it down. Firstly the sudo command.
This is integral to the way (K)Ubuntu works. Whenever you do something
from the shell that requires root privileges you need to type "sudo"
first, which will prompt for your password. Basically temporarily
becoming root for the command that follows the sudo bit.

The next bit was "kate". This is a very nice text editor contained
within KDE, and you can start it simply by typing kate from the shell.
If you type kate then the name of a file, it will open that file ready
for editing, which is what we want.

All together then:

sudo (temp become root) kate (text editor) /boot/grub/menu.lst (name
of the file)

Hope that helps!

On 15/05/06, tommac <tommac at cableone.net> wrote:
> David Hopkins wrote:
> > You standard user account is not allowed to edit this file. This is a
> > good thing as you would not accidentaly want to edit it! You need to
> > edit this file as root, which mean typing the following
> >
> > sudo kate /boot/grub/menu.lst
> >
> > On 15/05/06, tommy mcdurmon <tommac at cableone.net> wrote:
> >> I need to edit grub file. I can get to
> >>  /boot/grub/menu.lst
> >> using the run command, and do the typing to edit the file but cannot
> >> save the file. A notice comes up saying it is not possible to write to
> >> this file and there may not be enough disk space.
> >> When I go to options, it allows me to open in terminal but permission is
> >> denied to list or edit the file.
> >> How can I change this or is there another path to this file that will
> >> allow me to edit?
> >>
> >> thanks
> >> tom
> >>
> >> --
> >> kubuntu-users mailing list
> >> kubuntu-users at lists.ubuntu.com
> >> https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
> >>
> >
> thanks David for the info, but I need more help. How do I edit this file
> as root? Where do I type sudo kate etc.?  Sorry for all these questions,
> I'm new to this. Your help is greatly appreciated.
> tom
> --
> kubuntu-users mailing list
> kubuntu-users at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kubuntu-users

More information about the kubuntu-users mailing list