PDA

View Full Version : [ubuntu] Cant dual boot Win XP with Ubuntu 10.10



perboeggild
April 24th, 2011, 11:02 AM
I have tried to install Ubuntu 10.10 with dual boot Win XP. Ubuntu (using GRUB2) boots perfectly and in the boot menu Win XP shows up. But when I try the Win XP option all I get is a blank screen with a blinking cursor.

I can see some of the files from XP from Ubuntu but after trying to repair windows Boot with restore CD (created before installing Ubuntu) user files seems to have disappeared (though many program folders are intact)

I have run the Boot Info Script, quoted below. Can anyone give a hint to a solution?


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 #5 for (,msdos5)/boot/grub.

sda1: __________________________________________________ _______________________

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

sda2: __________________________________________________ _______________________

File system: vfat
Boot sector type: HP Recovery
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

sda3: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

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

sda6: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 160.0 Gb, 160041885696 byte
255 heads, 63 sectors/track, 19457 cylinders, i alt 312581808 sektorer
Units = sektorer of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 * 63 103,309,311 103,309,249 7 HPFS/NTFS
/dev/sda2 301,114,800 312,575,759 11,460,960 c W95 FAT32 (LBA)
/dev/sda3 103,309,312 301,113,343 197,804,032 5 Extended
/dev/sda5 103,311,360 298,043,391 194,732,032 83 Linux
/dev/sda6 298,045,440 301,113,343 3,067,904 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 F0D8B921D8B8E6CE ntfs HP_PAVILION
/dev/sda2 4B6E-6BC0 vfat HP_RECOVERY
/dev/sda3: PTTYPE="dos"
/dev/sda5 575abd7b-fc50-4e68-9867-5853d20e7b36 ext4
/dev/sda6 f1d8b2b7-bbe1-4e87-badc-487fa92ebb80 swap
/dev/sda: PTTYPE="dos"

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

Device Mount_Point Type Options

/dev/sda5 / ext4 (rw,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 Home Edition" /NoExecute=optin /fastdetect

================================ sda2/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

=========================== 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 part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 575abd7b-fc50-4e68-9867-5853d20e7b36
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,msdos5)'
search --no-floppy --fs-uuid --set 575abd7b-fc50-4e68-9867-5853d20e7b36
set locale_dir=($root)/boot/grub/locale
set lang=da
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-28-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 575abd7b-fc50-4e68-9867-5853d20e7b36
linux /boot/vmlinuz-2.6.35-28-generic-pae root=UUID=575abd7b-fc50-4e68-9867-5853d20e7b36 ro quiet splash
initrd /boot/initrd.img-2.6.35-28-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.35-28-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 575abd7b-fc50-4e68-9867-5853d20e7b36
echo 'Loading Linux 2.6.35-28-generic-pae ...'
linux /boot/vmlinuz-2.6.35-28-generic-pae root=UUID=575abd7b-fc50-4e68-9867-5853d20e7b36 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-28-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.35-28-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 575abd7b-fc50-4e68-9867-5853d20e7b36
linux /boot/vmlinuz-2.6.35-28-generic root=UUID=575abd7b-fc50-4e68-9867-5853d20e7b36 ro quiet splash
initrd /boot/initrd.img-2.6.35-28-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-28-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 575abd7b-fc50-4e68-9867-5853d20e7b36
echo 'Loading Linux 2.6.35-28-generic ...'
linux /boot/vmlinuz-2.6.35-28-generic root=UUID=575abd7b-fc50-4e68-9867-5853d20e7b36 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-28-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 575abd7b-fc50-4e68-9867-5853d20e7b36
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=575abd7b-fc50-4e68-9867-5853d20e7b36 ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set 575abd7b-fc50-4e68-9867-5853d20e7b36
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=575abd7b-fc50-4e68-9867-5853d20e7b36 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-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 575abd7b-fc50-4e68-9867-5853d20e7b36
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 575abd7b-fc50-4e68-9867-5853d20e7b36
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)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set f0d8b921d8b8e6ce
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Windows NT/2000/XP (on /dev/sda2)" {
insmod part_msdos
insmod fat
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 4b6e-6bc0
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 -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/sda5 during installation
UUID=575abd7b-fc50-4e68-9867-5853d20e7b36 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=f1d8b2b7-bbe1-4e87-badc-487fa92ebb80 none swap sw 0 0

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


55.2GB: boot/grub/core.img
98.2GB: boot/grub/grub.cfg
53.7GB: boot/initrd.img-2.6.35-22-generic
53.8GB: boot/initrd.img-2.6.35-28-generic
54.9GB: boot/initrd.img-2.6.35-28-generic-pae
55.2GB: boot/vmlinuz-2.6.35-22-generic
55.2GB: boot/vmlinuz-2.6.35-28-generic
55.3GB: boot/vmlinuz-2.6.35-28-generic-pae
54.9GB: initrd.img
53.8GB: initrd.img.old
55.3GB: vmlinuz
55.2GB: vmlinuz.old
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda3

00000000 00 00 0a 8c 67 d8 53 38 7b 6a d1 0d 0a e9 61 ef |....g.S8{j....a.|
00000010 6d 1c 55 a3 5f 4c 61 ed a3 aa b4 6b b5 9c 3d b4 |m.U._La....k..=.|
00000020 d9 5a a9 34 93 4d c0 bb 47 fc f5 9e 11 a0 cb f4 |.Z.4.M..G.......|
00000030 e1 c4 e5 30 fe 12 67 ce 0a 97 53 be f2 07 d2 55 |...0..g...S....U|
00000040 14 82 22 ee c4 04 e7 6d eb 7a 55 95 a0 31 84 c7 |.."....m.zU..1..|
00000050 49 a6 28 ac ef d9 79 81 db 4f 42 20 36 56 54 6f |I.(...y..OB 6VTo|
00000060 0a 80 2a e5 09 8c 47 5b 13 75 a7 85 c7 29 9a d9 |..*...G[.u...)..|
00000070 9d a1 29 63 a1 c0 99 9a e5 52 a1 e2 ed 46 f9 5c |..)c.....R...F.\|
00000080 bb 73 4a 5d cd 8e 2b 3c 49 ab 15 5c d6 f3 4d 76 |.sJ]..+<I..\..Mv|
00000090 5f d5 fc 3c cb 11 ec 78 37 96 d0 e3 a7 b1 6d ea |_..<...x7.....m.|
000000a0 cf 16 21 33 66 58 32 c3 61 7f 02 2c c9 67 16 c7 |..!3fX2.a..,.g..|
000000b0 26 aa f9 55 f3 44 44 d5 0c 8f 0d 29 98 10 30 a9 |&..U.DD....)..0.|
000000c0 82 b2 86 b5 3f 55 51 b9 82 34 d0 66 6f 5c 51 49 |....?UQ..4.fo\QI|
000000d0 1a 79 76 ae 7d 8b 38 ca cd 3b 9e 1a 1c dc 73 95 |.yv.}.8..;....s.|
000000e0 73 c8 90 69 2a eb 4e 0f a4 77 48 db ab db 52 d7 |s..i*.N..wH...R.|
000000f0 dc 97 05 ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
00000100 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
*
00000170 ff f5 95 99 59 59 5c bd c4 ff 43 24 b8 79 5d 45 |....YY\...C$.y]E|
00000180 31 7f 62 d9 50 e1 ad 7a fa 92 21 c3 ce 51 63 42 |1.b.P..z..!..QcB|
00000190 dc 62 b5 a1 d7 86 9f 28 42 24 70 93 20 51 09 d3 |.b.....(B$p. Q..|
000001a0 70 f5 8b 08 2a c0 93 01 98 34 c9 18 a8 44 8e f4 |p...*....4...D..|
000001b0 ab 33 3a 1b 46 a7 27 84 ac ee 41 c0 7a 9f 00 fe |.3:.F.'...A.z...|
000001c0 ff ff 83 fe ff ff 00 08 00 00 00 60 9b 0b 00 fe |...........`....|
000001d0 ff ff 05 fe ff ff 00 68 9b 0b 00 d8 2e 00 00 00 |.......h........|
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

Paddy Landau
April 24th, 2011, 03:11 PM
Several possibilities raise their heads. The complication is that you have used the Windows restore CD, which -- depending on the OEM -- may erase your data.

When you installed Ubuntu, I wonder if you shrunk Windows XP too small? Windows has rather heavy requirements, and if you shrink Windows too small, it may just give up.

However, if you're lucky, all that's happened is that your Grub has got confused. Boot into Ubuntu as usual, open a terminal, and enter the following command.

sudo update-grubReboot. Let us know if it solves your issue.