PDA

View Full Version : XP won't work on Dual boot with 10.4



theone964
May 26th, 2010, 02:19 PM
I have 2 hdd's: Ubuntu 10.4 on sda1 and XP on sdb2. the First partition of my second drive is the XP recovery drive.

Had the same setting in 9.10 with grub2 and it worked fine. upgraded to 10.4 and now XP won't load. when i select it to load from the grub2 menu i just get a black screen with a white blinking cursor.

I attaching my grub.cfg file as well as my 30_os-prober file

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 $prefix/grubenv ]; then
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
}
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 112dc9b4-c1eb-41d7-a637-5891e918fc5c
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768
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
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 112dc9b4-c1eb-41d7-a637-5891e918fc5c
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 112dc9b4-c1eb-41d7-a637-5891e918fc5c
insmod tga
if background_image /usr/share/images/grub/B-1B_over_the_pacific_ocean.tga ; then
set color_normal=yellow/black
set color_highlight=white/red
else
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 112dc9b4-c1eb-41d7-a637-5891e918fc5c
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=112dc9b4-c1eb-41d7-a637-5891e918fc5c ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 112dc9b4-c1eb-41d7-a637-5891e918fc5c
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=112dc9b4-c1eb-41d7-a637-5891e918fc5c ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows XP Home Edition" {
insmod ntfs
set root='(hd1,2)'
search --no-floppy --fs-uuid --set ec7cbff47cbfb7a2
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 ###30_os-prober

#! /bin/sh -e

# grub-mkconfig helper script.
# Copyright (C) 2006,2007,2008,2009 Free Software Foundation, Inc.
#
# GRUB is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GRUB is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GRUB. If not, see <http://www.gnu.org/licenses/>.

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib

. ${libdir}/grub/grub-mkconfig_lib

found_other_os=

adjust_timeout () {
if [ "x${found_other_os}" = "x" ] ; then
if [ "x${GRUB_HIDDEN_TIMEOUT}" != "x" ] ; then
if [ "x${GRUB_HIDDEN_TIMEOUT_QUIET}" = "xtrue" ] ; then
verbose=
else
verbose=" --verbose"
fi

if [ "x${GRUB_HIDDEN_TIMEOUT}" = "x0" ] ; then
cat <<EOF
if [ \${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep$verbose --interruptible 3 ; then
set timeout=0
fi
fi
fi
EOF
else
cat << EOF
if [ \${timeout} != -1 ]; then
if sleep$verbose --interruptible ${GRUB_HIDDEN_TIMEOUT} ; then
set timeout=0
fi
fi
EOF
fi
fi
fi
}

if [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then
adjust_timeout
exit 0
fi

if [ -z "`which os-prober 2> /dev/null`" -o -z "`which linux-boot-prober 2> /dev/null`" ] ; then
# missing os-prober and/or linux-boot-prober
adjust_timeout
exit 0
fi

OSPROBED="`os-prober | tr ' ' '^' | paste -s -d ' '`"
if [ -z "${OSPROBED}" ] ; then
# empty os-prober output, nothing doing
adjust_timeout
exit 0
fi

osx_entry() {
cat << EOF
menuentry "${LONGNAME} (${2}-bit) (on ${DEVICE})" {
EOF
save_default_entry | sed -e "s/^/\t/"
prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
cat << EOF
insmod ${GRUB_VIDEO_BACKEND}
set do_resume=0
if [ /var/vm/sleepimage -nt10 / ]; then
if xnu_resume /var/vm/sleepimage; then
set do_resume=1
fi
fi
if [ \$do_resume == 0 ]; then
xnu_uuid ${OSXUUID} uuid
if [ -f /Extra/DSDT.aml ]; then
acpi -e /Extra/DSDT.aml
fi
$1 /mach_kernel boot-uuid=\${uuid} rd=*uuid
if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
xnu_mkext /System/Library/Extensions.mkext
else
xnu_kextdir /System/Library/Extensions
fi
if [ -f /Extra/Extensions.mkext ]; then
xnu_mkext /Extra/Extensions.mkext
fi
if [ -d /Extra/Extensions ]; then
xnu_kextdir /Extra/Extensions
fi
if [ -f /Extra/devprop.bin ]; then
xnu_devprop_load /Extra/devprop.bin
fi
if [ -f /Extra/splash.jpg ]; then
insmod jpeg
xnu_splash /Extra/splash.jpg
fi
if [ -f /Extra/splash.png ]; then
insmod png
xnu_splash /Extra/splash.png
fi
if [ -f /Extra/splash.tga ]; then
insmod tga
xnu_splash /Extra/splash.tga
fi
fi
}
EOF
}

for OS in ${OSPROBED} ; do
DEVICE="`echo ${OS} | cut -d ':' -f 1`"
LONGNAME="`echo ${OS} | cut -d ':' -f 2 | tr '^' ' '`"
LABEL="`echo ${OS} | cut -d ':' -f 3 | tr '^' ' '`"
BOOT="`echo ${OS} | cut -d ':' -f 4`"

if [ "${LONGNAME}" = "Windows NT/2000/XP" ] ; then
LONGNAME="Windows XP Recovery"
elif [ "${LONGNAME}" = "Microsoft Windows XP Home Edition" ] ; then
LONGNAME="Windows XP Home Edition"
elif [ -z "${LONGNAME}" ] ; then
LONGNAME="${LABEL}"
fi
if [ "${DEVICE}" = "/dev/sdb1" ]; then
continue
fi

echo "Found ${LONGNAME} on ${DEVICE}" >&2
found_other_os=1

case ${BOOT} in
chain)

cat << EOF
menuentry "${LONGNAME}" {
EOF
save_default_entry | sed -e "s/^/\t/"
prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"

case ${LONGNAME} in
Windows\ Vista*|Windows\ 7*)
;;
*)
cat << EOF
drivemap -s (hd0) \${root}
EOF
;;
esac

cat <<EOF
chainloader +1
}
EOF
;;
linux)
LINUXPROBED="`linux-boot-prober ${DEVICE} 2> /dev/null | tr ' ' '^' | paste -s -d ' '`"
prepare_boot_cache=

for LINUX in ${LINUXPROBED} ; do
LROOT="`echo ${LINUX} | cut -d ':' -f 1`"
LBOOT="`echo ${LINUX} | cut -d ':' -f 2`"
LLABEL="`echo ${LINUX} | cut -d ':' -f 3 | tr '^' ' '`"
LKERNEL="`echo ${LINUX} | cut -d ':' -f 4`"
LINITRD="`echo ${LINUX} | cut -d ':' -f 5`"
LPARAMS="`echo ${LINUX} | cut -d ':' -f 6- | tr '^' ' '`"
# User-added variables
newtitle=`echo ${LONGNAME} | cut -d " " -f 1-2`
shortkernel="`echo ${LKERNEL} | cut -d "-" -f 2-4`"
shortdevice="`echo ${DEVICE} | cut -d "/" -f 3`"
nomemtest="`echo ${LLABEL} | cut -d " " -f 1`"
nosingle="`echo ${LPARAMS} | sed 's/^.* //'`"
hidekernel="`echo ${LKERNEL} | cut -d'-' -f2`"

if [ -z "${LLABEL}" ] ; then
LLABEL="${LONGNAME}"
fi

if [ "${LROOT}" != "${LBOOT}" ]; then
LKERNEL="${LKERNEL#/boot}"
LINITRD="${LINITRD#/boot}"
fi

cat << EOF
menuentry "${newtitle} ${shortkernel}" {
EOF
save_default_entry | sed -e "s/^/\t/"
if [ -z "${prepare_boot_cache}" ]; then
prepare_boot_cache="$(prepare_grub_to_access_device ${LBOOT} | sed -e "s/^/\t/")"
fi
printf '%s\n' "${prepare_boot_cache}"
cat << EOF
linux ${LKERNEL} ${LPARAMS}
EOF
if [ -n "${LINITRD}" ] ; then
cat << EOF
initrd ${LINITRD}
EOF
fi
cat << EOF
}
EOF
done
;;
macosx)
OSXUUID="`grub-probe --target=fs_uuid --device ${DEVICE} 2> /dev/null`"
osx_entry xnu_kernel 32
osx_entry xnu_kernel64 64
;;
hurd)
cat << EOF
menuentry "${LONGNAME} (on ${DEVICE})" {
EOF
save_default_entry | sed -e "s/^/\t/"
prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
grub_device="`${grub_probe} --device ${DEVICE} --target=drive`"
mach_device="`echo "${grub_device}" | tr -d '()' | tr , s`"
grub_fs="`${grub_probe} --device ${DEVICE} --target=fs`"
case "${grub_fs}" in
*fs) hurd_fs="${grub_fs}" ;;
*) hurd_fs="${grub_fs}fs" ;;
esac
cat << EOF
multiboot /boot/gnumach.gz root=device:${mach_device}
module /hurd/${hurd_fs}.static ${hurd_fs} --readonly \\
--multiboot-command-line='\${kernel-command-line}' \\
--host-priv-port='\${host-port}' \\
--device-master-port='\${device-port}' \\
--exec-server-task='\${exec-task}' -T typed '\${root}' \\
'\$(task-create)' '\$(task-resume)'
module /lib/ld.so.1 exec /hurd/exec '\$(exec-task=task-create)'
}
EOF
;;
*)
echo " ${LONGNAME} is not yet supported by grub-mkconfig." >&2
;;
esac
done

adjust_timeout

presence1960
May 26th, 2010, 02:22 PM
Let's get a better look at your setup & boot process. Boot into Ubuntu. Come back here and do the following:

1. Download the boot info script. There is a link in my signature.
2. Move the boot info script to the desktop.
3. Open a terminal and run the command
sudo bash ~/Desktop/boot_info_script*.sh

This will create a RESULTS.txt file on the desktop. Paste the entire contents of that file back here. Once pasted highlight all text and click the # sign on the toolbar to place code tags around the text.

See here (http://bootinfoscript.sourceforge.net/) for more info on the boot info script.

darkod
May 26th, 2010, 02:31 PM
You probably installed the grub2 in the XP partition too, if you selected all disks and partition in the windows asking where to install grub2 during the upgrade. Run the script as presence said, to confirm this. If this is the case, the fix is:
http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:Boot_Sector

theone964
May 26th, 2010, 02:51 PM
Let's get a better look at your setup & boot process. Boot into Ubuntu. Come back here and do the following:

1. Download the boot info script. There is a link in my signature.
2. Move the boot info script to the desktop.
3. Open a terminal and run the command
sudo bash ~/Desktop/boot_info_script*.sh This will create a RESULTS.txt file on the desktop. Paste the entire contents of that file back here. Once pasted highlight all text and click the # sign on the toolbar to place code tags around the text.

See here (http://bootinfoscript.sourceforge.net/) for more info on the boot info script.

thanks. sorry for the delay.

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 /boot/grub.
=> 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: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04 LTS
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:

sdb1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sdb1 and
looks at sector 271935 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

sdb2: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sdb2 and
looks at sector 271935 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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 150,675,455 150,673,408 83 Linux
/dev/sda2 150,677,502 156,301,311 5,623,810 5 Extended
/dev/sda5 150,677,504 156,301,311 5,623,808 82 Linux swap / Solaris


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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 13,655,249 13,655,187 c W95 FAT32 (LBA)
/dev/sdb2 * 13,655,250 156,296,384 142,641,135 7 HPFS/NTFS


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 112dc9b4-c1eb-41d7-a637-5891e918fc5c ext4
/dev/sda2: PTTYPE="dos"
/dev/sda5 6ac278f7-1cf4-4827-bf02-a5512dec17cb swap
/dev/sda: PTTYPE="dos"
/dev/sdb1 42F7-7216 vfat PRESARIO_RP
/dev/sdb2 EC7CBFF47CBFB7A2 ntfs PRESARIO
/dev/sdb: PTTYPE="dos"
error: /dev/sdc: No medium found
error: /dev/sdd: No medium found
error: /dev/sde: No medium found
error: /dev/sdf: No medium found

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

Device Mount_Point Type Options

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


=========================== sda1/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 $prefix/grubenv ]; then
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
}
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 112dc9b4-c1eb-41d7-a637-5891e918fc5c
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768
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
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 112dc9b4-c1eb-41d7-a637-5891e918fc5c
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 112dc9b4-c1eb-41d7-a637-5891e918fc5c
insmod tga
if background_image /usr/share/images/grub/B-1B_over_the_pacific_ocean.tga ; then
set color_normal=yellow/black
set color_highlight=white/red
else
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 112dc9b4-c1eb-41d7-a637-5891e918fc5c
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=112dc9b4-c1eb-41d7-a637-5891e918fc5c ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 112dc9b4-c1eb-41d7-a637-5891e918fc5c
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=112dc9b4-c1eb-41d7-a637-5891e918fc5c ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows XP Home Edition" {
insmod ntfs
set root='(hd1,2)'
search --no-floppy --fs-uuid --set ec7cbff47cbfb7a2
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 ###

=============================== 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=112dc9b4-c1eb-41d7-a637-5891e918fc5c / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=6ac278f7-1cf4-4827-bf02-a5512dec17cb none swap sw 0 0

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


73.2GB: boot/grub/core.img
60.3GB: boot/grub/grub.cfg
74.0GB: boot/initrd.img-2.6.32-21-generic
74.0GB: boot/initrd.img-2.6.32-22-generic
73.9GB: boot/vmlinuz-2.6.32-21-generic
73.6GB: boot/vmlinuz-2.6.32-22-generic
74.0GB: initrd.img
74.0GB: initrd.img.old
73.6GB: vmlinuz
73.9GB: vmlinuz.old

================================ sdb1/boot.ini: ================================

[boot loader]
timeout=0
default=C:\CMDCONS\BOOTSECT.DAT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows Recovery Console" /cmdcons

================================ sdb2/boot.ini: ================================

[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect
C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows Recovery Console" /cmdcons
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda2

00000000 ed 13 21 b9 00 c2 fb 1e c0 e0 62 f4 51 be ea d4 |..!.......b.Q...|
00000010 02 42 ef 20 3b 17 01 3c 22 f4 5e 0f fe 35 fd bf |.B. ;..<".^..5..|
00000020 31 d1 3d 20 e6 1e 14 a9 00 95 09 32 b2 30 0a c6 |1.= .......2.0..|
00000030 31 13 ec 1d c2 62 e1 63 dd de 01 3b 54 fb e1 02 |1....b.c...;T...|
00000040 30 36 e9 20 e0 b3 11 2f 01 20 cd 12 00 f8 1e 14 |06. .../. ......|
00000050 3c d1 bb 55 44 ff f9 c1 04 42 12 c9 12 ef 01 2a |<..UD....B.....*|
00000060 30 ce 21 f6 79 b0 ef f6 3b b7 5c 00 c0 6b 94 3c |0.!.y...;.\..k.<|
00000070 00 84 13 14 2f 06 ee eb b2 ee 40 1e 16 15 6f 99 |..../.....@...o.|
00000080 1b a3 01 04 13 f2 61 df 0d 0e c4 7b 97 5b b4 2f |......a....{.[./|
00000090 e4 4f df 0c 00 b4 23 23 dc b3 33 4e fe 0f 2b b3 |.O....##..3N..+.|
000000a0 50 cc 02 31 56 09 01 de 00 f1 3f 10 ef 3d f7 2c |P..1V.....?..=.,|
000000b0 ce 02 3e 0e 00 32 ff 10 01 03 db d2 40 17 4b dc |..>..2......@.K.|
000000c0 f0 34 2d 0d e0 0c 24 3f e2 0f 01 a9 02 d0 ee 0f |.4-...$?........|
000000d0 22 01 02 01 fd e5 29 e3 10 2f 14 db 01 25 e1 2f |".....)../...%./|
000000e0 d0 22 d1 21 fd 10 c1 0e 15 04 4f fa ac 00 00 f1 |.".!......O.....|
000000f0 34 d0 1f 2c 25 0f fd ff e7 2c c1 50 f0 23 9d 4f |4..,%....,.P.#.O|
00000100 01 1d 17 50 01 ed 21 df f0 02 ff 1e ef 14 30 ff |...P..!.......0.|
00000110 e1 40 00 e4 ce 55 fb 35 1f e0 2d af df 03 43 63 |.@...U.5..-...Cc|
00000120 d9 f1 f0 af 00 ad fc 20 e1 ff bb f0 47 45 4b aa |....... ....GEK.|
00000130 ed cf 65 0d f2 3f 01 2d 7c d2 2e 22 f5 ec e2 5b |..e..?.-|.."...[|
00000140 d2 fe 24 fb f3 0c f2 f5 00 e1 31 22 d9 c2 30 fd |..$.......1"..0.|
00000150 22 ee 15 52 fe eb ad 11 73 02 01 51 70 ff c9 ef |"..R....s..Qp...|
00000160 00 52 01 41 da 21 00 f0 ce 21 34 1c 00 ba 5c 90 |.R.A.!...!4...\.|
00000170 11 22 ee bd 25 31 de 13 eb 02 64 1e 3b cc 01 78 |."..%1....d.;..x|
00000180 dd 33 3d e1 d1 0d 26 00 ff fe cc f1 77 31 ef ab |.3=...&.....w1..|
00000190 00 b5 cf 74 ed f4 50 24 ea cf e1 23 2f fe 14 d2 |...t..P$...#/...|
000001a0 52 b9 01 35 12 ee 22 f3 40 31 9d 40 9d 23 33 3b |R..5..".@1.@.#3;|
000001b0 01 11 0d f0 00 f2 11 01 21 0e 12 fe 0f 0d 00 fe |........!.......|
000001c0 ff ff 82 fe ff ff 02 00 00 00 00 d0 55 00 00 00 |............U...|
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


=======Devices which don't seem to have a corresponding hard drive==============

sdc sdd sde sdf

darkod
May 26th, 2010, 03:10 PM
sdb1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sdb1 and
looks at sector 271935 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

sdb2: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sdb2 and
looks at sector 271935 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

Yeap, you have installed grub2 on the partitions. Do the fix from my previous post on partitions #1 and #2 on disk /dev/sdb. It can only fix one at a time, so you'll have to do it twice. After that it should be fine.

theone964
May 26th, 2010, 03:25 PM
sdb1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sdb1 and
looks at sector 271935 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

sdb2: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sdb2 and
looks at sector 271935 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

Yeap, you have installed grub2 on the partitions. Do the fix from my previous post on partitions #1 and #2 on disk /dev/sdb. It can only fix one at a time, so you'll have to do it twice. After that it should be fine.

thanks will give it a try and post results in about an hour thank you beforehand though

theone964
May 26th, 2010, 03:30 PM
um i followed the instructions on your last post but where your post says third screen select "intel" mine doesn't give any options just continue


Disk /dev/sdb - 80 GB / 74 GiB - ATA HDS728080PLAT20

Hidden sectors are present.

size 156301488 sectors
user_max 156301488 sectors
dco 156301488 sectors
Device Configuration Overlay (DCO) present.

[ Continue ] Continue even if there are hidden data

darkod
May 26th, 2010, 03:33 PM
um i followed the instructions on your last post but where your post says third screen select "intel" mine doesn't give any options just continue


Disk /dev/sdb - 80 GB / 74 GiB - ATA HDS728080PLAT20

Hidden sectors are present.

size 156301488 sectors
user_max 156301488 sectors
dco 156301488 sectors
Device Configuration Overlay (DCO) present.

[ Continue ] Continue even if there are hidden data


It happened in another thread, people have reported that they simply selected Continue and it worked. I haven't had this situation personally, but I haven't needed to use this fix.

theone964
May 26th, 2010, 03:52 PM
It happened in another thread, people have reported that they simply selected Continue and it worked. I haven't had this situation personally, but I haven't needed to use this fix.

yeah that worked for that part. but when i rebooted there was no windows menuentry, updated grub and rebooted again still same thing.

darkod
May 26th, 2010, 04:05 PM
In the results file you have a menu entry in grub.cfg. It shouldn't go away even if it doesn't load windows properly.

Can you run the script again and post the results as before?

theone964
May 26th, 2010, 04:21 PM
In the results file you have a menu entry in grub.cfg. It shouldn't go away even if it doesn't load windows properly.

Can you run the script again and post the results as before?

Sure thing and thanks again for the help


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 /boot/grub.
=> 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: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04 LTS
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:

sdb1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sdb1 and
looks at sector 271935 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

sdb2: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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 150,675,455 150,673,408 83 Linux
/dev/sda2 150,677,502 156,301,311 5,623,810 5 Extended
/dev/sda5 150,677,504 156,301,311 5,623,808 82 Linux swap / Solaris


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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 13,655,249 13,655,187 c W95 FAT32 (LBA)
/dev/sdb2 * 13,655,250 156,296,384 142,641,135 7 HPFS/NTFS


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 112dc9b4-c1eb-41d7-a637-5891e918fc5c ext4
/dev/sda2: PTTYPE="dos"
/dev/sda5 6ac278f7-1cf4-4827-bf02-a5512dec17cb swap
/dev/sda: PTTYPE="dos"
/dev/sdb1 42F7-7216 vfat PRESARIO_RP
/dev/sdb2 EC7CBFF47CBFB7A2 ntfs PRESARIO
/dev/sdb: PTTYPE="dos"
error: /dev/sdc: No medium found
error: /dev/sdd: No medium found
error: /dev/sde: No medium found
error: /dev/sdf: No medium found

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

Device Mount_Point Type Options

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


=========================== sda1/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 $prefix/grubenv ]; then
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
}
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 112dc9b4-c1eb-41d7-a637-5891e918fc5c
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768
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
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 112dc9b4-c1eb-41d7-a637-5891e918fc5c
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 112dc9b4-c1eb-41d7-a637-5891e918fc5c
insmod tga
if background_image /usr/share/images/grub/B-1B_over_the_pacific_ocean.tga ; then
set color_normal=yellow/black
set color_highlight=white/red
else
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 112dc9b4-c1eb-41d7-a637-5891e918fc5c
linux /boot/vmlinuz-2.6.32-22-generic root=UUID=112dc9b4-c1eb-41d7-a637-5891e918fc5c ro quiet splash
initrd /boot/initrd.img-2.6.32-22-generic
}
menuentry 'Ubuntu, 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 112dc9b4-c1eb-41d7-a637-5891e918fc5c
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=112dc9b4-c1eb-41d7-a637-5891e918fc5c ro quiet splash
initrd /boot/initrd.img-2.6.32-21-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
### 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 ###

=============================== 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=112dc9b4-c1eb-41d7-a637-5891e918fc5c / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=6ac278f7-1cf4-4827-bf02-a5512dec17cb none swap sw 0 0

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


73.2GB: boot/grub/core.img
26.6GB: boot/grub/grub.cfg
74.0GB: boot/initrd.img-2.6.32-21-generic
74.0GB: boot/initrd.img-2.6.32-22-generic
73.9GB: boot/vmlinuz-2.6.32-21-generic
73.6GB: boot/vmlinuz-2.6.32-22-generic
74.0GB: initrd.img
74.0GB: initrd.img.old
73.6GB: vmlinuz
73.9GB: vmlinuz.old

================================ sdb1/boot.ini: ================================

[boot loader]
timeout=0
default=C:\CMDCONS\BOOTSECT.DAT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect
C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows Recovery Console" /cmdcons

================================ sdb2/boot.ini: ================================

[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect
C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows Recovery Console" /cmdcons
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda2

00000000 ed 13 21 b9 00 c2 fb 1e c0 e0 62 f4 51 be ea d4 |..!.......b.Q...|
00000010 02 42 ef 20 3b 17 01 3c 22 f4 5e 0f fe 35 fd bf |.B. ;..<".^..5..|
00000020 31 d1 3d 20 e6 1e 14 a9 00 95 09 32 b2 30 0a c6 |1.= .......2.0..|
00000030 31 13 ec 1d c2 62 e1 63 dd de 01 3b 54 fb e1 02 |1....b.c...;T...|
00000040 30 36 e9 20 e0 b3 11 2f 01 20 cd 12 00 f8 1e 14 |06. .../. ......|
00000050 3c d1 bb 55 44 ff f9 c1 04 42 12 c9 12 ef 01 2a |<..UD....B.....*|
00000060 30 ce 21 f6 79 b0 ef f6 3b b7 5c 00 c0 6b 94 3c |0.!.y...;.\..k.<|
00000070 00 84 13 14 2f 06 ee eb b2 ee 40 1e 16 15 6f 99 |..../.....@...o.|
00000080 1b a3 01 04 13 f2 61 df 0d 0e c4 7b 97 5b b4 2f |......a....{.[./|
00000090 e4 4f df 0c 00 b4 23 23 dc b3 33 4e fe 0f 2b b3 |.O....##..3N..+.|
000000a0 50 cc 02 31 56 09 01 de 00 f1 3f 10 ef 3d f7 2c |P..1V.....?..=.,|
000000b0 ce 02 3e 0e 00 32 ff 10 01 03 db d2 40 17 4b dc |..>..2......@.K.|
000000c0 f0 34 2d 0d e0 0c 24 3f e2 0f 01 a9 02 d0 ee 0f |.4-...$?........|
000000d0 22 01 02 01 fd e5 29 e3 10 2f 14 db 01 25 e1 2f |".....)../...%./|
000000e0 d0 22 d1 21 fd 10 c1 0e 15 04 4f fa ac 00 00 f1 |.".!......O.....|
000000f0 34 d0 1f 2c 25 0f fd ff e7 2c c1 50 f0 23 9d 4f |4..,%....,.P.#.O|
00000100 01 1d 17 50 01 ed 21 df f0 02 ff 1e ef 14 30 ff |...P..!.......0.|
00000110 e1 40 00 e4 ce 55 fb 35 1f e0 2d af df 03 43 63 |.@...U.5..-...Cc|
00000120 d9 f1 f0 af 00 ad fc 20 e1 ff bb f0 47 45 4b aa |....... ....GEK.|
00000130 ed cf 65 0d f2 3f 01 2d 7c d2 2e 22 f5 ec e2 5b |..e..?.-|.."...[|
00000140 d2 fe 24 fb f3 0c f2 f5 00 e1 31 22 d9 c2 30 fd |..$.......1"..0.|
00000150 22 ee 15 52 fe eb ad 11 73 02 01 51 70 ff c9 ef |"..R....s..Qp...|
00000160 00 52 01 41 da 21 00 f0 ce 21 34 1c 00 ba 5c 90 |.R.A.!...!4...\.|
00000170 11 22 ee bd 25 31 de 13 eb 02 64 1e 3b cc 01 78 |."..%1....d.;..x|
00000180 dd 33 3d e1 d1 0d 26 00 ff fe cc f1 77 31 ef ab |.3=...&.....w1..|
00000190 00 b5 cf 74 ed f4 50 24 ea cf e1 23 2f fe 14 d2 |...t..P$...#/...|
000001a0 52 b9 01 35 12 ee 22 f3 40 31 9d 40 9d 23 33 3b |R..5..".@1.@.#3;|
000001b0 01 11 0d f0 00 f2 11 01 21 0e 12 fe 0f 0d 00 fe |........!.......|
000001c0 ff ff 82 fe ff ff 02 00 00 00 00 d0 55 00 00 00 |............U...|
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


=======Devices which don't seem to have a corresponding hard drive==============

sdc sdd sde sdf

theone964
May 26th, 2010, 04:23 PM
lol i think i missed a step. i only did it on partition 2 the actual XP one and not on the XP recovery drive let me try that and i'll update.

sorry

darkod
May 26th, 2010, 04:31 PM
Also, from the results I can't tell for sure if your os-prober file is executable. That is the file scanning for other OSs.

Just to make sure it's executable, run:

sudo chmod +x /etc/grub.d/30_os-prober
sudo update-grub

See if that reports finding XP.

theone964
May 26th, 2010, 05:01 PM
Also, from the results I can't tell for sure if your os-prober file is executable. That is the file scanning for other OSs.

Just to make sure it's executable, run:

sudo chmod +x /etc/grub.d/30_os-prober
sudo update-grub

See if that reports finding XP.

it already is executable i know i did that once i edited it. doing your sequence on my recovery partition remedied the situation can get into windows now.

all wasted though anyway. was gonna use my anydvd and clonedvd to backup my newest dvd's i got last week. the trial is over and im not paying for it, esp when i'm gonna be using ubuntu most of the time anyway