PDA

View Full Version : [ubuntu] Wubi/Ubuntu works, but Windows XP stopped working



kitandkaboodle
October 31st, 2011, 08:48 AM
Have been happily (well, usually) using ubuntu with wubi for prob more than a year now.
However, a couple months ago, the bootup for Windows XP stopped working. When the computer starts, if I choose ubuntu everything works fine, but if I choose Windows it just loops around endlessly back to the windows/ubuntu choice screen, and never makes it into Windows.

This is on a Dell Inspiron 700m laptop. It's funny that the wubi/Ubuntu has still worked fine for a long time even without it's "host" Windows being able to open.

BTW, I don't have any Windows discs and I think this computer might not even come with or need them.

I'm wondering
1) what went wrong with my Windows, and
2) how to fix it so I can get back into Windows, and
3) if I do fix Windows, such as by a "system restore" or somesuch, will it wipe out my current ubuntu?

Rubi1200
October 31st, 2011, 12:31 PM
Please post the results of the boot info script so we can diagnose the situation.

There is a link at the bottom of my post with instructions.

kitandkaboodle
October 31st, 2011, 05:30 PM
Thanks for reply, Rubi1200: I hope I've done what you asked here:


Boot Info Script 0.60 from 17 May 2011


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

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

sda1: __________________________________________________ ________________________

File system: vfat
Boot sector type: Unknown
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 95
Boot files: /IO.SYS /MSDOS.SYS /COMMAND.COM

sda2: __________________________________________________ ________________________

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: /boot.ini /ntldr /NTDETECT.COM /wubildr
/ubuntu/winboot/wubildr /wubildr.mbr
/ubuntu/winboot/wubildr.mbr /ubuntu/disks/root.disk
/ubuntu/disks/swap.disk

sda2/Wubi: __________________________________________________ ___________________

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

============================ 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 Sector End Sector # of Sectors Id System

/dev/sda1 63 96,389 96,327 de Dell Utility
/dev/sda2 * 96,390 149,757,929 149,661,540 7 NTFS / exFAT / HPFS


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 fecd980b-586e-4e3c-b4ec-177da9ac274c ext4
/dev/sda1 07D5-0506 vfat DellUtility
/dev/sda2 5E90B6DB90B6B93B ntfs

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

Device Mount_Point Type Options

/dev/loop0 / ext4 (rw,errors=remount-ro)
/dev/sda2 /host fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,all ow_other,blksize=4096)


================================ sda2/boot.ini: ================================

--------------------------------------------------------------------------------
[boot loader]
timeout=30
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 Professional" /fastdetect /NoExecute=OptIn
C:\wubildr.mbr = "Ubuntu"
--------------------------------------------------------------------------------

======================== sda2/Wubi/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 ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 5E90B6DB90B6B93B
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
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 ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 5E90B6DB90B6B93B
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
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 ###
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_lupin ###
menuentry "Ubuntu, Linux 2.6.32-33-generic" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 5E90B6DB90B6B93B
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.32-33-generic root=UUID=5E90B6DB90B6B93B loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.32-33-generic
}
menuentry "Ubuntu, Linux 2.6.32-33-generic (recovery mode)" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 5E90B6DB90B6B93B
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.32-33-generic root=UUID=5E90B6DB90B6B93B loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.32-33-generic
}
menuentry "Ubuntu, Linux 2.6.32-24-generic" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 5E90B6DB90B6B93B
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=5E90B6DB90B6B93B loop=/ubuntu/disks/root.disk ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry "Ubuntu, Linux 2.6.32-24-generic (recovery mode)" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 5E90B6DB90B6B93B
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=5E90B6DB90B6B93B loop=/ubuntu/disks/root.disk ro single
initrd /boot/initrd.img-2.6.32-24-generic
}
### END /etc/grub.d/10_lupin ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda2)" {
insmod ntfs
set root='(hd0,2)'
search --no-floppy --fs-uuid --set 5E90B6DB90B6B93B
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 ###
--------------------------------------------------------------------------------

============================= sda2/Wubi/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
/host/ubuntu/disks/root.disk / ext4 loop,errors=remount-ro 0 1
/host/ubuntu/disks/swap.disk none swap loop,sw 0 0
--------------------------------------------------------------------------------

================= sda2/Wubi: Location of files loaded by Grub: =================

GiB - GB File Fragment(s)

12.490398407 = 13.411463168 boot/grub/grub.cfg 1
2.866523743 = 3.077906432 boot/initrd.img-2.6.32-24-generic 1
2.779357910 = 2.984312832 boot/initrd.img-2.6.32-33-generic 1
2.769386292 = 2.973605888 boot/vmlinuz-2.6.32-24-generic 1
2.847511292 = 3.057491968 boot/vmlinuz-2.6.32-33-generic 1
2.779357910 = 2.984312832 initrd.img 1
2.866523743 = 3.077906432 initrd.img.old 1
2.847511292 = 3.057491968 vmlinuz 1
2.769386292 = 2.973605888 vmlinuz.old 1

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

Unknown BootLoader on sda1

00000000 eb 46 90 44 65 6c 6c 20 34 2e 31 00 02 04 01 00 |.F.Dell 4.1.....|
00000010 02 00 02 00 00 f8 5e 00 3f 00 ff 00 3f 00 00 00 |......^.?...?...|
00000020 47 78 01 00 80 00 29 06 05 d5 07 44 65 6c 6c 55 |Gx....)....DellU|
00000030 74 69 6c 69 74 79 46 41 54 31 36 20 20 20 00 00 |tilityFAT16 ..|
00000040 00 00 00 00 00 00 00 00 fa b8 00 00 8e d0 bc fc |................|
00000050 7b fb fc 8e d8 81 3e 72 04 45 44 74 1d ff 0e 13 |{.....>r.EDt....|
00000060 04 8b 0e 13 04 c1 e1 06 8e c1 b9 00 01 33 f6 33 |.............3.3|
00000070 ff f3 66 a5 c7 06 72 04 45 44 8e c0 bd 00 7c e8 |..f...r.ED....|.|
00000080 21 01 0f 82 bb 00 66 0f b7 86 16 00 66 d1 e0 66 |!.....f.....f..f|
00000090 0f b7 9e 0e 00 66 03 c3 66 03 86 1c 00 66 89 86 |.....f..f....f..|
000000a0 3e 00 8b 86 11 00 c1 e8 04 89 86 46 00 bb 00 05 |>..........F....|
000000b0 e8 aa 00 0f 82 8a 00 ba 10 00 b9 0b 00 be f2 7d |...............}|
000000c0 8b fb f3 a6 74 16 83 c3 20 4a 75 ee 66 ff 86 3e |....t... Ju.f..>|
000000d0 00 ff 8e 46 00 75 d6 be e1 7d eb 6d 66 0f b7 86 |...F.u...}.mf...|
000000e0 11 00 66 ba 20 00 00 00 66 f7 e2 66 0f b7 8e 0b |..f. ...f..f....|
000000f0 00 66 03 c1 66 48 66 f7 f1 66 01 86 3e 00 66 8b |.f..fHf..f..>.f.|
00000100 86 3e 00 66 89 46 fc 66 0f b7 47 1a 8b f8 2d 02 |.>.f.F.f..G...-.|
00000110 00 66 0f b6 9e 0d 00 66 f7 e3 66 01 86 3e 00 bb |.f.....f..f..>..|
00000120 00 07 c7 86 46 00 04 00 e8 32 00 72 14 81 c3 00 |....F....2.r....|
00000130 02 66 ff 86 3e 00 ff 8e 46 00 75 ec ea 00 02 70 |.f..>...F.u....p|
00000140 00 be d4 7d eb 03 be e1 7d e8 02 00 eb fe ac 3c |...}....}......<|
00000150 00 74 09 b4 0e bb 07 00 cd 10 eb f2 c3 66 8b 86 |.t...........f..|
00000160 3e 00 66 33 d2 66 0f b7 8e 18 00 66 f7 f1 66 42 |>.f3.f.....f..fB|
00000170 88 96 45 00 66 33 d2 66 0f b7 8e 1a 00 66 f7 f1 |..E.f3.f.....f..|
00000180 88 96 44 00 89 86 42 00 b8 01 02 8b 8e 42 00 c0 |..D...B......B..|
00000190 e5 06 0a ae 45 00 86 e9 8a b6 44 00 8a 96 24 00 |....E.....D...$.|
000001a0 cd 13 c3 80 3e c2 07 06 74 29 b8 01 02 bb 00 06 |....>...t)......|
000001b0 b9 01 00 b6 00 8a 96 24 00 cd 13 72 16 c6 06 c2 |.......$...r....|
000001c0 07 06 b8 01 03 bb 00 06 b9 01 00 b6 00 8a 96 24 |...............$|
000001d0 00 cd 13 c3 44 69 73 6b 20 65 72 72 6f 72 0d 0a |....Disk error..|
000001e0 00 4d 69 73 73 69 6e 67 20 6c 6f 61 64 65 72 0d |.Missing loader.|
000001f0 0a 00 49 4f 20 20 20 20 20 20 53 59 53 80 55 aa |..IO SYS.U.|
00000200

Rubi1200
November 1st, 2011, 09:40 AM
Not sure what is going on here, but I will ask some other members to take a look and offer their perspectives.

Thanks for hanging in there.

oldfred
November 1st, 2011, 04:17 PM
I also do not see anything wrong. Script is showing boot sector as ok, but it could have internal issues as it just check start & end. Windows boot files look ok (or else you would not be able to boot into wubi).

Have you run chkdsk? I do not think that should cause issues with wubi as Windows needs chkdsk like Linux needs fsck periodically.

bcbc
November 1st, 2011, 05:14 PM
I can't see anything wrong either. If you are considering restoring windows then it's a good idea to back up all your data, including the wubi install (the C:\ubuntu directory assuming you installed on C: )

When you select Windows next, hit the F8 key repeatedly (or try this when the machine first boots up) and see if it gives you an extended windows boot menu that offers to boot in safe mode, command prompt etc.