Hakunka-Matata
December 9th, 2010, 04:08 AM
machine boots straight to Windows, Grub2 does not display the normal boot menu choices. Therefore, not able to boot into Ubuntu 9.10
Perhaps someone could look at this Results.txt file and shed some light on what went wrong. This machine was working fine for a long time, then all of a sudden, it starting booting straight to Windows. Any help appreciated.
Thanks in advance------------
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Windows is installed in the MBR of /dev/sda
=> Grub 2 is installed in the MBR of /dev/sdb and looks on the same drive in
partition #1 for /boot/grub.
sda1: __________________________________________________ _______________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM
sdb1: __________________________________________________ _______________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sdb2: __________________________________________________ _______________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sdb5: __________________________________________________ _______________________
File system: swap
Boot sector type: -
Boot sector info:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ __________________________________________________ ___
Disk /dev/sda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders, total 39102336 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 * 63 39,086,144 39,086,082 7 HPFS/NTFS
Drive: sdb ___________________ __________________________________________________ ___
Disk /dev/sdb: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders, total 156250000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sdb1 * 63 149,790,059 149,789,997 83 Linux
/dev/sdb2 149,790,060 156,248,189 6,458,130 5 Extended
/dev/sdb5 149,790,123 156,248,189 6,458,067 82 Linux swap / Solaris
blkid -c /dev/null: __________________________________________________ __________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/sda1 72642D18642CE119 ntfs
/dev/sda: PTTYPE="dos"
/dev/sdb1 4cff4967-2dcd-4d08-a5e5-247192aa82d0 ext4
/dev/sdb2: PTTYPE="dos"
/dev/sdb5 d100959c-ef95-4098-b963-13aae42db634 swap
/dev/sdb: 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/72642D18642CE119 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)
================================ sda1/boot.ini: ================================
[boot loader]
timeout=1
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn
=========================== sdb1/boot/grub/grub.cfg: ===========================
#
# 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 ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4cff4967-2dcd-4d08-a5e5-247192aa82d0
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
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/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-22-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4cff4967-2dcd-4d08-a5e5-247192aa82d0
linux /boot/vmlinuz-2.6.31-22-generic root=UUID=4cff4967-2dcd-4d08-a5e5-247192aa82d0 ro quiet splash
initrd /boot/initrd.img-2.6.31-22-generic
}
menuentry "Ubuntu, Linux 2.6.31-22-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4cff4967-2dcd-4d08-a5e5-247192aa82d0
linux /boot/vmlinuz-2.6.31-22-generic root=UUID=4cff4967-2dcd-4d08-a5e5-247192aa82d0 ro single
initrd /boot/initrd.img-2.6.31-22-generic
}
menuentry "Ubuntu, Linux 2.6.31-21-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4cff4967-2dcd-4d08-a5e5-247192aa82d0
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=4cff4967-2dcd-4d08-a5e5-247192aa82d0 ro quiet splash
initrd /boot/initrd.img-2.6.31-21-generic
}
menuentry "Ubuntu, Linux 2.6.31-21-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4cff4967-2dcd-4d08-a5e5-247192aa82d0
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=4cff4967-2dcd-4d08-a5e5-247192aa82d0 ro single
initrd /boot/initrd.img-2.6.31-21-generic
}
menuentry "Ubuntu, Linux 2.6.31-20-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4cff4967-2dcd-4d08-a5e5-247192aa82d0
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=4cff4967-2dcd-4d08-a5e5-247192aa82d0 ro quiet splash
initrd /boot/initrd.img-2.6.31-20-generic
}
menuentry "Ubuntu, Linux 2.6.31-20-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4cff4967-2dcd-4d08-a5e5-247192aa82d0
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=4cff4967-2dcd-4d08-a5e5-247192aa82d0 ro single
initrd /boot/initrd.img-2.6.31-20-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4cff4967-2dcd-4d08-a5e5-247192aa82d0
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=4cff4967-2dcd-4d08-a5e5-247192aa82d0 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4cff4967-2dcd-4d08-a5e5-247192aa82d0
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=4cff4967-2dcd-4d08-a5e5-247192aa82d0 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
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/sdb1)" {
insmod ntfs
set root=(hd1,1)
search --no-floppy --fs-uuid --set 72642d18642ce119
drivemap -s (hd0) ${root}
chainloader +1
}
### 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 ###
=============================== sdb1/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 defaults 0 0
# / was on /dev/sda1 during installation
UUID=4cff4967-2dcd-4d08-a5e5-247192aa82d0 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=d100959c-ef95-4098-b963-13aae42db634 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
=================== sdb1: Location of files loaded by Grub: ===================
.1GB: boot/grub/core.img
3.8GB: boot/grub/grub.cfg
.5GB: boot/initrd.img-2.6.31-14-generic
1.2GB: boot/initrd.img-2.6.31-20-generic
1.8GB: boot/initrd.img-2.6.31-21-generic
6.2GB: boot/initrd.img-2.6.31-22-generic
.5GB: boot/vmlinuz-2.6.31-14-generic
1.0GB: boot/vmlinuz-2.6.31-20-generic
1.4GB: boot/vmlinuz-2.6.31-21-generic
1.7GB: boot/vmlinuz-2.6.31-22-generic
6.2GB: initrd.img
1.8GB: initrd.img.old
1.7GB: vmlinuz
1.4GB: vmlinuz.old
Perhaps someone could look at this Results.txt file and shed some light on what went wrong. This machine was working fine for a long time, then all of a sudden, it starting booting straight to Windows. Any help appreciated.
Thanks in advance------------
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Windows is installed in the MBR of /dev/sda
=> Grub 2 is installed in the MBR of /dev/sdb and looks on the same drive in
partition #1 for /boot/grub.
sda1: __________________________________________________ _______________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM
sdb1: __________________________________________________ _______________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sdb2: __________________________________________________ _______________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sdb5: __________________________________________________ _______________________
File system: swap
Boot sector type: -
Boot sector info:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ __________________________________________________ ___
Disk /dev/sda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders, total 39102336 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 * 63 39,086,144 39,086,082 7 HPFS/NTFS
Drive: sdb ___________________ __________________________________________________ ___
Disk /dev/sdb: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders, total 156250000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sdb1 * 63 149,790,059 149,789,997 83 Linux
/dev/sdb2 149,790,060 156,248,189 6,458,130 5 Extended
/dev/sdb5 149,790,123 156,248,189 6,458,067 82 Linux swap / Solaris
blkid -c /dev/null: __________________________________________________ __________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/sda1 72642D18642CE119 ntfs
/dev/sda: PTTYPE="dos"
/dev/sdb1 4cff4967-2dcd-4d08-a5e5-247192aa82d0 ext4
/dev/sdb2: PTTYPE="dos"
/dev/sdb5 d100959c-ef95-4098-b963-13aae42db634 swap
/dev/sdb: 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/72642D18642CE119 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)
================================ sda1/boot.ini: ================================
[boot loader]
timeout=1
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn
=========================== sdb1/boot/grub/grub.cfg: ===========================
#
# 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 ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4cff4967-2dcd-4d08-a5e5-247192aa82d0
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
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/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-22-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4cff4967-2dcd-4d08-a5e5-247192aa82d0
linux /boot/vmlinuz-2.6.31-22-generic root=UUID=4cff4967-2dcd-4d08-a5e5-247192aa82d0 ro quiet splash
initrd /boot/initrd.img-2.6.31-22-generic
}
menuentry "Ubuntu, Linux 2.6.31-22-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4cff4967-2dcd-4d08-a5e5-247192aa82d0
linux /boot/vmlinuz-2.6.31-22-generic root=UUID=4cff4967-2dcd-4d08-a5e5-247192aa82d0 ro single
initrd /boot/initrd.img-2.6.31-22-generic
}
menuentry "Ubuntu, Linux 2.6.31-21-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4cff4967-2dcd-4d08-a5e5-247192aa82d0
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=4cff4967-2dcd-4d08-a5e5-247192aa82d0 ro quiet splash
initrd /boot/initrd.img-2.6.31-21-generic
}
menuentry "Ubuntu, Linux 2.6.31-21-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4cff4967-2dcd-4d08-a5e5-247192aa82d0
linux /boot/vmlinuz-2.6.31-21-generic root=UUID=4cff4967-2dcd-4d08-a5e5-247192aa82d0 ro single
initrd /boot/initrd.img-2.6.31-21-generic
}
menuentry "Ubuntu, Linux 2.6.31-20-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4cff4967-2dcd-4d08-a5e5-247192aa82d0
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=4cff4967-2dcd-4d08-a5e5-247192aa82d0 ro quiet splash
initrd /boot/initrd.img-2.6.31-20-generic
}
menuentry "Ubuntu, Linux 2.6.31-20-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4cff4967-2dcd-4d08-a5e5-247192aa82d0
linux /boot/vmlinuz-2.6.31-20-generic root=UUID=4cff4967-2dcd-4d08-a5e5-247192aa82d0 ro single
initrd /boot/initrd.img-2.6.31-20-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4cff4967-2dcd-4d08-a5e5-247192aa82d0
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=4cff4967-2dcd-4d08-a5e5-247192aa82d0 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4cff4967-2dcd-4d08-a5e5-247192aa82d0
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=4cff4967-2dcd-4d08-a5e5-247192aa82d0 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
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/sdb1)" {
insmod ntfs
set root=(hd1,1)
search --no-floppy --fs-uuid --set 72642d18642ce119
drivemap -s (hd0) ${root}
chainloader +1
}
### 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 ###
=============================== sdb1/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 defaults 0 0
# / was on /dev/sda1 during installation
UUID=4cff4967-2dcd-4d08-a5e5-247192aa82d0 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=d100959c-ef95-4098-b963-13aae42db634 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
=================== sdb1: Location of files loaded by Grub: ===================
.1GB: boot/grub/core.img
3.8GB: boot/grub/grub.cfg
.5GB: boot/initrd.img-2.6.31-14-generic
1.2GB: boot/initrd.img-2.6.31-20-generic
1.8GB: boot/initrd.img-2.6.31-21-generic
6.2GB: boot/initrd.img-2.6.31-22-generic
.5GB: boot/vmlinuz-2.6.31-14-generic
1.0GB: boot/vmlinuz-2.6.31-20-generic
1.4GB: boot/vmlinuz-2.6.31-21-generic
1.7GB: boot/vmlinuz-2.6.31-22-generic
6.2GB: initrd.img
1.8GB: initrd.img.old
1.7GB: vmlinuz
1.4GB: vmlinuz.old