[XP+10.10+Natty] ]boot failure with natty 11.04 alpha-1

Asked by hub_cap

I have on 160gb hd, windows xp, Ubuntu 10.10 and Ubuntu 11.04

I installed 11.04 alpha1 on /dev/sda8, then rebooted and tried to run Natty with the following results.

error: no such device: 1e31d....
error: no such partition
error: you need to load the kernel first

press any key
--------------------------------------
contents of grub.cfg using grub-pc
---------------------------------------

### 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 86a480e4-8a34-49c9-8d35-11bc6d859b27
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 86a480e4-8a34-49c9-8d35-11bc6d859b27
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-24-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 86a480e4-8a34-49c9-8d35-11bc6d859b27
 linux /boot/vmlinuz-2.6.35-24-generic root=UUID=86a480e4-8a34-49c9-8d35-11bc6d859b27 ro quiet splash
 initrd /boot/initrd.img-2.6.35-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-24-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 86a480e4-8a34-49c9-8d35-11bc6d859b27
 echo 'Loading Linux 2.6.35-24-generic ...'
 linux /boot/vmlinuz-2.6.35-24-generic root=UUID=86a480e4-8a34-49c9-8d35-11bc6d859b27 ro single
 echo 'Loading initial ramdisk ...'
 initrd /boot/initrd.img-2.6.35-24-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
 insmod part_msdos
 insmod ext2
 set root='(hd0,msdos5)'
 search --no-floppy --fs-uuid --set 86a480e4-8a34-49c9-8d35-11bc6d859b27
 linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
 insmod part_msdos
 insmod ext2
 set root='(hd0,msdos5)'
 search --no-floppy --fs-uuid --set 86a480e4-8a34-49c9-8d35-11bc6d859b27
 linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
 insmod part_msdos
 insmod ntfs
 set root='(hd0,msdos1)'
 search --no-floppy --fs-uuid --set 0c7cd7b77cd799b2
 drivemap -s (hd0) ${root}
 chainloader +1
}
menuentry "Ubuntu, with Linux 2.6.37-7-generic (on /dev/sda8)" {
 insmod part_msdos
 insmod ext2
 set root='(hd0,msdos8)'
 search --no-floppy --fs-uuid --set 1e31d6da-e7b7-43c9-9c81-a4c3b26b9c5d
 linux /boot/vmlinuz-2.6.37-7-generic root=UUID=1e31d6da-e7b7-43c9-9c81-a4c3b26b9c5d ro quiet splash
 initrd /boot/initrd.img-2.6.37-7-generic
}
menuentry "Ubuntu, with Linux 2.6.37-7-generic (recovery mode) (on /dev/sda8)" {
 insmod part_msdos
 insmod ext2
 set root='(hd0,msdos8)'
 search --no-floppy --fs-uuid --set 1e31d6da-e7b7-43c9-9c81-a4c3b26b9c5d
 linux /boot/vmlinuz-2.6.37-7-generic root=UUID=1e31d6da-e7b7-43c9-9c81-a4c3b26b9c5d ro single
 initrd /boot/initrd.img-2.6.37-7-generic
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

Gparted appears to be correct. I have a screen shot but don't know how to attach it.
Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Solved by:
Tom
Solved:
Last query:
Last reply:
Revision history for this message
Best Tom (tom6) said :
#1

Hi :)

There are a couple of command-line alternatives to gparted and you could post the output from one of them into here. From the top taskbar click on

Applications - Accessories - Terminal

and try use the mouse right-click menus to copy&paste the output of this command into here

sudo fdisk -l

where "-l" is a lower-case "-L". This shows the layout of the partitions on your hard-drive. All that we probably need to do is reinstall grub2 to the Ubuntu linux partition, in which case the previous command is step 3 of this guide
https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD
However, in your case i think something else has gone wrong. Still, it is worth trying to reinstall grub2 just in case it fixes the whole problem in one go.

Please let us know how this goes so that we can guide you through the rest of that guide!
Good luck and regards from
Tom :)

Revision history for this message
delance (olivier-delance) said :
#2

Could you run following procedure.
As you have both 10.10 and Natty, they could be a conflict between "/boot" folders of 10.10 and Natty.
I have not yet checked this configuration, but I presume using a common partition dedicated to "/boot" folder could ease solution, as both use Grub2.
If you keep separated folder, each time you update kernel of one, the Grub2 configuration is moved, and I don't know if disk's MBR continue to use previous "/boot" folder or new one.
---
X-provide data about boot configuration

There is a standard script provided to analyse boot configuration.

Could you download script at:

   http://sourceforge.net/projects/bootinfoscript/

Then in a terminal (Ctrl+Alt+T) run command:

    sudo bash boot_info_script055.sh

This will produce a file named: RESULTS.txt

Paste content of this file in http://paste.ubuntu.com/ and provide in this thread the link to Web page.

Please don't post file directly in thread, else it will make thread difficult to read.

Revision history for this message
Tom (tom6) said :
#3

Hi :)

When you dual-boot only 1 of the boot-loaders gets used. The one that doesn't get used still gets updated but that has no effect on the boot-loader you do use.

The only way to update the one that is being used to force it to recognise the updates in the other one is to run the "sudo update-grub" command. This forces it to look for more kernels on other partitions. Obviously you would have to boot into the right side of your dual-boot to do this otherwise the boot-loader that gets ignored would just get updated but still would get ignored.

However, that is still one big improvement on grub1 :) Grub1 would need to be edited in a text-editor to recognise newer kernels on other partitions.

Regards from
Tom :)

Revision history for this message
hub_cap (hub-capem) said :
#4

Thanks Tom, that fixes the problem. Grub2 was installed incorrectly on the Natty partition. None would boot (Win XP, Maverick or Natty

Revision history for this message
Tom (tom6) said :
#5

Hi :)

Brilliant, nicely done! We normally expect people to struggle with those instructions for re-installing grub2 but they are really about as simple as we could possibly make them. Normally people give us the output of "sudo fdisk -l" and that helps us give the exactly right tweaked command-line commands but you seem to be a fairly advanced linux user already
Many thanks, congrats and regards from
Tom :)

Revision history for this message
hub_cap (hub-capem) said :
#6

Far from being advanced but I'm trying. Purchased Shotts "The Linux Command Line" to learn Linux commands. Programed for years with DOS bat files, Fortran, REXX execs so I'm still learning. It doesn't come as easy for a 70 year old anymore.

Revision history for this message
Tom (tom6) said :
#7

Advanced users don't know everything but they tend to know how to find answers through forums and documentation. Usually there is one or 2 areas they learn faster. Most people know enough about something to help others and by helping each other we help build up documentation and knowledge.

I think Bash scripts are fairly close to Dos Batch files. The closest i get to programming is html and css scripting but hopefully this page might guide you somewhere more interesting
https://help.ubuntu.com/community/Programming

Good luck and regards from
Tom :)

Revision history for this message
hub_cap (hub-capem) said :
#8

Tired of high gas prices? I wanted to share a petition with you that I (along with 1.6 million other Americans) have signed, asking Congress and President Obama to end the delays and roadblocks on drilling for domestic oil. I hope you will take a minute to sign as well.

Sign the 'Drill Here, Drill Now' petition at http://www.americansolutions.com/drill

Fred Hale

Revision history for this message
Tom (tom6) said :
#9

Hi :)
Neither of the other 2 people that are subscribed to this thread live in America. The issue is not related to the thread or anything to do with Ubuntu at all and although i would guess that the post is meant kindly it is just spam. Please try to avoid posting spam.
Good luck and regards from
Tom :)