How to use Ubuntu's grub to install Sabayon

Installer Issues via Installer -- Not for global upgrades or upgrading individual packages -- ONLY ISSUES WITH INSTALLATION OF THE OS -- Can't get Sabayon installed, than post here, otherwise use correct forums

Moderator: Moderators

How to use Ubuntu's grub to install Sabayon

Postby Ballakay » Sat Jul 25, 2009 6:11

This is my menu.lst
Code: Select all
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default      5

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout      10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title      Windows 95/98/NT/2000
# root      (hd0,0)
# makeactive
# chainloader   +1
#
# title      Linux
# root      (hd0,1)
# kernel   /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=f00e6a00-1704-4030-8542-349244d111ce ro locale=zh_CN

## default grub root device
## e.g. groot=(hd0,0)
# groot=f00e6a00-1704-4030-8542-349244d111ce

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
##      indomU=true
##      indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title      Ubuntu 9.04, kernel 2.6.28-14-generic
uuid      f00e6a00-1704-4030-8542-349244d111ce
kernel      /boot/vmlinuz-2.6.28-14-generic root=UUID=f00e6a00-1704-4030-8542-349244d111ce ro locale=zh_CN quiet splash
initrd      /boot/initrd.img-2.6.28-14-generic
quiet

title      Ubuntu 9.04, kernel 2.6.28-14-generic (recovery mode)
uuid      f00e6a00-1704-4030-8542-349244d111ce
kernel      /boot/vmlinuz-2.6.28-14-generic root=UUID=f00e6a00-1704-4030-8542-349244d111ce ro locale=zh_CN  single
initrd      /boot/initrd.img-2.6.28-14-generic

title      Ubuntu 9.04, memtest86+
uuid      f00e6a00-1704-4030-8542-349244d111ce
kernel      /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title      Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title      Microsoft Windows (XP&Vista)
rootnoverify   (hd0,0)
savedefault
makeactive
chainloader   +1


title Install Linux
root (hd0,7)
kernel /boot/sabayon
  append root=/dev/ram0 initrd=/boot/sabayon.igz aufs init=/linuxrc cdroot=LABEL=/ looptype=squashfs max_loop=64 loop=/livecd.squashfs splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 noaccelmanager quiet --

Here is the error info:Kernel panic: No init found. Try passing init= option to kernel
I am new here!Please help me!
Ballakay
Baby Hen
 
Posts: 2
Joined: Fri Jul 24, 2009 19:53

Re: How to use Ubuntu's grub to install Sabayon

Postby wolfden » Sat Jul 25, 2009 8:53

I'm not understanding what you are asking

I assume you have ubuntu installed and installed Sabayon Linux without grub, so all you have to do is add the Sabayon Linux information to your current grub menu lst.

something like
Code: Select all
#
title=Sabayon Linux (kernel-genkernel-x86_64-2.6.29-sabayon)
#
root (hd1,6)
#
kernel /kernel-genkernel-x86_64-2.6.29-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/sdb8 quiet init=/linuxrc splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 dodmraid pci=nomsi res=1440x900 dolvm
#
initrd /initramfs-genkernel-x86_64-2.6.29-sabayon
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: How to use Ubuntu's grub to install Sabayon

Postby N.G.D.G. » Mon May 17, 2010 14:07

Hi,

I am using Ubuntu 10.04 and i have just installed Sabayon 5.2. After installiation, i restarted computer,opened Ubuntu and gave this code:
Code: Select all
sudo update-grub
.Here is the output:
Code: Select all
Found linux image: /boot/vmlinuz-2.6.32-22-generic
Found initrd image: /boot/initrd.img-2.6.32-22-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Gentoo Base System release 2.0.1 on /dev/sda2
done


Then i restarted computer but could not see Sabayon on the boot screen. So, i rewrite my grub.cfg file of Ubuntu by help of the output above but it did not work. It was that:

Code: Select all
menuentry "Sabayon (on /dev/sda2)" {
   insmod ext2
   set root=(hd0,2)
   search --no-floppy --fs-uuid --set 2fc19b09-0cdb-4684-8a45-3e739e3410b6
   kernel /boot/kernel-genkernel-x86-2.6.33-sabayon  root=/dev/sda2 init=/linuxrc
   initrd /boot/initramfs-genkernel-x86-2.6.33-sabayon
   }



Because if i restart my computer, entries about Sabayon in grub.cfg of Ubuntu is cleared. What should i do?

Code: Select all
sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00062220

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        2490    20000893+  83  Linux
/dev/sda2   *        2491        4980    20000925   83  Linux
/dev/sda3            4981       38913   272566792    5  Extended
/dev/sda5            4981        5042      497983+  82  Linux swap / Solaris
/dev/sda6            5043       38913   272068776   83  Linux


Code: Select all
blkid
/dev/sda2: LABEL="sabayon" UUID="2fc19b09-0cdb-4684-8a45-3e739e3410b6" TYPE="ext4"
/dev/sda5: UUID="e4568bcd-73fe-40fb-8fc2-d08b9f96d166" TYPE="swap"
/dev/sda6: LABEL="fs" UUID="0ea01eb7-2d24-427c-b682-bdde9b8a14bd" TYPE="ext4"
N.G.D.G.
Baby Hen
 
Posts: 3
Joined: Mon May 17, 2010 13:05

Re: How to use Ubuntu's grub to install Sabayon

Postby wolfden » Tue May 18, 2010 5:21

You added it to the grub of ubuntu, but it didn't appear? It sounds like you are not editing it properly and I don't know if you are using grub legacy or grub 2? There is difference of editing between the two.
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: How to use Ubuntu's grub to install Sabayon

Postby N.G.D.G. » Tue May 18, 2010 11:25

wolfden wrote:You added it to the grub of ubuntu, but it didn't appear? It sounds like you are not editing it properly and I don't know if you are using grub legacy or grub 2? There is difference of editing between the two.


Thank you for your replay @wolfden. Yes, i added it to the grub of ubuntu and i am using grub legacy, not grub2.

I solved my problem by making grub.cfg writeble and adding parametres below.

Code: Select all
menuentry "Sabayon (on /dev/sda2)" {
   insmod ext2
   set root=(hd0,2)
   search --no-floppy --fs-uuid --set 2fc19b09-0cdb-4684-8a45-3e739e3410b6
   linux /boot/kernel-genkernel-x86-2.6.33-sabayon  root=/dev/ram0 ramdisk=8192 real_root=UUID=2fc19b09-0cdb-4684-8a45-3e739e3410b6 dolvm init=/linuxrc splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 quiet resume=swap:/dev/sda5 real_resume=swap:/dev/sda5
   initrd /boot/initramfs-genkernel-x86-2.6.33-sabayon
   }
N.G.D.G.
Baby Hen
 
Posts: 3
Joined: Mon May 17, 2010 13:05

Re: How to use Ubuntu's grub to install Sabayon

Postby wolfden » Tue May 18, 2010 11:30

glad u got it sorted :)
wolfden
Sharecropper
 
Posts: 9050
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: How to use Ubuntu's grub to install Sabayon

Postby N.G.D.G. » Sat Jun 05, 2010 10:19

wolfden wrote:glad u got it sorted :)

Thanks:)
N.G.D.G.
Baby Hen
 
Posts: 3
Joined: Mon May 17, 2010 13:05


Return to Installer Issues - Calamares **Not for Package Manager Stuff**

Who is online

Users browsing this forum: No registered users and 2 guests