You are not logged in.

#1 2010-05-11 04:28:45

heathbar5477
Member
Registered: 2010-01-12
Posts: 9

Unable to dual boot ubuntu

I have arch and ubuntu both successfully installed on my machine (arch is my main os, ubuntu is backup) and I am having trouble getting Ubuntu to load up from the grub menu.lst from arch's boot partition.  here is the relevant part of my menu.lst:

# (0) Arch Linux                                                                                                                                                                                                 
title  Arch Linux
root   (hd0,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/cc5e81eb-b552-4b81-b853-9c6a738f9536 ro vga=773
initrd /kernel26.img

# (1) Arch Linux                                                                                                                                                                                                 
title  Arch Linux Fallback
root   (hd0,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/cc5e81eb-b552-4b81-b853-9c6a738f9536 ro
initrd /kernel26-fallback.img

# (2) Ubuntu                                                                                                                                                                                                     
title Ubuntu
root (hd0,6)
kernel /vmlinuz-2.6.32-21-generic root=/dev/disk/by-uuid/c9a28a6f-3eb1-45ac-b679-b18b9057182f ro quiet splash
initrd /initrd.img-2.6.32-21-generic


I have checked multiple times, Ubuntu is indeed installed on sda6 (which I assume means I should put (hd0, 6) correct me if I'm wrong) and the UUID for the partition that Ubuntu is on is correct.  The grub error message that appears when I attempt to boot Ubuntu is:

root(hd0,6)
  filesystem type is ext2fs partition type 0x83
  kernel /vmlinuz-2.6.32-21-generic root=/dev/disk/by-uuid/c9a28a6f-3eb1-45ac-b679-b18b9057182f ro quiet splash
 
  Error 15: File not found

Offline

#2 2010-05-11 04:33:05

pseudonomous
Member
Registered: 2008-04-23
Posts: 349

Re: Unable to dual boot ubuntu

I think you probably need to correct this entry:

# (2) Ubuntu                                                                                                                                                                                                      
title Ubuntu
root (hd0,6)
kernel /boot/vmlinuz-2.6.32-21-generic root=/dev/disk/by-uuid/c9a28a6f-3eb1-45ac-b679-b18b9057182f ro quiet splash
initrd /initrd.img-2.6.32-21-generic

I assume you have no seperate /boot partition for ubuntu?  So the kernel file isn't in the root directory of the partition, it lies in the /boot directory.

Offline

#3 2010-05-11 05:06:12

heathbar5477
Member
Registered: 2010-01-12
Posts: 9

Re: Unable to dual boot ubuntu

when I correct that line I receive the same error message except it says .../boot/vmlinuz... file not found

Offline

#4 2010-05-11 05:28:54

quigybo
Member
Registered: 2009-01-15
Posts: 223

Re: Unable to dual boot ubuntu

you need to figure out where both vmlinuz and initrd are relative to sda6 (they will be in the same folder).

so it will either be

kernel /vmlinuz-2.6.32-21-generic root=/dev/disk/by-uuid/c9a28a6f-3eb1-45ac-b679-b18b9057182f ro quiet splash
initrd /initrd.img-2.6.32-21-generic

or more likely

kernel /boot/vmlinuz-2.6.32-21-generic root=/dev/disk/by-uuid/c9a28a6f-3eb1-45ac-b679-b18b9057182f ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic

Offline

#5 2010-05-11 05:35:35

heathbar5477
Member
Registered: 2010-01-12
Posts: 9

Re: Unable to dual boot ubuntu

yes I tried that too, putting /boot/ in front of vmlinuz.. and initrd..., because they are both in /boot, I have checked the spelling of both multiple times

Offline

#6 2010-05-11 06:53:26

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Unable to dual boot ubuntu

You might want to look at chainloading Ubuntu: http://wiki.archlinux.org/index.php/GRU … NU.2FLinux

Also, you can find where grub's root is with

 > grub find ..

http://wiki.archlinux.org/index.php/Gru … B.27s_root

Last edited by jasonwryan (2010-05-11 06:53:47)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2010-05-11 08:32:42

boulde
Member
Registered: 2009-10-05
Posts: 41

Re: Unable to dual boot ubuntu

Ubuntu is indeed installed on sda6 (which I assume means I should put (hd0, 6) correct me if I'm wrong)

sda6 corresponds to (hd0, 5)

to avoid this kind of problems, with the same config (Arch + Ubuntu as secondary distro), I asked Ubuntu to put its grub in its own / partition, and in Arch's grub I put an Ubuntu entry that "chainload" to Ubuntu's grub.

Offline

Board footer

Powered by FluxBB