LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unable to configure /boot/grub/menu.lst (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-configure-boot-grub-menu-lst-806429/)

avee137 05-07-2010 01:40 AM

unable to configure /boot/grub/menu.lst
 
I tried making some changes to /boot/grub/menu.lst file by logging in thru su but it throws following error:





[root@localhost avi]# /boot/grub/menu/lst | gedit

(gedit:4874): GnomeUI-WARNING **:

While connecting to session manager:
Authentication Rejected, reason : None of the

authentication protocols specified are supported and host-based authentication

failed.
bash: /boot/grub/menu/lst: No such file or directory

help me with the reason and solution.

Thanks in advance!

Argief 05-07-2010 01:56 AM

Quote:

Originally Posted by avee137 (Post 3960053)
[root@localhost avi]# /boot/grub/menu/lst | gedit

Should you not be typing /boot/grub/menu.lst

/menu/lst refers to file lst in directory /menu

avee137 05-07-2010 02:03 AM

Quote:

Originally Posted by Argief (Post 3960061)
Should you not be typing /boot/grub/menu.lst

/menu/lst refers to file lst in directory /menu

yeah thats correct...ll try out...thanks!

tommyttt 05-07-2010 02:05 AM

Quote:

Originally Posted by avee137 (Post 3960053)
I tried making some changes to /boot/grub/menu.lst file by logging in thru su but it throws following error:





[root@localhost avi]# /boot/grub/menu/lst | gedit

(gedit:4874): GnomeUI-WARNING **:

While connecting to session manager:
Authentication Rejected, reason : None of the

authentication protocols specified are supported and host-based authentication

failed.
bash: /boot/grub/menu/lst: No such file or directory

help me with the reason and solution.

Thanks in advance!

What distribution and desktop are you using?

Always give as much information when asking for help so we're more likely to be able to help with the problem.

Looking back, I see you're using Gnome which I'm not familiar with. Maybe someone with Gnome knowledge can help you.

ultimate_linux 05-07-2010 02:19 AM

sudo gedit /boot/grub/menu.lst

avee137 05-07-2010 03:24 AM

Quote:

Originally Posted by tommyttt (Post 3960070)
What distribution and desktop are you using?

Always give as much information when asking for help so we're more likely to be able to help with the problem.

Looking back, I see you're using Gnome which I'm not familiar with. Maybe someone with Gnome knowledge can help you.

yeah m using GNOME.could u please explain this part in the error mesg.:

"While connecting to session manager:
Authentication Rejected, reason : None of the

authentication protocols specified are supported and host-based authentication

failed"

lunitix 05-07-2010 03:46 AM

You are trying to open a gui app while being root .

ronlau9 05-07-2010 03:56 AM

With distro are you using ?
With GRUB are you using GRUB 1 ore GRUB 2 ?
You see GRUB 2 do not have a menu.lst but a GRUB.cfg
Editing GRUB.cfg is not recommended .

avee137 05-07-2010 03:58 AM

Quote:

Originally Posted by lunitix (Post 3960145)
You are trying to open a gui app while being root .

is that forbidden?
how can i edit /boot/grub/menu.lst on CentOS?(i gt the abv error while trying the same task)

brianL 05-07-2010 09:23 AM

Try this:
Code:

gksu gedit /boot/grub/menu.lst

DavidMcCann 05-07-2010 11:18 AM

In Fedora, I get a screenful of error messages if I try the equivalent
su
gedit /boot/grub/grub.conf
but Gedit does eventually start. The same thing happens if I try to launch Nautilus. The Ubuntu version of the Gnome session manager is obviously fussier than the Fedora one.

The obvious solution for you is not to use Gedit: try nano instead.

avee137 05-07-2010 11:22 AM

Quote:

Originally Posted by ronlau9 (Post 3960151)
With distro are you using ?
With GRUB are you using GRUB 1 ore GRUB 2 ?
You see GRUB 2 do not have a menu.lst but a GRUB.cfg
Editing GRUB.cfg is not recommended .

I am using win7,ubuntu and CentOS in multiboot.I have restored the ubuntu's GRUB-2 but now its not listing CentOS in the boot options.Could you please suggest the tweaks to get the same?

ronlau9 05-07-2010 01:03 PM

Quote:

Originally Posted by avee137 (Post 3960529)
I am using win7,ubuntu and CentOS in multiboot.I have restored the ubuntu's GRUB-2 but now its not listing CentOS in the boot options.Could you please suggest the tweaks to get the same?

Try in terminal the command sudo su update-grub
If it does not work post again
Restart you're computer to see if it works

pottzie 05-07-2010 04:30 PM

Is it grub 1 or grub2?
 
I had a similar problem. In my situation grub2 was running from Mint and wouldn't recognize that Fedora was on my hard drive. The Fedroa forum worked on it for about a week.

http://forums.fedoraforum.org/showthread.php?t=242038

The answer came when someone realized there was a way to get grub to do the dirty work from the comand line. And yes, you can't/don't want to edit grub2!
The short, sweet and brutal solution:

"there is something called Startup Manager for Ubuntu. Maybe a graphical representation of what you want to do? Point and click menu editing? Just a thought while I was reading through my GRUB2 notes."

And that did the trick! After about a week of agonizing by what seemed like all of Fedora's team. When I ran it, Fedora was listed. It's at the last page of a post that's longer than most books in the bible!

avee137 05-07-2010 11:56 PM

Quote:

Originally Posted by pottzie (Post 3960776)
I had a similar problem. In my situation grub2 was running from Mint and wouldn't recognize that Fedora was on my hard drive. The Fedroa forum worked on it for about a week.

http://forums.fedoraforum.org/showthread.php?t=242038

The answer came when someone realized there was a way to get grub to do the dirty work from the comand line. And yes, you can't/don't want to edit grub2!
The short, sweet and brutal solution:

"there is something called Startup Manager for Ubuntu. Maybe a graphical representation of what you want to do? Point and click menu editing? Just a thought while I was reading through my GRUB2 not

And that did the trick! After about a week of agonizing by what seemed like all of Fedora's team. When I ran it, Fedora was listed. It's at the last page of a post that's longer than most books in the bible!


thanks a lot!
lemme c if it works fr me!


All times are GMT -5. The time now is 12:00 AM.