PDA

View Full Version : [SOLVED] Dual Boot Problem: Grub menu shows XP entry but will not boot into it



tech_girl
August 27th, 2013, 02:58 AM
Yesterday I decided to dual boot my very old Thinkpad x60s with XP Pro and Ubuntu 13.04. I used Unetbootin to install Ubuntu. I am able to boot into Ubuntu but not XP. It just remained at the grub menu.

When installing Ubuntu, it prompted to install boot, I selected sda1 which is also where my XP is installed. I have the boot info below. Can someone please have a look and tell me what has gone wrong and what I should do to remedy this? Thank you.


Boot Info Script 0.61 [1 April 2012]


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

=> Windows is installed in the MBR of /dev/sda.

sda1: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Grub2 (v1.99)
Boot sector info: Grub2 (v1.99) is installed in the boot sector of sda1
and looks at sector 112725688 of the same hard drive
for core.img. core.img is at this location and looks
in partition 94 for . No errors found in the Boot
Parameter Block.
Operating System: Windows XP
Boot files: /boot.ini /ntldr /NTDETECT.COM

sda2: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:

sda3: __________________________________________________ ________________________

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

sda5: __________________________________________________ ________________________

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

sda6: __________________________________________________ ________________________

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

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

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders, total 117210240 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 * 63 31,180,799 31,180,737 7 NTFS / exFAT / HPFS
/dev/sda2 31,180,800 70,238,207 39,057,408 7 NTFS / exFAT / HPFS
/dev/sda3 70,240,254 117,210,045 46,969,792 5 Extended
/dev/sda5 70,240,256 74,434,559 4,194,304 82 Linux swap / Solaris
/dev/sda6 74,436,608 117,210,045 42,773,438 83 Linux


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/sda1 300492E10492A97C ntfs
/dev/sda2 4A19D6A12B65F40C ntfs
/dev/sda5 f0b6192a-5e11-4036-a117-e7c5f8953e88 swap
/dev/sda6 475cf40f-9309-4122-939a-2136bebd24ac ext4

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/sda1 /media/tg/300492E10492A97C fuseblk (rw,nosuid,nodev,allow_other,default_permissions,b lksize=4096)
/dev/sda2 /media/tg/4A19D6A12B65F40C fuseblk (rw,nosuid,nodev,allow_other,default_permissions,b lksize=4096)
/dev/sda6 / ext4 (rw,errors=remount-ro)


================================ sda1/boot.ini: ================================

--------------------------------------------------------------------------------
[boot loader]
timeout=30
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" /noexecute=optin /fastdetect
--------------------------------------------------------------------------------

=========================== sda6/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 [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi

export menuentry_id_option

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 {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}

if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 475cf40f-9309-4122-939a-2136bebd24ac
else
search --no-floppy --fs-uuid --set=root 475cf40f-9309-4122-939a-2136bebd24ac
fi
font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_SG
insmod gettext
fi
terminal_output gfxterm
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
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-475cf40f-9309-4122-939a-2136bebd24ac' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 475cf40f-9309-4122-939a-2136bebd24ac
else
search --no-floppy --fs-uuid --set=root 475cf40f-9309-4122-939a-2136bebd24ac
fi
linux /boot/vmlinuz-3.8.0-19-generic root=UUID=475cf40f-9309-4122-939a-2136bebd24ac ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.8.0-19-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-475cf40f-9309-4122-939a-2136bebd24ac' {
menuentry 'Ubuntu, with Linux 3.8.0-19-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-19-generic-advanced-475cf40f-9309-4122-939a-2136bebd24ac' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 475cf40f-9309-4122-939a-2136bebd24ac
else
search --no-floppy --fs-uuid --set=root 475cf40f-9309-4122-939a-2136bebd24ac
fi
echo 'Loading Linux 3.8.0-19-generic ...'
linux /boot/vmlinuz-3.8.0-19-generic root=UUID=475cf40f-9309-4122-939a-2136bebd24ac ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.8.0-19-generic
}
menuentry 'Ubuntu, with Linux 3.8.0-19-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.0-19-generic-recovery-475cf40f-9309-4122-939a-2136bebd24ac' {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 475cf40f-9309-4122-939a-2136bebd24ac
else
search --no-floppy --fs-uuid --set=root 475cf40f-9309-4122-939a-2136bebd24ac
fi
echo 'Loading Linux 3.8.0-19-generic ...'
linux /boot/vmlinuz-3.8.0-19-generic root=UUID=475cf40f-9309-4122-939a-2136bebd24ac ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.8.0-19-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,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 475cf40f-9309-4122-939a-2136bebd24ac
else
search --no-floppy --fs-uuid --set=root 475cf40f-9309-4122-939a-2136bebd24ac
fi
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 475cf40f-9309-4122-939a-2136bebd24ac
else
search --no-floppy --fs-uuid --set=root 475cf40f-9309-4122-939a-2136bebd24ac
fi
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)' --class windows --class os $menuentry_id_option 'osprober-chain-300492E10492A97C' {
insmod part_msdos
insmod ntfs
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 300492E10492A97C
else
search --no-floppy --fs-uuid --set=root 300492E10492A97C
fi
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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 ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sda6/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' 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>
# / was on /dev/sda6 during installation
UUID=475cf40f-9309-4122-939a-2136bebd24ac / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=f0b6192a-5e11-4036-a117-e7c5f8953e88 none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

= boot/grub/grub.cfg 1
= boot/initrd.img-3.8.0-19-generic 2
= boot/vmlinuz-3.8.0-19-generic 1
= initrd.img 2
= initrd.img.old 2
= vmlinuz 1

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda3

00000000 a3 01 0a 32 48 01 d8 69 31 01 54 54 00 00 00 00 |...2H..i1.TT....|
00000010 40 03 bc 64 10 00 d8 69 1a 00 c3 dd 00 00 00 00 |@..d...i........|
00000020 3b 01 f5 35 27 09 02 6f 4a 01 b8 78 00 00 00 00 |;..5'..oJ..x....|
00000030 25 00 d1 df 29 01 d8 69 f1 2d 15 66 00 00 00 00 |%...)..i.-.f....|
00000040 2d 00 15 66 88 00 e7 5f 00 00 00 00 00 00 00 00 |-..f..._........|
00000050 7b 00 35 53 e1 01 e8 4f 7c 00 fb de 00 00 00 00 |{.5S...O|.......|
00000060 fb 01 64 9e 2b 02 15 66 1a 00 c3 dd 00 00 00 00 |..d.+..f........|
00000070 a3 01 69 38 1e 00 e2 7a 9b 00 12 c2 00 00 00 00 |..i8...z........|
00000080 e1 10 99 eb d0 16 e9 3c 00 00 00 00 00 00 00 00 |.......<........|
00000090 35 00 1b 6f 89 00 ff c5 45 00 0e 29 00 00 00 00 |5..o....E..)....|
000000a0 96 15 69 38 87 00 d8 69 22 00 c2 7b 00 00 00 00 |..i8...i"..{....|
000000b0 3e 0e d8 69 54 00 95 8d 2b 02 15 66 00 00 00 00 |>..iT...+..f....|
000000c0 a8 02 56 a8 46 00 01 3d 0f 01 21 6e 00 00 00 00 |..V.F..=..!n....|
000000d0 f2 2d 21 6e fb 01 68 8b 61 00 a7 41 00 00 00 00 |.-!n..h.a..A....|
000000e0 7c 01 d8 69 f6 05 c3 65 2d 00 15 66 00 00 00 00 ||..i...e-..f....|
000000f0 46 00 01 3d 93 00 89 24 3d 01 20 e8 00 00 00 00 |F..=...$=. .....|
00000100 d1 23 d8 69 53 02 02 6f 36 00 5d ab 00 00 00 00 |.#.iS..o6.].....|
00000110 16 02 43 04 7b 00 ba 3a cb 04 d9 7b 00 00 00 00 |..C.{..:...{....|
00000120 46 00 01 3d d4 00 c1 69 90 12 9b b6 00 00 00 00 |F..=...i........|
00000130 36 00 01 3d ff 1f 89 24 88 00 19 02 00 00 00 00 |6..=...$........|
00000140 46 00 01 3d 61 00 d9 7b 18 00 21 6e 00 00 00 00 |F..=a..{..!n....|
00000150 7b 02 21 6e 61 00 f9 d9 44 00 ff 8b 00 00 00 00 |{.!na...D.......|
00000160 f3 2d 22 44 d4 00 21 6e 1a 00 02 6f 00 00 00 00 |.-"D..!n...o....|
00000170 7b 02 02 6f 0a 01 46 64 3d 02 d9 7b 00 00 00 00 |{..o..Fd=..{....|
00000180 8a 1f 22 44 38 0f 46 64 a1 00 76 f0 00 00 00 00 |.."D8.Fd..v.....|
00000190 f4 2d 22 44 06 00 46 64 f5 2d 60 23 00 00 00 00 |.-"D..Fd.-`#....|
000001a0 b6 00 33 c3 8d 00 d8 69 4f 0a 96 6e 00 00 00 00 |..3....iO..n....|
000001b0 36 00 01 3d 56 00 d8 69 33 01 22 44 00 00 00 fe |6..=V..i3."D....|
000001c0 ff ff 82 fe ff ff 02 00 00 00 00 00 40 00 00 fe |............@...|
000001d0 ff ff 05 fe ff ff 02 00 40 00 be b3 8c 02 00 00 |........@.......|
000001e0 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


=============================== StdErr Messages: ===============================

awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in
awk: cmd. line:36: Math support is not compiled in

oldfred
August 27th, 2013, 05:04 AM
You never install grub2's boot loader to the PBR - partition boot sector of a NTFS partition. We filed bugs several years ago for grub & installer to have it not even offer that choice.

sda1: ___________________________________________

File system: ntfs
Boot sector type: Grub2 (v1.99)
Boot sector info: Grub2 (v1.99) is installed in the boot sector of sda1
and looks at sector 112725688 of the same hard drive
for core.img. core.img is at this location and looks
in partition 94 for . No errors found in the Boot
Parameter Block.



But NTFS keeps a backup and if you did not install it twice you can easily restore from backup.

Fix for most, a few have other issues, better than windows fix in many cases as it also fixes other parameters:
This has instructions on using testdisk to repair the install of grub to the boot sector for windows from Ubuntu or Linux LiveCD.
http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:Boot_Sector
You want to get to this screen:
http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step#NTFS_Boot_sector_recovery

OR:

[HowTo] Repair the bootsector of a Windows partition - YannBuntu
https://help.ubuntu.com/community/BootSectorFix
http://ubuntuforums.org/showthread.php?t=1926510

You then will need to install grub2's boot loader to the MBR of sda.
How to restore the Ubuntu/XP/Vista/7 bootloader
https://help.ubuntu.com/community/RestoreUbuntu/XP/Vista/7Bootloader


Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot.:
https://help.ubuntu.com/community/Boot-Repair
You can repair many boot issues with this or 'Create BootInfo' report (Other Options) & post the link it creates, so we can see your exact configuration and diagnose advanced problems.

tech_girl
August 27th, 2013, 11:29 AM
Thanks very much in taking time to help me. Issue resolved.