sorrybloke
February 26th, 2011, 04:37 PM
Hi,
I've recently moved from an HD to an SSD for my Lenovo T61-p laptop using Ubuntu 10.10 and have been experiencing the following issue:
When selecting Windows XP in GRUB 2, a blank screen is displayed indefinitely.
Note that:
Ubuntu itself boot fine and that the partition that hosts the Windows XP files can be mounted & accessed correctly from within Ubuntu.
The Windows XP partition was copied over from the old HD by using Clonezilla to backup the partition itself and then restore it to /dev/sda1.
Following the Windows XP partition restore, Ubuntu 10.10 was freshly installed to /dev/sda2 using the liveCD.
My intuition led me to believe that something is wrong with where GRUB 2 believes that the Windows XP partition is to be booted from or that the Windows XP partition itself has some issue. Following my intuition, I've used boot_infoscript055 to see what it could reveal.
Here are the contents of boot_infoscript055's RESULTS.txt file:
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 #2 for (,msdos2)/boot/grub.
sda1: __________________________________________________ _______________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sda1 starts
at sector 63. But according to the info from fdisk,
sda1 starts at sector 2048. According to the info in
the boot sector, sda1 has 52422648 sectors, but
according to the info from fdisk, it has 52430847
sectors.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM
sda2: __________________________________________________ _______________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sda3: __________________________________________________ _______________________
File system: swap
Boot sector type: -
Boot sector info:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ __________________________________________________ ___
Disk /dev/sda: 55.0 GB, 55021510656 bytes
255 heads, 63 sectors/track, 6689 cylinders, total 107463888 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 52,432,895 52,430,848 83 Linux
/dev/sda2 * 52,432,896 104,861,695 52,428,800 83 Linux
/dev/sda3 104,861,696 107,463,887 2,602,192 82 Linux swap / Solaris
blkid -c /dev/null: __________________________________________________ __________
Device UUID TYPE LABEL
/dev/sda1 98D47CFAD47CDC46 ntfs SO
/dev/sda2 81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3 ext4
/dev/sda3 46f6d651-e163-4597-b51d-00d5a79868c2 swap
/dev/sda: PTTYPE="dos"
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sda2 / ext4 (rw,noatime,discard,errors=remount-ro,commit=0)
================================ 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" /fastdetect /NoExecute=OptIn
=========================== sda2/boot/grub/grub.cfg: ===========================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
insmod vbe
insmod vga
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-25-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3
linux /boot/vmlinuz-2.6.35-25-generic-pae root=UUID=81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3 ro quiet splash elevator=noop
initrd /boot/initrd.img-2.6.35-25-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.35-25-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3
echo 'Loading Linux 2.6.35-25-generic-pae ...'
linux /boot/vmlinuz-2.6.35-25-generic-pae root=UUID=81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-25-generic-pae
}
### 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,msdos2)'
search --no-floppy --fs-uuid --set 81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3
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)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 98d47cfad47cdc46
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 ###
=============================== sda2/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/sda2 during installation
UUID=81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3 / ext4 defaults,noatime,discard,errors=remount-ro 0 1
#
# swap was on /dev/sda3 during installation
UUID=46f6d651-e163-4597-b51d-00d5a79868c2 none swap sw 0 0
#
#Ram Drive
tmpfs /tmp tmpfs nodev,nosuid,noatime,size=1024M,mode=1777 0 0
=================== sda2: Location of files loaded by Grub: ===================
37.7GB: boot/grub/core.img
50.8GB: boot/grub/grub.cfg
27.5GB: boot/initrd.img-2.6.35-25-generic-pae
37.9GB: boot/vmlinuz-2.6.35-25-generic-pae
27.5GB: initrd.img
37.9GB: vmlinuz
I am guessing that my problem has something to do with the following (which is mentioned for the Windows XP partition):
According to the info in the boot sector, sda1 starts at sector 63. But according to the info from fdisk, sda1 starts at sector 2048. According to the info in the boot sector, sda1 has 52422648 sectors, but according to the info from fdisk, it has 52430847 sectors.
My question is: "How do I (or can I) troubleshoot this issue further (and, hopefully, fix it :) )?"
Thank you in advance for your help.
I've recently moved from an HD to an SSD for my Lenovo T61-p laptop using Ubuntu 10.10 and have been experiencing the following issue:
When selecting Windows XP in GRUB 2, a blank screen is displayed indefinitely.
Note that:
Ubuntu itself boot fine and that the partition that hosts the Windows XP files can be mounted & accessed correctly from within Ubuntu.
The Windows XP partition was copied over from the old HD by using Clonezilla to backup the partition itself and then restore it to /dev/sda1.
Following the Windows XP partition restore, Ubuntu 10.10 was freshly installed to /dev/sda2 using the liveCD.
My intuition led me to believe that something is wrong with where GRUB 2 believes that the Windows XP partition is to be booted from or that the Windows XP partition itself has some issue. Following my intuition, I've used boot_infoscript055 to see what it could reveal.
Here are the contents of boot_infoscript055's RESULTS.txt file:
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 #2 for (,msdos2)/boot/grub.
sda1: __________________________________________________ _______________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sda1 starts
at sector 63. But according to the info from fdisk,
sda1 starts at sector 2048. According to the info in
the boot sector, sda1 has 52422648 sectors, but
according to the info from fdisk, it has 52430847
sectors.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM
sda2: __________________________________________________ _______________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sda3: __________________________________________________ _______________________
File system: swap
Boot sector type: -
Boot sector info:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ __________________________________________________ ___
Disk /dev/sda: 55.0 GB, 55021510656 bytes
255 heads, 63 sectors/track, 6689 cylinders, total 107463888 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 52,432,895 52,430,848 83 Linux
/dev/sda2 * 52,432,896 104,861,695 52,428,800 83 Linux
/dev/sda3 104,861,696 107,463,887 2,602,192 82 Linux swap / Solaris
blkid -c /dev/null: __________________________________________________ __________
Device UUID TYPE LABEL
/dev/sda1 98D47CFAD47CDC46 ntfs SO
/dev/sda2 81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3 ext4
/dev/sda3 46f6d651-e163-4597-b51d-00d5a79868c2 swap
/dev/sda: PTTYPE="dos"
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sda2 / ext4 (rw,noatime,discard,errors=remount-ro,commit=0)
================================ 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" /fastdetect /NoExecute=OptIn
=========================== sda2/boot/grub/grub.cfg: ===========================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
insmod vbe
insmod vga
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-25-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3
linux /boot/vmlinuz-2.6.35-25-generic-pae root=UUID=81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3 ro quiet splash elevator=noop
initrd /boot/initrd.img-2.6.35-25-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.35-25-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3
echo 'Loading Linux 2.6.35-25-generic-pae ...'
linux /boot/vmlinuz-2.6.35-25-generic-pae root=UUID=81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-25-generic-pae
}
### 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,msdos2)'
search --no-floppy --fs-uuid --set 81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3
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)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 98d47cfad47cdc46
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 ###
=============================== sda2/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/sda2 during installation
UUID=81e77ca2-0991-40c3-a6ca-9c1e8a86f1a3 / ext4 defaults,noatime,discard,errors=remount-ro 0 1
#
# swap was on /dev/sda3 during installation
UUID=46f6d651-e163-4597-b51d-00d5a79868c2 none swap sw 0 0
#
#Ram Drive
tmpfs /tmp tmpfs nodev,nosuid,noatime,size=1024M,mode=1777 0 0
=================== sda2: Location of files loaded by Grub: ===================
37.7GB: boot/grub/core.img
50.8GB: boot/grub/grub.cfg
27.5GB: boot/initrd.img-2.6.35-25-generic-pae
37.9GB: boot/vmlinuz-2.6.35-25-generic-pae
27.5GB: initrd.img
37.9GB: vmlinuz
I am guessing that my problem has something to do with the following (which is mentioned for the Windows XP partition):
According to the info in the boot sector, sda1 starts at sector 63. But according to the info from fdisk, sda1 starts at sector 2048. According to the info in the boot sector, sda1 has 52422648 sectors, but according to the info from fdisk, it has 52430847 sectors.
My question is: "How do I (or can I) troubleshoot this issue further (and, hopefully, fix it :) )?"
Thank you in advance for your help.