PDA

View Full Version : [ubuntu] no boot menu



samz013
November 24th, 2010, 03:06 PM
i just installed ubuntu 10.10 along with opensuse. i installed the boot loader on ubuntu root partition (sda5), now i dont see boot option to choose ubuntu. any help? hehe.. thx

mikewhatever
November 24th, 2010, 04:11 PM
Well, you'd better ask a Suse expert how to add Ubuntu and its bootloader to that of Suse.

drs305
November 24th, 2010, 04:16 PM
samz013,

If you are still seeing the Suse bootloader, with no Ubuntu menuentry, it might be best to follow mikewhatever 's recommendation.

If you don't see any menu at all, hold down the SHIFT key during the initial boot. That may display the Grub2 menu.

You mention you installed Grub to sda5. Did you actually install G2 to the partition instead of the MBR (did it complain), or is it just that your Ubuntu install is on sda5?

We can tell a lot if you would run the boot info script from the following link and post the contents of the generated RESULTS.txt.
http://bootinfoscript.sourceforge.net (http://bootinfoscript.sourceforge.net)

samz013
November 24th, 2010, 07:20 PM
i tried the shift key, it shows the grub2 but it still go for suse.

it's a ubuntu install on sda5, yah i think i installed mbr, cause there was a check to install the multiboot loader during the installation.

this is the result:


============================= Boot Info Summary: ==============================

=> Acer 3 is installed in the MBR of /dev/sda

sda1: __________________________________________________ _______________________

File system: ext4
Boot sector type: Grub
Boot sector info: Grub 0.97 is installed in the boot sector of sda1 and
looks at sector 12852288 of the same hard drive for
the stage2 file. A stage2 file is at this location on
/dev/sda. Stage2 looks on partition #1 for
/boot/grub/menu.lst.
Operating System: Welcome to openSUSE 11.3 "Teal"
- Kernel ().
Boot files/dirs: /boot/grub/menu.lst /etc/fstab

sda5: __________________________________________________ _______________________

File system: ext4
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda5 and
looks at sector 119459376 of the same hard drive for
core.img, but core.img can not be found at this
location.
Operating System: Ubuntu 10.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 * 2,048 20,965,375 20,963,328 83 Linux
/dev/sda2 62,910,464 67,102,719 4,192,256 82 Linux swap / Solaris
/dev/sda3 67,102,720 109,049,855 41,947,136 83 Linux
/dev/sda4 109,051,902 171,548,671 62,496,770 5 Extended
/dev/sda5 109,051,904 128,581,631 19,529,728 83 Linux
/dev/sda6 128,583,680 167,643,135 39,059,456 83 Linux
/dev/sda7 167,645,184 171,548,671 3,903,488 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 69928067-f9eb-4004-a898-70eaacd819fd ext4
/dev/sda2 2360a0ee-0289-4f50-8ba9-d2e53d531b90 swap
/dev/sda3 54aebce0-538d-4fe5-96f3-4fc76d86e92b ext4
/dev/sda4: PTTYPE="dos"
/dev/sda5 c2948afe-54d8-4c4c-a93a-0ba0a4fc78a4 ext4
/dev/sda6 480f390e-d16c-4ddb-85b5-f651eef2ce57 ext4
/dev/sda7 e2706d3f-fa8a-4cf8-9074-4441d9954819 swap
/dev/sda: PTTYPE="dos"

=========================== sda5/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set c2948afe-54d8-4c4c-a93a-0ba0a4fc78a4
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set c2948afe-54d8-4c4c-a93a-0ba0a4fc78a4
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set c2948afe-54d8-4c4c-a93a-0ba0a4fc78a4
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=c2948afe-54d8-4c4c-a93a-0ba0a4fc78a4 ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set c2948afe-54d8-4c4c-a93a-0ba0a4fc78a4
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=c2948afe-54d8-4c4c-a93a-0ba0a4fc78a4 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###

drs305
November 24th, 2010, 07:37 PM
Suse uses Grub legacy and is installed on sda1.

Ubuntu has Grub2 installed on the partition.

RESULTS.txt shows 'Acer' installed on the MBR.

I can't comment on how Suse interacts with whatever 'Acer 3' is on the MBR.

I will tell you how to get Grub2 working. This may or may not be what you want to do. Feel free to ask more questions if you want before deciding. I would keep the bootloader of the OS you are going to use most often, unless it continues to provide problems.

If you want to install Ubuntu's bootloader in the normal manner and have it control the boot process, boot normally to your Ubuntu installation and then run:

sudo grub-install
This will install G2 on the MBR, pointing to your sda5 Ubuntu grub.cfg file.

If you can't boot into Ubuntu, you can use the LiveCD, mount your Ubuntu partition, and then install G2:


sudo mount /dev/sda5 /mnt
sudo grub-install --root-directory=/mnt /dev/sda

I see that Grub2 has not found your other linux OS. This can be because you haven't run "sudo update-grub" since installing Ubuntu, or perhaps because /etc/grub.d/30_os-prober is either not installed (Lubuntu) or is not executable. (You can make it executable, if present, with: sudo chmod +x /etc/grub.d/30_os-prober).
After rebooting into Ubuntu (without the CD), run:

sudo chmod +x /etc/grub.d/30_os-prober
sudo update-grub

If you decide to use G2 and Suse still doesn't show up in the menu, let us know and someone will be able to tell you how to include it.

samz013
November 25th, 2010, 02:25 PM
i booted from the live cd and then install the g2, the only difference is i get suse's booting output, its okay though.. nevertheless it works, thanks hehehe..