ubuntu fails to boot after install.

Bug #426238 reported by Dave Morley
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Wubi
Fix Released
High
Agostino Russo

Bug Description

After a successful install on both the windows and linux side I get the following error from grub trying to access the system:

error: You need to load the kernel first
press any key to continue...

Grub run Line reads:

set quiet=1
insmod ntfs
set root=(hd0,3)
search --no-floppy --fs-uuid --set f6863c88863c4b7f
linux /vmlinuz-2.6.31-9-generic root=/host/ubuntu/disks/root.disk ro \
quiet splash
initrd /initrd.img-2.6.31-9-generic

I will post the wubi log shortly.

Tags: iso-testing
Revision history for this message
Dave Morley (davmor2) wrote :
Revision history for this message
Agostino Russo (ago) wrote :

Update-grub needs a script to modify grub.cfg for loop installations.
I will patch lupin to do that

Revision history for this message
Dave Morley (davmor2) wrote :

As a temporary work round at the grub line hit e and change to the following

set quiet=1
insmod ntfs
set root=(hd0,3)
search --no-floppy --fs-uuid --set f6863c88863c4b7f
linux /ubuntu/disks/boot/vmlinuz-2.6.31-9-generic root=/dev/sda1 loop=/ubuntu/disks/root.disk ro \
quiet splash
initrd /ubuntu/disks/boot/initrd.img-2.6.31-9-generic

then hit ctrl-x

This will then boot.

*DON'T CHANGE YOUR UUID NUMBER TOO MINE LEAVE IT BE*
*change root=/dev/sda1 to whatever your disc should be*

Revision history for this message
Dave Morley (davmor2) wrote :

to change this permanently please edit your /boot/grub/grub.cfg file to the above

Revision history for this message
Agostino Russo (ago) wrote :

Well /boot/grub/grub.cfg will be overwritten once you run update-grub, the lupin patch will add a grub.d script to set things for good. I am waiting to sort out grub2 loopmount capabilities before submitting the patch, since grub.cfg depends on it.

Agostino Russo (ago)
Changed in wubi:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Agostino Russo (ago)
Revision history for this message
Zartan (mattik-deactivatedaccount) wrote :

Hello,

My bugs are allways invalid or duplicate, so I add comment to this bug:

I did changes to grub.cnf by windows ( e button didn't work). I still have the next errors when selecting kubuntu in boot menu

Syntax error
Incorrect command
syntax error
Could not find bootloader configuration
syntax error
Incorrect command
syntax error
sh:grub>

I attach my grub.cnf to this:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=10
### END /etc/grub.d/00_header ###

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

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-9-generic" {
  set quiet=1
 insmod ntfs
 set root=(hd0,1)
 search --no-floppy --fs-uuid --set 52908cb5908ca159
 linux /ubuntu/disks/boot/vmlinuz-2.6.31-9-generic root=/dev/sda1
 loop=/ubuntu/disks/root.disk ro \
 quiet splash
 initrd /ubuntu/disks/boot/initrd.img-2.6.31-9-generic
}
menuentry "Ubuntu, Linux 2.6.31-9-generic (recovery mode)" {
  insmod ntfs
 set root=(hd0,1)
 search --no-floppy --fs-uuid --set 52908cb5908ca159
 linux /ubuntu/disks/boot/vmlinuz-2.6.31-9-generic root=/host/ubuntu/disks/root.disk ro single
 initrd /ubuntu/disks/initrd.img-2.6.31-9-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
 linux /ubuntu/disks/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
 linux /ubuntu/disks/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if keystatus; then
  if keystatus --shift; then
    set timeout=-1
  else
    set timeout=0
  fi
else
  if sleep --interruptible 3 ; then
    set timeout=0
  fi
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###

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

So what is right way to edit grub.cnf if e button doesn't work in grub:sh> command line?

Thank you very much. I create new bug if you want

Revision history for this message
Steve Langasek (vorlon) wrote :

It would be very good to have this bug fixed for alpha 6, since there have been several milestones without a working wubi now.

Revision history for this message
niski (bjauy) wrote :

Zartan: it means that kubuntu can't find configfile for grub... type in that shell:

configfile (hdx,x)/ubuntu/disks/boot/grub/grub.cnf

and grub should start (replace x,x by your disk/partition numbers, you can also autocomplete with tab).
BTW I guess it's a different bug.

Revision history for this message
MarcRandolph (mrand) wrote :

Still broken on Karmic beta candidate disk for Mythbuntu.
Bug #431285 may be a duplicate.

Revision history for this message
MarcRandolph (mrand) wrote :

Attaching log for the install that resulted in the failed install.

Revision history for this message
MarcRandolph (mrand) wrote :

Ooops, make that "Attaching log for the install that resulted in the failed BOOT".

Agostino Russo (ago)
Changed in wubi:
status: Confirmed → Fix Released
Revision history for this message
srini (schalla76) wrote :

New to wubi, where can I get the latest fix?

Where to download latest wubi.exe for 9.10?

Thanks.

tags: added: iso-testing
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.