[opensuse] How to edit Grub in openSUSE 10.2?
Basically I have a dual boot with XP Pro and openSUSE 10.2 and I'd like to change the default boot options, but I don't know what commands to use in terminal to edit it. I already know about sudo and that the file is /boot/grub/menu.lst but both gedit and kate do not seem to work... maybe I just have my syntax off... gedit reports bad/unknown command and kate can't connect t x server... Any help is appreciated. David -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 29 April 2007 20:56, David Gregg wrote:
Basically I have a dual boot with XP Pro and openSUSE 10.2 and I'd like to change the default boot options, but I don't know what commands to use in terminal to edit it. I already know about sudo and that the file is /boot/grub/menu.lst but both gedit and kate do not seem to work... maybe I just have my syntax off... gedit reports bad/unknown command and kate can't connect t x server...
Any help is appreciated. hi David,
First, the /boot/grub/menu.lst file is privileged... so you'll have to edit it as root, or sudo. Second, a text editor like "joe" is probably your best bet if you're not used to using "vi" or emacs, whatever. But the thing to remember is to make of copy of the file first... cp menu.lst menu.lst.bak Take your time... its just a text file... and the good news is that if you mess it up, you will have a chance at bootup to fix it should things not work. Check out "joe" and practice using it with a test file first... then go for it. Ps... of course, real programmers use "vi" but that's another flame war...er, I mean discussion. -- Kind regards, M Harris <>< -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2007/04/29 21:56 (GMT-0400) David Gregg apparently typed:
Basically I have a dual boot with XP Pro and openSUSE 10.2 and I'd like to change the default boot options, but I don't know what commands to use in terminal to edit it. I already know about sudo and that the file is /boot/grub/menu.lst but both gedit and kate do not seem to work... maybe I just have my syntax off... gedit reports bad/unknown command and kate can't connect t x server...
Open Konsole and look in the session menu. If you selected console tools during install you'll see in that menu 2 midnight commander selections. Open a root midnight commander session, navigate to /boot/grub, highlight menu.lst, then hit shift-F5 to make a backup copy with a new name of your choice based upon the current name. Next with the original menu.lst still highlighted, hit F4 to start the MC editor. You'll most likely see default 0 on line 2. What that means is the first grub stanza is the default. Likely the windoz stanza is the second, which means you'd need to change 'default 0' on line 2 to 'default 1', exit editor with F10 and choose to save. All plain text system config files (which is most config files) can be managed this way. -- "Therefore, if anyone is in Christ, he is a new creation; the old has gone, the new has come!" 2 Corinthians 5:17 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://mrmazda.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 29 April 2007 20:56, David Gregg wrote:
Basically I have a dual boot with XP Pro and openSUSE 10.2 and I'd like to change the default boot options, but I don't know what commands to use in terminal to edit it. I already know about sudo and that the file is /boot/grub/menu.lst but both gedit and kate do not seem to work... maybe I just have my syntax off... gedit reports bad/unknown command and kate can't connect t x server...
Any help is appreciated. hi David,
First, the /boot/grub/menu.lst file is privileged... so you'll have to edit it as root, or sudo. Second, a text editor like "joe" is probably your best bet if you're not used to using "vi" or emacs, whatever. But the thing to remember is to make of copy of the file first... cp menu.lst menu.lst.bak Take your time... its just a text file... and the good news is that if you mess it up, you will have a chance at bootup to fix it should things not work. Check out "joe" and practice using it with a test file first... then go for it. -- Kind regards, M Harris <>< -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 29 April 2007 20:56, David Gregg wrote:
Basically I have a dual boot with XP Pro and openSUSE 10.2 and I'd like to change the default boot options, but I don't know what commands to use in terminal to edit it. I already know about sudo and that the file is /boot/grub/menu.lst but both gedit and kate do not seem to work... maybe I just have my syntax off... gedit reports bad/unknown command and kate can't connect t x server...
Any help is appreciated.
David
If you have fun editing configuration files your best friend for that is text mode file manager "mc" (Midnight Commander). It is included on CD/DVD/FTP so you can install it with YaST. See also for short overview: http://en.opensuse.org/Midnight_Commander http://en.opensuse.org/Midnight_Commander/Tips#Lynx_like_motion -- Regards, Rajko. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
David Gregg wrote:
Basically I have a dual boot with XP Pro and openSUSE 10.2 and I'd like to change the default boot options, but I don't know what commands to use in terminal to edit it. I already know about sudo and that the file is /boot/grub/menu.lst but both gedit and kate do not seem to work... maybe I just have my syntax off... gedit reports bad/unknown command and kate can't connect t x server...
Any help is appreciated.
David Yast > System > Boot Loader -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 30 Apr 2007 05:48:29 -0500
Billie Erin Walsh
Yast > System > Boot Loader Additionally, you can do this from KDE or GNOME, or from a simple virtual teminal as there is a non-graphical version of yast. -- Jerry Feldman
Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
participants (6)
-
Billie Erin Walsh
-
David Gregg
-
Felix Miata
-
Jerry Feldman
-
M Harris
-
Rajko M.