PDA

View Full Version : Mythbuntu 10.10 Grub Promt Boot Issue



A3M0N
January 8th, 2011, 05:01 PM
Ok, I've looked on this forum and alot of others and find some solutions but none seem to work for me.

Fresh install of Mythbuntu 10.10, not from Windows and no dual boot, just straight up install.

It boots to a Grub prompt. I can get the system to boot into Mythbuntu by using these commands:



linux (hd0,msdos1)/vmlinuz root=/dev/sda1 ro
initrd (hd0,msdos1)/initrd.img
boot


It will boot to Mythbuntu (which I'm using now), but on reboot it will do the same thing, into the Grub prompt.

I have followed some advise and ran these:


update-grub
install-grub /dev/sda


Both of which run with no issues, but do not fix the problem. I can deal with having to type the commands on restart, as I won't be doing it very often, but it is very annoying. Any ideas from all the gurus here? I'm just a recreational user.

Thanks!

Specs:
Dell Inspiron 1150
Celeron 2.6 Ghz
1 Gb DDR
250 Gb HDD

drs305
January 8th, 2011, 05:14 PM
We can't really tell the problem since we don't know what is in your grub.cfg menuentry.

If you will run the boot info script from the following link and post the contents of the RESULTS.txt we can see what your boot files look like and give you some informed advice:
http://bootinfoscript.sourceforge.net

A3M0N
January 8th, 2011, 08:42 PM
Here are the results:


Boot Info Script 0.55 dated February 15th, 2010

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

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #1 for (,msdos1)/boot/grub.

sda1: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda2: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sda5: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 618,999,807 618,997,760 83 Linux
/dev/sda2 619,001,854 625,141,759 6,139,906 5 Extended
/dev/sda5 619,001,856 625,141,759 6,139,904 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 15cab8a3-1bbb-48fa-94aa-8ddddd7b5ced ext4
/dev/sda2: PTTYPE="dos"
/dev/sda5 de5120f0-9b6e-4c7b-ab00-fb2059e22307 swap
/dev/sda: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

/dev/sda1 / ext4 (rw,errors=remount-ro,commit=0)


=========================== sda1/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,msdos1)'
search --no-floppy --fs-uuid --set 15cab8a3-1bbb-48fa-94aa-8ddddd7b5ced
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,msdos1)'
search --no-floppy --fs-uuid --set 15cab8a3-1bbb-48fa-94aa-8ddddd7b5ced
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,msdos1)'
search --no-floppy --fs-uuid --set 15cab8a3-1bbb-48fa-94aa-8ddddd7b5ced
linux /boot/vmlinuz-2.6.35-24-generic root=UUID=15cab8a3-1bbb-48fa-94aa-8ddddd7b5ced 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,msdos1)'
search --no-floppy --fs-uuid --set 15cab8a3-1bbb-48fa-94aa-8ddddd7b5ced
echo 'Loading Linux 2.6.35-24-generic ...'
linux /boot/vmlinuz-2.6.35-24-generic root=UUID=15cab8a3-1bbb-48fa-94aa-8ddddd7b5ced ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-24-generic
}
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,msdos1)'
search --no-floppy --fs-uuid --set 15cab8a3-1bbb-48fa-94aa-8ddddd7b5ced
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=15cab8a3-1bbb-48fa-94aa-8ddddd7b5ced 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,msdos1)'
search --no-floppy --fs-uuid --set 15cab8a3-1bbb-48fa-94aa-8ddddd7b5ced
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=15cab8a3-1bbb-48fa-94aa-8ddddd7b5ced ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-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,msdos1)'
search --no-floppy --fs-uuid --set 15cab8a3-1bbb-48fa-94aa-8ddddd7b5ced
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 15cab8a3-1bbb-48fa-94aa-8ddddd7b5ced
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
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
fi
### 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 ###

=============================== sda1/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=15cab8a3-1bbb-48fa-94aa-8ddddd7b5ced / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=de5120f0-9b6e-4c7b-ab00-fb2059e22307 none swap sw 0 0

=================== sda1: Location of files loaded by Grub: ===================


120.4GB: boot/grub/core.img
275.0GB: boot/grub/grub.cfg
.9GB: boot/initrd.img-2.6.35-22-generic
1.0GB: boot/initrd.img-2.6.35-24-generic
120.4GB: boot/vmlinuz-2.6.35-22-generic
120.3GB: boot/vmlinuz-2.6.35-24-generic
1.0GB: initrd.img
.9GB: initrd.img.old
120.3GB: vmlinuz
120.4GB: vmlinuz.old

drs305
January 8th, 2011, 09:26 PM
A3M0N,

Thanks for posting. The files look correct. One issue may be the location of grub.cfg on the disk. It is well beyond the other grub files on the partition, so it's possible Grub2 isn't finding the grub.cfg file due to a BIOS limitation. BIOS's from a few years ago couldn't see past the 137 GB limit. Once the system boots, the OS can see everything but the BIOS can't.

When booting, you can enter BIOS and check the drive size. If it shows 137GB or less you want to look for a setting to enable large drives or LBA. If you can't find such a setting you may need to update your BIOS.

If neither or those is an option you may need to make a /boot partition within the first 137GB of the disk.

Let us know what you find.

gschultz545
January 22nd, 2011, 07:27 AM
I was not on an upgrade. Had done an install of Ubuntu 10.10 only to my Durabook N15Ri-2.
On return home this evening my password would not be accepted.
Rebooted, got the Grub prompt too.
I plan to post the grub cfg as listed in the previous posts on this subject. Would appreciate knowing what the next step to do is.
I still have the Ubuntu 10.10 CD I set up for the install.
And obviously from this I can get out to the Internet and e-mail in the demo version of the boot up.
Sincerely,
Gschultz
RESULTS.txt:


Boot Info Script 0.55 dated February 15th, 2010

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

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #1 for (,msdos1)/boot/grub.

sda1: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda2: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: Unknown
Boot sector info:

sda5: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders, total 195371568 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 187,336,703 187,334,656 83 Linux
/dev/sda2 187,338,750 195,371,007 8,032,258 5 Extended
/dev/sda5 187,338,752 195,371,007 8,032,256 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 507c9494-9b69-4e84-9496-111299019631 ext4
/dev/sda2: PTTYPE="dos"
/dev/sda5 8a59e063-6cda-459d-8ecf-33f0572dd4c4 swap
/dev/sda: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)
/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sda1 /media/507c9494-9b69-4e84-9496-111299019631 ext4 (rw,nosuid,nodev,uhelper=udisks)


=========================== sda1/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,msdos1)'
search --no-floppy --fs-uuid --set 507c9494-9b69-4e84-9496-111299019631
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,msdos1)'
search --no-floppy --fs-uuid --set 507c9494-9b69-4e84-9496-111299019631
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,msdos1)'
search --no-floppy --fs-uuid --set 507c9494-9b69-4e84-9496-111299019631
linux /boot/vmlinuz-2.6.35-24-generic root=UUID=507c9494-9b69-4e84-9496-111299019631 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,msdos1)'
search --no-floppy --fs-uuid --set 507c9494-9b69-4e84-9496-111299019631
echo 'Loading Linux 2.6.35-24-generic ...'
linux /boot/vmlinuz-2.6.35-24-generic root=UUID=507c9494-9b69-4e84-9496-111299019631 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-24-generic
}
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,msdos1)'
search --no-floppy --fs-uuid --set 507c9494-9b69-4e84-9496-111299019631
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=507c9494-9b69-4e84-9496-111299019631 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,msdos1)'
search --no-floppy --fs-uuid --set 507c9494-9b69-4e84-9496-111299019631
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=507c9494-9b69-4e84-9496-111299019631 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.15-55-386' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 507c9494-9b69-4e84-9496-111299019631
linux /boot/vmlinuz-2.6.15-55-386 root=UUID=507c9494-9b69-4e84-9496-111299019631 ro quiet splash
initrd /boot/initrd.img-2.6.15-55-386
}
menuentry 'Ubuntu, with Linux 2.6.15-55-386 (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 507c9494-9b69-4e84-9496-111299019631
echo 'Loading Linux 2.6.15-55-386 ...'
linux /boot/vmlinuz-2.6.15-55-386 root=UUID=507c9494-9b69-4e84-9496-111299019631 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.15-55-386
}
### 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,msdos1)'
search --no-floppy --fs-uuid --set 507c9494-9b69-4e84-9496-111299019631
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 507c9494-9b69-4e84-9496-111299019631
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
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
fi
### 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 ###

=============================== sda1/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=507c9494-9b69-4e84-9496-111299019631 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=8a59e063-6cda-459d-8ecf-33f0572dd4c4 none swap sw 0 0

=================== sda1: Location of files loaded by Grub: ===================


73.1GB: boot/grub/core.img
90.4GB: boot/grub/grub.cfg
73.2GB: boot/initrd.img-2.6.15-55-386
1.1GB: boot/initrd.img-2.6.35-22-generic
2.0GB: boot/initrd.img-2.6.35-24-generic
73.2GB: boot/vmlinuz-2.6.15-55-386
73.1GB: boot/vmlinuz-2.6.35-22-generic
73.1GB: boot/vmlinuz-2.6.35-24-generic
73.2GB: initrd.img
2.0GB: initrd.img.old
73.2GB: vmlinuz
73.1GB: vmlinuz.old
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda2

00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00000080 f4 0f f0 b7 00 00 00 00 00 00 00 00 b8 44 b9 b7 |.............D..|
00000090 aa cb 92 7c aa f5 3c d0 00 00 00 00 00 00 00 00 |...|..<.........|
000000a0 00 00 00 00 00 00 00 00 00 00 00 00 40 14 ef b7 |............@...|
000000b0 00 00 00 00 00 0f 3d 00 00 00 00 00 9e c4 e6 b7 |......=.........|
000000c0 90 4b b9 b7 00 00 00 00 00 00 00 00 00 00 00 00 |.K..............|
000000d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fe |................|
000001c0 ff ff 82 fe ff ff 02 00 00 00 00 90 7a 00 00 00 |............z...|
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200


There is no bootable MS on this machine that I've seen.
I'd like to restore to where I was with Ubuntu until this evening. It was running fine and had done an update manager upload last evening. I would appreciate some help with it.

drs305
January 22nd, 2011, 03:29 PM
gschultz545,

Welcome to the Ubuntu forums.

I don't see any glaring errors with your boot information, and I don't know if whatever was causing your password issue is also responsible for the grub prompt.

In cases where the RESULTS.txt appears normal, I refer people to the following guide. It will have you remove and reinstall Grub2 to ensure your boot files are not corrupted. If the system still does not boot, this procedure should rule out Grub as the guilty party.
http://ubuntuforums.org/showthread.php?t=1581099