Boot Ubuntu [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Boot Ubuntu [Solved]

Postby 00110111 » Mon Apr 06, 2009 22:32

Hello. I just got Sabayon last night, and I was wondering how I can boot into my Ubuntu here is my grub.conf that Sabayon generated:
Code: Select all
# grub.conf generated by the Sabayon Linux Installer
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,8)
#          kernel /kernel-genkernel real_root=UUID=957eeceb-f995-40d8-ba81-f569fb6e9404
#          initrd /initramfs-genkernel
#boot=sda
default=0
timeout=6
splashimage=(hd0,8)/grub/splash.xpm.gz

title Sabayon Linux x86-64 (genkernel-x86_64-2.6.27-sabayon)
   root (hd0,8)
   kernel /kernel-genkernel-x86_64-2.6.27-sabayon  root=/dev/ram0 ramdisk=8192 real_root=UUID=957eeceb-f995-40d8-ba81-f569fb6e9404 dolvm  quiet  init=/linuxrc splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 resume=swap:/dev/sda8
   initrd /initramfs-genkernel-x86_64-2.6.27-sabayon

title Sabayon Linux x86-64 (genkernel-x86_64-2.6.27-sabayon) (safe mode)
   root (hd0,8)
   kernel /kernel-genkernel-x86_64-2.6.27-sabayon root=/dev/ram0 ramdisk=8192 real_root=UUID=957eeceb-f995-40d8-ba81-f569fb6e9404 dolvm init=/linuxrc CONSOLE=/dev/tty1 resume=swap:/dev/sda8 nox acpi=off ide=nodma vga=normal
   initrd /initramfs-genkernel-x86_64-2.6.27-sabayon

title Other Operating System - Sabayon Linux x86-64 4
   rootnoverify (hd0,9)
   chainloader +1
title Other Operating System - Microsoft Windows
   rootnoverify (hd0,0)
   chainloader +1


I am wondering how to edit this file to allow me to boot into Ubuntu. Ubuntu is on dev/sda7.
00110111
Young Hen
 
Posts: 30
Joined: Fri Apr 03, 2009 22:40
Location: ~/Desktop

Re: Boot Ubuntu

Postby joeoden » Tue Apr 07, 2009 0:09

Copy the Ubuntu entry from grub.conf (or menu.lst) on dev/sda7/boot/grub and then paste it as root into your Sabayon grub.conf (not menu.lst) save and the reboot.

Tip! If you haven't done so already create a backup image of all your partitions (I use partimage) also if you plan to update Sabayon create an image of your sabayon partion before you update (at least you can restore it instead of reinstalling when something goes wrong)
Have fun learning Sabayon (I am)
Desktop ASUS M2N-MX SE Plus, AMD 64 X2 Dual Core 5200, 4 Gb RAM, GeForce 9500 1GB
Notebook HP CQ61-311AX, AMD CPU M320, 4 Gb RAM, Radeon HD 4300 512 MB
Wireless AR9285, Audio ATI SBx00 (IDT 92hd75B2x5)
Some mistakes are too much fun to only make once!
joeoden
Old Dear Hen
 
Posts: 475
Joined: Sun Mar 15, 2009 10:35
Location: Back in the 'swamp land' Moe, Australia 38°10′20″S 146°16′04″E

Re: Boot Ubuntu

Postby 00110111 » Wed Apr 08, 2009 16:44

Could you give me an example? I tried that already, but it didn't work.
00110111
Young Hen
 
Posts: 30
Joined: Fri Apr 03, 2009 22:40
Location: ~/Desktop

Re: Boot Ubuntu

Postby xlnagla » Wed Apr 08, 2009 21:38

Hello there,

Could you also paste your ubuntu grub.conf and the output of fdisk -l for us? Also, do you use a separate boot partition, or do you just have /boot as a folder off of the root partition of your disk? Most likely you'll have to copy your kernel, initial ram disk, and system map from ubuntu's /boot to Sabayon's in order to boot them both with minimal effort. Or you could just have Sabayon's grub look in Ubuntu's /boot for the kernel files. We'll know more once you show us your other grub.conf and fdisk -l

~xlnagla
xlnagla
Sagely Hen
 
Posts: 1078
Joined: Mon May 28, 2007 2:44

Re: Boot Ubuntu

Postby joeoden » Thu Apr 09, 2009 13:54

Fist off sorry about the typo's in my last post

Just like yourself I am new to Sabayon and have made the switch from MS

I don't have Ubuntu but do have Scientific Linux and Debian installed (they do boot from my Sabayon grub.conf) I also use the KDE GUI so I suggest you start Sabayon by selecting KDE 3.5 from the Session menu before you login, unless you know how to use a file manager as super user under Gnome.

My example is the way I prefer to edit the config files and is not necessarily the correct way but it works for me.

I don't know how much you know about using the GUI the assumption is you don't, so I apologize for making the example to simple apart from adding snapshots and for still using some MS terminology.

Click = pressing the left mouse button once

1. Open Konqueror as superuser
Click on the kde Menu button then navigate to System, More Applications and click on File Manager-Super User Mode
The password dialog will appear, type your root password and press Enter or click OK, Konqueror will open in a window

2. Click on the System button
That is if it is not already selected on the Left Tabs, left hand side of Konqueror in the Navigation panel

3. Click on Storage Media
Then click the reload button or press the F5 key (because nothing is displayed in the right hand side of Konqueror)

4. Click the + next to Storage Media in the left hand side of Konqueror

5. Find your /dev/sda7 in the left hand side of Konqueror
If you don't know how, hold mouse over each media entry for a few seconds until the Tooltip pop-up appears (System:/media/sda7)

6. Click the + next to your /sda7

7. Click the + next to boot

8. Click on Grub

9. Double click on grub.conf or menu.lst in the right hand side of Konqueror
The file will open in Kwrite

10. Highlight your Ubuntu entry
If you don't know how to highlight, just click and drag starting from title to the end of the entry or to the beginning of title of the next entry (if you want or don't have a center mouse button you can right click on the highlight selection and click on copy in the context menu)

11. Then make the Konqueror window active (click on it or select from Taskbar)

12. Click on the Root Folder button on the Left Tabs (the red folder), left hand side of Konqueror in the Navigation panel

13. Click the + next to boot

14. Click on Grub

15. Double click on grub.conf in the right hand side of Konqueror
The file will open in Kwrite

16. Now go to the bottom of your grubconf and start a new line (click at the end of the last entry, then press the Enter key)

17. Now just Center mouse button click (this will paste your highlighted Ubuntu entry from the grubconfig on your /sda7
If you haven't a center (wheel) mouse button then just right click at the start of the new line and click on Paste

18. Close the file saving the changes (save dialog will appear asking you what to do when you close file)

19. Close all other open windows

20. Restart computer (logout, shutdown, restart)

Your new entry will now be displayed and you should be able to boot to your new entry.

Hope it works for you
If doesn't, do what xlnagla asks
Joe

Here is my grub.conf

# grub.conf generated by the Sabayon Linux Installer
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,3)
# kernel /boot/kernel-genkernel real_root=UUID=7e60da11-8ecb-42c5-a8f4-cb7e632b1b35
# initrd /boot/initramfs-genkernel
#boot=sda
default=0
timeout=6
splashimage=(hd0,3)/boot/grub/splash.xpm.gz

title=Sabayon Linux (kernel-genkernel-x86_64-2.6.29-sabayon)
root (hd0,3)
kernel /boot/kernel-genkernel-x86_64-2.6.29-sabayon root=/dev/ram0 ramdisk=8192 real_root=UUID=7e60da11-8ecb-42c5-a8f4-cb7e632b1b35 quiet init=/linuxrc splash=silent,theme:sabayon vga=0x0369 CONSOLE=/dev/tty1 resume=swap:/dev/sda7 dolvm
initrd /boot/initramfs-genkernel-x86_64-2.6.29-sabayon

title Other Operating System - Microsoft Windows
rootnoverify (hd0,0)
chainloader +1

title Debian GNU/Linux, kernel 2.6.26-1-amd64
root (hd0,7)
kernel /boot/vmlinuz-2.6.26-1-amd64 root=/dev/sda8 ro quiet
initrd /boot/initrd.img-2.6.26-1-amd64

title Scientific Linux (2.6.18-128.1.1.el5)
root (hd0,2)
kernel /boot/vmlinuz-2.6.18-128.1.1.el5 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-128.1.1.el5.img

title=Sabayon Linux Tester (kernel-genkernel-x86_64-2.6.29-sabayon)
root (hd0,8)
kernel /boot/kernel-genkernel-x86_64-2.6.29-sabayon root=/dev/ram0 ramdisk=8192 real_root=UUID=1f394abf-556c-43b9-930b-339a3fc44cdc quiet init=/linuxrc splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 resume=swap:/dev/sda7 dolvm
initrd /boot/initramfs-genkernel-x86_64-2.6.29-sabayon
Desktop ASUS M2N-MX SE Plus, AMD 64 X2 Dual Core 5200, 4 Gb RAM, GeForce 9500 1GB
Notebook HP CQ61-311AX, AMD CPU M320, 4 Gb RAM, Radeon HD 4300 512 MB
Wireless AR9285, Audio ATI SBx00 (IDT 92hd75B2x5)
Some mistakes are too much fun to only make once!
joeoden
Old Dear Hen
 
Posts: 475
Joined: Sun Mar 15, 2009 10:35
Location: Back in the 'swamp land' Moe, Australia 38°10′20″S 146°16′04″E

Re: Boot Ubuntu

Postby 00110111 » Sat Apr 11, 2009 23:24

Thanks a lot joeoden! All I needed was an example of what would boot, like your grub.conf file. Sorry you had to go through all of those instructions, but all i needed was an example. I am sure it will it someone else googling the subject though.
00110111
Young Hen
 
Posts: 30
Joined: Fri Apr 03, 2009 22:40
Location: ~/Desktop

Re: Boot Ubuntu

Postby joeoden » Sun Apr 12, 2009 1:41

Not a problem, glad I could help.

Don't forget to mark as solved.

Joe
Desktop ASUS M2N-MX SE Plus, AMD 64 X2 Dual Core 5200, 4 Gb RAM, GeForce 9500 1GB
Notebook HP CQ61-311AX, AMD CPU M320, 4 Gb RAM, Radeon HD 4300 512 MB
Wireless AR9285, Audio ATI SBx00 (IDT 92hd75B2x5)
Some mistakes are too much fun to only make once!
joeoden
Old Dear Hen
 
Posts: 475
Joined: Sun Mar 15, 2009 10:35
Location: Back in the 'swamp land' Moe, Australia 38°10′20″S 146°16′04″E


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 1 guest