-   Linux - Newbie (
-   -   Grub boot loader (

big_wren 02-05-2003 05:10 PM

Grub boot loader
I have grub to dual boot Redhat Linux 8 and Windows Xp. For windows xp it calls it dos, i want to change the name on but linux wont let me configure the grub.conf file

Dark_Helmet 02-05-2003 06:35 PM

Are you logged in as a regular user?

Only root can edit the file.

DavidPhillips 02-05-2003 06:40 PM

you need to be root to edit that file. Also if it's read only you will need to overide the read only setting. This depends on what you are editing with. With vi you can use this


instead of


if you are using some other editor that will not suppport overiding a read only permission you will need to change it

ls -l `locate grub.conf`
-rw-r--r-- 1 root root 688 Dec 21 12:35 /boot/grub/grub.conf
lrwxrwxrwx 1 root root 22 Dec 17 17:12 /etc/grub.conf -> ../boot/grub/grub.conf

ls -l /boot/grub/grub.conf
-rw-r--r-- 1 root root 688 Dec 21 12:35 /boot/grub/grub.conf

note this file not it's link is -rw for root, so root can edit it.

This is set with chmod

chmod 644 /boot/grub/grub.conf

big_wren 02-06-2003 01:02 AM

I am logged in as a regular user....
how do i log in a root?
(i am very new to linux)

Dark_Helmet 02-06-2003 01:20 AM

"root" is the system administrator account. Essentially, root has the ability to do anything to the system regardless of permissions. When you installed Red Hat, it asked you for an administrator password (I believe it had a yellow badge for an icon next to it). The password you entered there is the password for the root account. Later in the install, it asked you to create additional accounts. Any account you created in that step is a "regular user".

The best way to do this is to log in as one of the regular users you created and temporarily switch to the root account to do administrative tasks. You use the "su" command to do this, like so:

Password: <type root password here>

If successful, you'll get a prompt back. If not, it will complain about the password not matching. Once you're root, then edit the GRUB configuration file. Once finished editing, type "exit" at the command prompt to return to a regular user.

jglen490 02-06-2003 11:29 AM

The changes that you need to make, need to be made to the /boot/grub/menu.lst. They need to be done as the root user.

DavidPhillips 02-06-2003 02:28 PM

that depends.

My menu.lst file is a link to grub.conf. As I said be sure to look at the file. However I do believe that the file should be -rw so you can open the link and it will actually open the right file.

ls -l `locate menu.lst`
lrwxrwxrwx 1 root root 11 Dec 17 17:12 /boot/grub/menu.lst -> ./grub.conf

All times are GMT -5. The time now is 06:54 AM.