Jump to content

Add openSuse to Mandriva Grub Boot Menu [solved]


Littleguy
 Share

Recommended Posts

Oddly enough, Mandriva added both my Windows XP and Vista to it's GRUB Boot menu, but didn't add Suse . I wonder if it's because I didn't mount

Suse's root and home partition when I installed. I've tried to add Suse in mandriva control center Boot manager, but mandriva uses IMG and Suse does not.

 

Mandriva:

 

title linux

kernel (hd0,7)/boot/vmlinuz BOOT_IMAGE=linux root=/dev/sda8 resume=/dev/sda9 splash=silent vga=788

initrd (hd0,7)/boot/initrd.img

 

OpenSuse

 

gfxmenu (hd0,4)/boot/message

##YaST - activate

 

###Don't change this comment - YaST2 identifier: Original name: linux###

title openSUSE 10.2

root (hd0,4)

kernel /boot/vmlinuz-2.6.18.2-34-default root=/dev/sda5 vga=0x317 resume=/dev/sda6 splash=silent showopts

initrd /boot/initrd-2.6.18.2-34-default

 

 

Any ideas ?

Edited by Littleguy
Link to comment
Share on other sites

copy this part:

title openSUSE 10.2
root (hd0,4)
kernel /boot/vmlinuz-2.6.18.2-34-default root=/dev/sda5 vga=0x317 resume=/dev/sda6 splash=silent showopts
initrd /boot/initrd-2.6.18.2-34-default

 

and manually add it to grub, it should work. Don't let the fact that the Suse initrd isn't named *.img, that shouldn't be an issue.

Link to comment
Share on other sites

Thanks for the help guys :)

 

I opened the menu.lst file from grub in mandriva with openoffice but it won't let be modifie it when I trie to Save.

 

I know how to log on as root on the Root shell, but I don't know how to edit in command prompt. :(

 

This is my first time playing with this kind of stuff :unsure:

 

any advice with be appreciated :D

Link to comment
Share on other sites

In the command prompt, you first log an root with the su command.

$ su	Click ENTER
Password:	type your root password here, click ENTER

 

Now you type

kwrite /boot/grub/menu.lst

 

And now you can paste the SUSE entry into the menu.lst, and save it. :D

Link to comment
Share on other sites

or alternatively:

su -c "kwrite /boot/grub/menu.lst"

 

and then enter your root password. With this your login to the root account is restricted editing the file in this one instance, this way you cannot do any damage anything other than to the grub file you are working on (and kwrite should create a back-up). IMO it is better to do this now, rather than get lazy and leave root logged in unnecessarily.

Link to comment
Share on other sites

Or completely graphically by going on to KDE's Run Command dialog:

 

Star > Run Command

 

Then clicking on Other Options and selecting on run as different user and typing:

User: root

Password: your_password

 

and running kwrite or kate (depending on what you have) and editing the menu.lst

post-2044-1184211345_thumb.png

Link to comment
Share on other sites

I often use this approach after installing a new Linux OS with Grub on the new root partition.

 

Example with new Suse OS on sda7 and Suse grub on sda7:

# linux installation on /dev/sda7
title Suse
configfile (hd0,6)/boot/grub/menu.lst

 

This way every OS keeps it's grub menu and grub graphics. When choosing Suse on startup you'll be presented with the full Suse Grub menu and graphics. This is just an easy alternative. :)

Edited by opvask
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...