LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-27-2007, 06:06 AM   #1
Funky91
LQ Newbie
 
Registered: Dec 2007
Posts: 21

Rep: Reputation: 15
Boot order troubles


Hello. I installed openSUSE on my pc yesterday alongside windows but am struggling to change it so windows xp is the default.

I tried editing /boot/grub/menu.lst but it would not let me into the file. It said Permission Denied. It also did this when I went in as root.

Please help!
 
Old 12-27-2007, 06:40 AM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Click terminal

Type "su", supply the root password

then type
Code:
kwrite /boot/grub/menu.lst
You can do it in the desktop but it is OK from the terminal, which gives you the same thing.
 
Old 12-27-2007, 07:04 AM   #3
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
Permission Denied means that you don't have permissions for what you are trying to do. A normal user is restricted from system files for obvious security reasons.

As mentioned above, you have to su to root to have permission to access system files. He told you how, but I thought it would help to know why as well.

Also, the instructions above assume you are running KDE, but if you're running Gnome you won't have Kwrite installed. In that case the command, after su to root, would be
Code:
gedit /boot/grub/menu.lst

Last edited by masonm; 12-27-2007 at 07:05 AM.
 
Old 12-27-2007, 10:55 AM   #4
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
You may also use YaST and then click on "system" in the left panel then click on "Boot Loader" in the right panel. Now click the up or down arrows to the right side of panel and high light the one you want to open as default and then click on button near bottom right "Set as default". Click "Finish" and it should be changed the next time you boot.
 
Old 12-27-2007, 11:32 AM   #5
joel2001k
Member
 
Registered: Mar 2007
Distribution: GNU/Linux debian unstable main
Posts: 95

Rep: Reputation: 17
do you have set the writable flag of file

`ls -l /boot/grub/menu.lst`
`chmod 644 /boot/grub/menu.lst`
 
Old 12-27-2007, 04:11 PM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
menu.lst is meant to be configurable by the root user.

Never have to do anything to edit it once in root.
 
Old 12-27-2007, 04:26 PM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by masonm View Post
Permission Denied means that you don't have permissions for what you are trying to do. A normal user is restricted from system files for obvious security reasons.

As mentioned above, you have to su to root to have permission to access system files. He told you how, but I thought it would help to know why as well.

Also, the instructions above assume you are running KDE, but if you're running Gnome you won't have Kwrite installed. In that case the command, after su to root, would be
Code:
gedit /boot/grub/menu.lst
A good explanation as to why the normal user is not allowed to have access for security reasons.

I prefer from the cli as root;

Code:
vi /boot/grub/menu.lst
That way you don't have to worry about gnome or kde. I won't get into the lilo vs grub issues.
 
Old 12-27-2007, 04:59 PM   #8
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
Quote:
Originally Posted by onebuck View Post
Hi,



A good explanation as to why the normal user is not allowed to have access for security reasons.

I prefer from the cli as root;

Code:
vi /boot/grub/menu.lst
That way you don't have to worry about gnome or kde. I won't get into the lilo vs grub issues.
I agree but someone asking such a question is probably a newbie and thus is likely not familiar with vi. My personal preference is mcedit but didn't want to go there either LOL
 
Old 12-27-2007, 08:31 PM   #9
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Not to be critical of anyone but I think my explanation above is best for a newbie using Suse. I will agree that it does not help him down the road with any other grub boot distros but it gives him gui interface to make his adjustments and the YaST in the later Suse distros works.
 
Old 12-28-2007, 05:02 AM   #10
Funky91
LQ Newbie
 
Registered: Dec 2007
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks for your help. I managed to fix the boot order using the kwrite command.
 
Old 12-28-2007, 08:22 AM   #11
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Thanks for letting us know that you solved your problem and how. As you can see there are usually two or many ways to accomplish a task in linux that will work. Some ways work easier than others for certain people.
 
Old 12-28-2007, 09:26 AM   #12
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
From a root terminal invoking "kwrite" in KDE or "gedit" in Gnome desktop is pretty universal nowadays. One can use it almost in any Linux that has such desktop. Xfce also has its own graphic editor fired up in the same way.

I am in Solaris now and "gedit" works as expected in its Gnome environment.

I fire up "vi" only when no graphic editor is available.
 
Old 12-28-2007, 11:41 AM   #13
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by saikee View Post
From a root terminal invoking "kwrite" in KDE or "gedit" in Gnome desktop is pretty universal nowadays. One can use it almost in any Linux that has such desktop. Xfce also has its own graphic editor fired up in the same way.

I am in Solaris now and "gedit" works as expected in its Gnome environment.

I fire up "vi" only when no graphic editor is available.
My point! You will find 'vi' on any system. You don't need a GUI. Just the cli will do.
 
Old 12-28-2007, 01:10 PM   #14
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
My point exactly, this is supposedly a "newbie" and I was trying to make the easiest way. A newbie coming from the other "os" may find it easier if everything is graphical.
 
Old 12-28-2007, 08:08 PM   #15
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,
Quote:
Originally Posted by Larry Webb View Post
My point exactly, this is supposedly a "newbie" and I was trying to make the easiest way. A newbie coming from the other "os" may find it easier if everything is graphical.
Spoon feeding doesn't always help! Cookbooks assume that you know something about hardware. pans, spoon or whatever. Linux is no different. The newbie needs to do a little work on their part. A GUI is not always as intuitive as everyone thinks. Heck most Internet user know about Google but does that mean they use it when they have a problem. No! Post it, I might have to think. Let someone else. Service Society, BULL!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grub question changing boot order making windows boot first nfsutim Linux - Newbie 29 10-27-2012 12:53 PM
Changing Boot Order pwellkidz18F4 Debian 15 11-01-2007 12:11 PM
boot order tourbike Linux - Newbie 2 05-26-2007 11:46 AM
Have to change boot order in BIOS to boot ubuntu/winxp Minn3h Linux - Software 7 04-01-2006 05:17 PM
changing boot order vasu Mandriva 4 08-25-2003 02:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration