You are not logged in.

#1 2011-03-04 22:52:49

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Dual boot with Ubuntu

Im installing ubuntu in the same HD as Arch... (for android development)

Ubuntu's root is in /dev/sda7 (ext4) and im trying to add an entry in arch's grub so that i can switch to Ubuntu's GRUB menu..... but i seem to not be able to figure out how.....
When asked where to install the bottloader, i chose /dev/sda7 (i dont want to wreck arch linux's current boot loader)

Can anyone shed some light on this issue?

Thanks!!!

Last edited by Xi0N (2011-03-04 22:54:53)

Offline

#2 2011-03-04 22:56:09

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Re: Dual boot with Ubuntu

Xi0N wrote:

Im installing ubuntu in the same HD as Arch... (for android development)

Ubuntu's root is in /dev/sda7 (ext4) and im trying to add an entry in arch's grub so that i can switch to Ubuntu's GRUB menu..... but i seem to not be able to figure out how.....
When asked where to install the bottloader, i chose /dev/sda7 (i dont want to wreck arch linux's current boot loader)

Can anyone shed some light on this issue?

Thanks!!!

You know you don't have to have a separate bootloader right?  You can boot them both from the same bootloader, just need to copy Ubuntu's bzImage (or whatever they use) to the boot drive and add the correct line to your menu.lst.


#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

#3 2011-03-04 22:57:49

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: Dual boot with Ubuntu

lifeafter2am wrote:
Xi0N wrote:

Im installing ubuntu in the same HD as Arch... (for android development)

Ubuntu's root is in /dev/sda7 (ext4) and im trying to add an entry in arch's grub so that i can switch to Ubuntu's GRUB menu..... but i seem to not be able to figure out how.....
When asked where to install the bottloader, i chose /dev/sda7 (i dont want to wreck arch linux's current boot loader)

Can anyone shed some light on this issue?

Thanks!!!

You know you don't have to have a separate bootloader right?  You can boot them both from the same bootloader, just need to copy Ubuntu's bzImage (or whatever they use) to the boot drive and add the correct line to your menu.lst.

Once I managed to add a couple of lines to arch's grub so i can jump to ubuntu's grub, and another entry in ubuntu's grub to jump back to arch's grub..... i would prefer this setup.... smile

Last edited by Xi0N (2011-03-04 22:58:12)

Offline

#4 2011-03-04 23:05:01

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Re: Dual boot with Ubuntu

Xi0N wrote:

Once I managed to add a couple of lines to arch's grub so i can jump to ubuntu's grub, and another entry in ubuntu's grub to jump back to arch's grub..... i would prefer this setup.... smile

Well I've never done it before, but my guess is that you would pass simular options to the new bootloader as if you were booting windows.  So something like:

title Ubuntu
rootnoverify (hd0,6)
makeactive
chainloader +1

Could be wrong though, I would check the man pages for grub.


#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

#5 2011-03-04 23:13:37

Xi0N
Member
From: Bilbao - Spain
Registered: 2007-11-29
Posts: 832
Website

Re: Dual boot with Ubuntu

Yes, that is what I have been trying.... but it does not boot... sad

Offline

#6 2011-03-05 00:00:16

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: Dual boot with Ubuntu

I dual boot with Ubuntu (10.04 at the moment) and just have

# (2) Second Desktop
title Second Desktop
root (hd0,1)
chainloader +1

in Arch's /boot/grub/menu.lst.  Usefully, I found that Arch's kernel was automatically installed in Ubuntu's grub menu.

Offline

#7 2011-03-05 00:26:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: Dual boot with Ubuntu

Are both partitions tagged as bootable ( check with fdisk, but be careful)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2011-03-05 16:23:29

xamaco
Member
From: Corsica, France
Registered: 2010-04-05
Posts: 87

Re: Dual boot with Ubuntu

I still have the Ubuntu I used before switching to Arch.
It is on sda1.
Here are the working settings I have in my grub.

# Ubuntu 1
title   Ubuntu boot
root    (hd0,0)
uuid    4e754dd5-9933-4e28-89d4-332453de919c
kernel  /boot/grub/core.img

One way to get the UUID corresponding to your sda7:

ls -l /dev/disk/by-uuid/

Offline

Board footer

Powered by FluxBB