LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 03-16-2005, 06:08 AM   #1
NewToLinuxOS
LQ Newbie
 
Registered: Feb 2005
Posts: 15

Rep: Reputation: 0
Talking Editing Grub on SUSE 9.2


Hello.
Once again, i come to ask some newbie questions, hopefully you'll be able to help me

1. I consider installing another distro, i want SUSE's grub to show it as an option in the list (currently is XP and SUSE).
I heard that there's something to do with editing the grub file, i'd like to know where is the file, and how should i edit him.

2. That's really noobish of me, but i'm sure that you had some noobish questions back when it was your first time ^^ :
If i want to replace/edit or change a certain file through a GUI interface, without using the command line, is it possible? i mean, usually it tells me that i dont have the privilege to edit/replace/change/whatever the file, i have to log as root, but i prefer to do it through GUI, is it possible at all?

Thanks ^^
 
Old 03-16-2005, 06:34 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Log out of your own save and at the login prompt, log in as the user root with roots password. Only use root for essential maintainance. Don't browse the web as root. Basically, don't take the power of root if you don't need to. It's too risky. One mistake and you may have to reinstall (happens to me all the time...).
To fix grub, edit /boot/grub/menu.lst (some distro's call it /boot/grub/grub.conf) and add a new entry for whatever the other distro is that you want to boot. Grub counts from zero so all numbers are one less than you're use to. So /dev/hda4 is (hd0,3) to grub. It uses numbers instead of letters for drives as well. /dev/hdb8 is (hd1,7) in grub. So for example, this boots ubuntu on /dev/hda12 for me
Code:
title Ubuntu
root (hd0,11)
kernel /boot/vmlinuz-2.6.8.1-3-386 root=/dev/hda12 ro quiet splash
initrd /boot/initrd.img-2.6.8.1-3-386
 
Old 03-16-2005, 06:40 AM   #3
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
1. the file is called /boot/grub/menu.lst. The entries in this file point to the kernel and the initrd file that may contain relevant driver (e.g. filesystem, HDD controller, etc.).

2. Sure it is possible. You can always gain root rights, even in the graphical system. To move/edit you could use konqueror in super-user mode. (KDE-menu -> System -> File Manager -> File Manager - Super User Mode). This is actaully the same as if you would start konqueror with the command 'kdesu konqueror' from 'Run Command...'. kdesu opens any KDE application with root permissions within a normal users graphical environment. If you already know which file you would like to edit (e.g. menu.lst), you could open the 'Run Command...' tab and type
Code:
kdesu kwrite /boot/grub/menu.lst
This will open menu.lst in kwrite as you know it, but with root permissions to save and delete.
 
Old 03-16-2005, 09:36 AM   #4
young_greg
LQ Newbie
 
Registered: Jun 2004
Location: West Yorkshire
Distribution: Mandrake 10
Posts: 2

Rep: Reputation: 0
Have a look at my reply to 'Cybes51' today, I had a very similar problem and I have offered a solution that worked for me on more than one occasion.Just make sure you don't have a second HD connected when you try out my suggestion.
 
  


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 Editing hoe Linux - General 2 11-07-2004 06:45 PM
Editing Grub onelung02 SUSE / openSUSE 3 10-27-2004 03:45 AM
Editing Grub Permaximus Linux - Newbie 9 09-22-2004 09:14 AM
need help editing grub orionpc84 Linux - Newbie 5 09-11-2004 11:50 PM
Grub: Editing Kryptow Linux - Newbie 4 09-05-2002 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 01:50 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