PDA

View Full Version : [xubuntu] Grub2 fails to load XP after Xubuntu 12.04 dual-boot install



13eastie
June 3rd, 2012, 08:51 PM
I have a single HDD, aged, WinXP laptop on top of which I have recently installed Xubuntu 12.04, with partitions as follows:


$ sudo fdisk -l

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
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa6ed7387

Device Boot Start End Blocks Id System
/dev/sda1 * 63 75264524 37632231 7 HPFS/NTFS/exFAT
/dev/sda2 75266046 117209087 20971521 5 Extended
/dev/sda5 75266048 116293631 20513792 83 Linux
/dev/sda6 116295680 117209087 456704 82 Linux swap / Solaris

The /etc/default/grub file is like this:


$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

/boot/grub/grub.cfg reads thus:


$ cat /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 video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 12e1cd35-ba0d-467e-92f6-7dc09d4338d2
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 12e1cd35-ba0d-467e-92f6-7dc09d4338d2
set locale_dir=($root)/boot/grub/locale
set lang=en_GB
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
### 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
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.2.0-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 12e1cd35-ba0d-467e-92f6-7dc09d4338d2
linux /boot/vmlinuz-3.2.0-24-generic root=UUID=12e1cd35-ba0d-467e-92f6-7dc09d4338d2 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-24-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 12e1cd35-ba0d-467e-92f6-7dc09d4338d2
echo 'Loading Linux 3.2.0-24-generic ...'
linux /boot/vmlinuz-3.2.0-24-generic root=UUID=12e1cd35-ba0d-467e-92f6-7dc09d4338d2 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-24-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 12e1cd35-ba0d-467e-92f6-7dc09d4338d2
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=12e1cd35-ba0d-467e-92f6-7dc09d4338d2 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-23-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 12e1cd35-ba0d-467e-92f6-7dc09d4338d2
echo 'Loading Linux 3.2.0-23-generic ...'
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=12e1cd35-ba0d-467e-92f6-7dc09d4338d2 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-generic
}
}
### END /etc/grub.d/10_linux ###

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

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 12e1cd35-ba0d-467e-92f6-7dc09d4338d2
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 12e1cd35-ba0d-467e-92f6-7dc09d4338d2
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 0C7CE3107CE2F2FE
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 ###

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

Grub version is confirmed


$ sudo grub-install -v
grub-install (GRUB) 1.99-21ubuntu3

The root directory of the NTFS partition contains the following:


$ ls -lah
total 675M
drwxrwxrwx 1 root root 8.0K May 16 15:49 .
drwxr-xr-x 5 root root 4.0K May 18 19:22 ..
drwxrwxrwx 1 root root 0 Dec 22 2007 3Com
-rwxrwxrwx 1 root root 0 Aug 23 2004 AUTOEXEC.BAT
-rwxrwxrwx 1 root root 211 May 14 22:54 boot.ini
-rwxrwxrwx 1 root root 0 May 14 22:54 CONFIG.SYS
drwxrwxrwx 1 root root 16K Aug 16 2009 d364bf950d6b692f15646d35
drwxrwxrwx 1 root root 4.0K Nov 30 2004 Documents and Settings
-rwxrwxrwx 1 root root 182 Feb 21 2009 drwtsn32.log
-rwxrwxrwx 1 root root 1.7M Sep 5 2001 gdiplus.dll
drwxrwxrwx 1 root root 0 Apr 30 2009 Google
drwxrwxrwx 1 root root 1.2M Aug 23 2004 I386
-rwxrwxrwx 1 root root 0 Aug 23 2004 IO.SYS
-rwxrwxrwx 1 root root 0 Aug 23 2004 MSDOS.SYS
drwxrwxrwx 1 root root 0 Dec 22 2007 MSOCache
-rwxrwxrwx 1 root root 47K Aug 4 2004 NTDETECT.COM
-rwxrwxrwx 1 root root 245K Nov 1 2008 ntldr
-rwxrwxrwx 1 root root 672M May 16 15:49 pagefile.sys
drwxrwxrwx 1 root root 24K Mar 29 18:51 Program Files
drwxrwxrwx 1 root root 4.0K Nov 29 2004 RECYCLER
-rwxrwxrwx 1 root root 0 Oct 28 2005 s2cg
drwxrwxrwx 1 root root 4.0K Jan 27 2007 setup
drwxrwxrwx 1 root root 0 Feb 16 2005 spoolerlogs
-rwxrwxrwx 2 root root 268 May 6 2007 sqmdata00.sqm
-rwxrwxrwx 2 root root 244 May 6 2007 sqmnoopt00.sqm
drwxrwxrwx 1 root root 0 Aug 23 2004 SUPPORT
-rwxrwxrwx 1 root root 292 Sep 7 2004 SWSTAMP.TXT
drwxrwxrwx 1 root root 4.0K Nov 30 2004 System Volume Information
drwxrwxrwx 1 root root 0 Aug 23 2004 VALUEADD
drwxrwxrwx 1 root root 172K May 16 14:40 WINDOWS

The Xubuntu install is fantastic and works fine.
I am able to access all the files on the NTFS partition correctly from Xubuntu (as far as I can tell).

The problem is simply that when I select Windows XP from the Grub menu I get a blank screen with a flashing cursor in the top left and nothing else (barring immediate cessation of all disk activity).

The added complexity is that the machine in question will not boot from USB and the CD-ROM is faulty (I had to borrow a drive to complete the Xubuntu install).

I'd be very grateful indeed if someone could point me in the right direction as to how to get the dual boot working before I give the machine back to the relative for whom I am doing a favour.

Many thanks.

ajgreeny
June 3rd, 2012, 09:16 PM
First thing to do is try
sudo update-grub in terminal.

If that is no help, click on the boot-info-script in my signature, follow all the instructions to download and run the script and paste contents of RESULTS.txt in a New Reply, then highlight entire file and click on # in edit panel(code tags) to make it easier to read.
Or You can generate the tags first by pressing the # icon in the New Reply Edit toolbar and then paste the contents between the generated [ CODE] paste here [ /CODE] tags.
V60 has improved formating and requires code tags to make it legible. New Version is a zip file that you have to extract to get .sh to run.

13eastie
June 3rd, 2012, 09:51 PM
Thanks for the reply and the script.

I have already tried update-grub to no avail.

Output from the script is as follows:


$ cat RESULTS.txt
Boot Info Script 0.61 [1 April 2012]


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

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,msdos5)/boot/grub on this drive.

sda1: __________________________________________________ ________________________

File system: ntfs
Boot sector type: Windows XP: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files: /boot.ini /ntldr /NTDETECT.COM

sda2: __________________________________________________ ________________________

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

sda5: __________________________________________________ ________________________

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

sda6: __________________________________________________ ________________________

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

============================ 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 75,264,524 75,264,462 7 NTFS / exFAT / HPFS
/dev/sda2 75,266,046 117,209,087 41,943,042 5 Extended
/dev/sda5 75,266,048 116,293,631 41,027,584 83 Linux
/dev/sda6 116,295,680 117,209,087 913,408 82 Linux swap / Solaris


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/sda1 0C7CE3107CE2F2FE ntfs
/dev/sda5 12e1cd35-ba0d-467e-92f6-7dc09d4338d2 ext4
/dev/sda6 b265dcdd-da53-4989-85fd-fd0681be47a5 swap

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

Device Mount_Point Type Options

/dev/sda1 /mnt/ntfs fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda5 / 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 Home Edition" /noexecute=optin /fastdetect
--------------------------------------------------------------------------------

=========================== sda5/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 video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 12e1cd35-ba0d-467e-92f6-7dc09d4338d2
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 12e1cd35-ba0d-467e-92f6-7dc09d4338d2
set locale_dir=($root)/boot/grub/locale
set lang=en_GB
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
### 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
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.2.0-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 12e1cd35-ba0d-467e-92f6-7dc09d4338d2
linux /boot/vmlinuz-3.2.0-24-generic root=UUID=12e1cd35-ba0d-467e-92f6-7dc09d4338d2 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-24-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 12e1cd35-ba0d-467e-92f6-7dc09d4338d2
echo 'Loading Linux 3.2.0-24-generic ...'
linux /boot/vmlinuz-3.2.0-24-generic root=UUID=12e1cd35-ba0d-467e-92f6-7dc09d4338d2 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-24-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 12e1cd35-ba0d-467e-92f6-7dc09d4338d2
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=12e1cd35-ba0d-467e-92f6-7dc09d4338d2 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-23-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 12e1cd35-ba0d-467e-92f6-7dc09d4338d2
echo 'Loading Linux 3.2.0-23-generic ...'
linux /boot/vmlinuz-3.2.0-23-generic root=UUID=12e1cd35-ba0d-467e-92f6-7dc09d4338d2 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-generic
}
}
### END /etc/grub.d/10_linux ###

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

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 12e1cd35-ba0d-467e-92f6-7dc09d4338d2
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set=root 12e1cd35-ba0d-467e-92f6-7dc09d4338d2
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 0C7CE3107CE2F2FE
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 ###

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

=============================== sda5/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>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda5 during installation
UUID=12e1cd35-ba0d-467e-92f6-7dc09d4338d2 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=b265dcdd-da53-4989-85fd-fd0681be47a5 none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

= boot/grub/core.img 1
= boot/grub/grub.cfg 1
= boot/initrd.img-3.2.0-23-generic 2
= boot/initrd.img-3.2.0-24-generic 2
= boot/vmlinuz-3.2.0-23-generic 2
= boot/vmlinuz-3.2.0-24-generic 2
= initrd.img 2
= initrd.img.old 2
= vmlinuz 2
= vmlinuz.old 2

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

Unknown BootLoader on sda2

00000000 c9 b6 00 32 8f 0c dd 8f 92 f7 6d 10 af b9 6f a8 |...2......m...o.|
00000010 25 02 4d 21 73 00 9c f9 36 c6 51 e1 9b b1 00 f2 |%.M!s...6.Q.....|
00000020 5e ed b5 f7 2d f5 1d 01 24 02 a9 a4 2e 73 9f 26 |^...-...$....s.&|
00000030 d8 00 ca 3c 33 76 3e 4b dd b6 10 be e5 be a3 25 |...<3v>K.......%|
00000040 02 34 85 ce 00 73 e4 db 19 47 86 6e c7 80 c9 7b |.4...s...G.n...{|
00000050 b6 d7 dc b7 d4 81 0b 01 21 02 a6 90 b9 ce 7c 9b |........!.....|.|
00000060 74 02 e5 84 0b 5e ce df 52 3e 5f 00 e4 3d d7 67 |t....^..R>_..=.g|
00000070 d9 db ea 6a 01 45 08 bf 2e f8 7f ba ec fb 00 3b |...j.E.........;|
00000080 7d 48 f9 6f c3 fd d3 21 b1 01 6b 0d da b3 c2 06 |}H.o...!..k.....|
00000090 32 7c 00 b3 e1 de e9 b3 ec ec f5 00 1f 2c f8 77 |2|...........,.w|
000000a0 b9 ec 7b 3b 08 3d 4d 62 70 0d 4a 8c a1 93 00 e5 |..{;.=Mbp.J.....|
000000b0 9f 0e f7 3d 8f 67 67 00 a9 f2 eb b7 9f 5c 7c 52 |...=.gg.....[0/460]
000000c0 00 ed dd 5d b8 71 dd 7f f1 10 cf 93 0a ee b0 2c |...].q.........,|
000000d0 c8 de e6 00 f3 e7 77 99 1b d3 c5 d6 00 98 b7 a3 |......w.........|
000000e0 1b c9 8d e7 9f 02 1b 20 2c 4a 1e 8f 59 d4 6f 00 |....... ,J..Y.o.|
000000f0 73 79 f1 ba 98 dd 28 97 00 a1 d5 e6 fd 3f d2 3b |sy....(......?.;|
00000100 1e 00 5b cd f7 9d c6 ce de f6 00 1d 2c 7a 96 c5 |..[.........,z..|
00000110 d4 af 52 00 b4 ca 3d 2f c5 46 ee 9e 00 2f d9 fd |..R...=/.F.../..|
00000120 03 7e 5f 30 e5 00 d1 fc d6 79 23 eb 2b a3 00 1d |.~_0.....y#.+...|
00000130 50 fd 4f cb 3e 1d ee 00 7b 1e ce cf 51 f2 cf 87 |P.O.>...{...Q...|
00000140 00 7b 9e c7 b3 b3 d4 d6 3c 40 f7 39 bb d4 64 c9 |.{......<@.9..d.|
00000150 06 01 7c 02 b7 52 0b ed f5 35 85 ce 69 00 51 93 |..|..R...5..i.Q.|
00000160 2f cb be 1f ee bb 1a 3e d0 0f 7e d5 0f 20 18 ca |/......>..~.. ..|
00000170 8c 99 05 e0 00 7d c2 10 4f cb fc 8f ba 10 ed 7b |.....}..O......{|
00000180 3b 7d 00 18 99 51 94 00 32 fc bf c8 fb b6 d7 b3 |;}...Q..2.......|
00000190 08 b7 d4 7c 85 00 d4 17 39 95 0d 21 16 c3 81 01 |...|....9..!....|
000001a0 20 16 8f 97 f9 1f 00 76 da f6 76 fa 9a 82 e7 00 | ......v..v.....|
000001b0 32 a3 28 f0 cb f2 ff 00 67 b0 21 21 16 51 00 fe |2.(.....g.!!.Q..|
000001c0 ff ff 83 fe ff ff 02 00 00 00 00 08 72 02 00 fe |............r...|
000001d0 ff ff 05 fe ff ff 89 0b 72 02 79 f4 0d 00 00 00 |........r.y.....|
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: ===============================

xz: (stdin): Compressed data is corrupt
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
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
June 4th, 2012, 05:46 PM
You may need to run chkdsk from Windows XP install CD. Chkdsk is one thing from Ubuntu that you cannot repair in XP. You can try this but it only makes a few minor fixes and sets the chkdsk flag in the NTFS partition so it should run chkdsk on reboot into XP. Do not remember if f8 works for XP or not. But time from pressing grub entry for XP and it starting is shorter than a boot from MBR, so you have to be very quick (or almost same time).


sudo ntfsfix /dev/sda1

If that does not work, your only choices are to fix CD drive or pull hard drive and plug into another system with a working Windows or working CD drive.

13eastie
June 4th, 2012, 09:17 PM
sudo ntfsfix /dev/sda1

Thanks, but no joy from that, unfortunately, and I can't bring up the F8 menu either.

There is no disk activity at all after I select Windows XP - I'm surmising that either Grub is following incorrect instructions within its own config or else something is at fault among the WinXP startup files.

oldfred
June 4th, 2012, 09:35 PM
Script is showing Windows has the correct files & things externally look ok. Boot.ini looks ok as it want to boot the first partition on the first drive. And grub is calling out the correct partition both by set root & UUID.

So it seems to be internal to Windows which usually is chkdsk.

Move drive to another system with Windows and try running chkdsk from that.

If you have no other system with Windows, you may be able to run this from a working liveCD on another system.

Also has chkdsk and some other Windows repairs in free version:
http://www.partitionwizard.com/features.html
http://www.partitionwizard.com/partitionmanager/partition-fix.html

Boot repair also does some fixes:

Boot Repair -Also handles LVM, GPT and separate /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.