PDA

View Full Version : Can't boot Windows XP (separate HDD) after upgrade to 10.04



Archimedes6
June 15th, 2010, 08:21 PM
Hey guys, just signed up and am fairly new to Linux so please be gentle ;) This may have been answered somewhere, as I've noticed people having similar problems, but I haven't been able to figure out how to solve my particular issue, after searching for two days now. Basically, as the topic reads, I normally run Windows XP, and installed Ubuntu on a new HDD this week (Karmic). However, realising later that there was a new release, I just upgraded through the network, completely ignorant of their being anything wrong with this (Windows drive still being connected at this time). Now Ubuntu boots fine, but when I select Windows through the GRUB set-up, it just displays a black screen with the '_' cursor blinking and goes no further. I have absolutely no clue how to fix this, reading through various forum posts and messing with the boot command (or whatever you call it when you push 'e' at the GRUB screen) all day to no avail. One of the things I've download was the Boot_Info_Script, so hopefully someone out there can gleam some information on how the heck I can solve this issue and boot XP once again (hopefully without having to just blow away one or both of the OS's and doing a completely clean install). If there's anything I can do to provide any further required information, please don't hesitate to let me know, but please recognise my beginner status, and therefore my lack of knowledge of most jargon. My 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. => Grub 2 is installed in the MBR of /dev/sdc and looks on the same drive in partition #1 for /boot/grub. sda1: __________________________________________________ _______________________ File system: ntfs Boot sector type: Grub 2 Boot sector info: Grub 2 is installed in the boot sector of sda1 and looks at sector 273471 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 /ubuntu/winboot/wubildr.mbr /ubuntu/winboot/wubildr sdb1: __________________________________________________ _______________________ File system: ext4 Boot sector type: Grub 2 Boot sector info: Grub 2 is installed in the boot sector of sdb1 and looks at sector 273471 of the same hard drive for core.img, but core.img can not be found at this location. Operating System: Ubuntu 10.04 LTS Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img sdb2: __________________________________________________ _______________________ File system: Extended Partition Boot sector type: - Boot sector info: sdb5: __________________________________________________ _______________________ File system: swap Boot sector type: - Boot sector info: sdc1: __________________________________________________ _______________________ File system: ntfs Boot sector type: Grub 2 Boot sector info: Grub 2 is installed in the boot sector of sdc1 and looks at sector 273471 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: =========================== Drive/Partition Info: ============================= Drive: sda ___________________ __________________________________________________ ___ Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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 * 63 312,576,704 312,576,642 7 HPFS/NTFS Drive: sdb ___________________ __________________________________________________ ___ Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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 1,941,471,314 1,941,471,252 83 Linux /dev/sdb2 1,941,471,315 1,953,520,064 12,048,750 5 Extended /dev/sdb5 1,941,471,378 1,953,520,064 12,048,687 82 Linux swap / Solaris Drive: sdc ___________________ __________________________________________________ ___ Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes Partition Boot Start End Size Id System /dev/sdc1 63 1,953,520,064 1,953,520,002 7 HPFS/NTFS blkid -c /dev/null: __________________________________________________ __________ Device UUID TYPE LABEL /dev/sda1 083C63993C638114 ntfs HD-2 /dev/sda promise_fasttrack_raid_member /dev/sdb1 55fa536e-1f8a-45db-91ca-b59f2cccf05f ext4 /dev/sdb2: PTTYPE="dos" /dev/sdb5 645542bf-8e48-4dd4-84f9-40f48dbd7b4a swap /dev/sdb: PTTYPE="dos" /dev/sdc1 AA340035340006D3 ntfs /dev/sdc: PTTYPE="dos" ============================ "mount | grep ^/dev output: =========================== Device Mount_Point Type Options /dev/sdb1 / ext4 (rw,errors=remount-ro) /dev/sdc1 /media/AA340035340006D3_ fuseblk (rw,nosuid,nodev,allow_other,blksize=512,default_p ermissions) ================================ 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" /noexecute=optin /fastdetect /usepmtimer =========================== sdb1/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='(hd1,1)' search --no-floppy --fs-uuid --set 55fa536e-1f8a-45db-91ca-b59f2cccf05f 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 ext2 set root='(hd1,1)' search --no-floppy --fs-uuid --set 55fa536e-1f8a-45db-91ca-b59f2cccf05f 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.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd1,1)' search --no-floppy --fs-uuid --set 55fa536e-1f8a-45db-91ca-b59f2cccf05f linux /boot/vmlinuz-2.6.32-22-generic root=UUID=55fa536e-1f8a-45db-91ca-b59f2cccf05f ro quiet splash initrd /boot/initrd.img-2.6.32-22-generic } menuentry 'Ubuntu, with Linux 2.6.32-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd1,1)' search --no-floppy --fs-uuid --set 55fa536e-1f8a-45db-91ca-b59f2cccf05f echo 'Loading Linux 2.6.32-22-generic ...' linux /boot/vmlinuz-2.6.32-22-generic root=UUID=55fa536e-1f8a-45db-91ca-b59f2cccf05f ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.32-22-generic } menuentry 'Ubuntu, with Linux 2.6.31-22-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd1,1)' search --no-floppy --fs-uuid --set 55fa536e-1f8a-45db-91ca-b59f2cccf05f linux /boot/vmlinuz-2.6.31-22-generic root=UUID=55fa536e-1f8a-45db-91ca-b59f2cccf05f ro quiet splash initrd /boot/initrd.img-2.6.31-22-generic } menuentry 'Ubuntu, with Linux 2.6.31-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd1,1)' search --no-floppy --fs-uuid --set 55fa536e-1f8a-45db-91ca-b59f2cccf05f echo 'Loading Linux 2.6.31-22-generic ...' linux /boot/vmlinuz-2.6.31-22-generic root=UUID=55fa536e-1f8a-45db-91ca-b59f2cccf05f ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.31-22-generic } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_memtest86+ ### menuentry "Memory test (memtest86+)" { insmod ext2 set root='(hd1,1)' search --no-floppy --fs-uuid --set 55fa536e-1f8a-45db-91ca-b59f2cccf05f linux16 /boot/memtest86+.bin } menuentry "Memory test (memtest86+, serial console 115200)" { insmod ext2 set root='(hd1,1)' search --no-floppy --fs-uuid --set 55fa536e-1f8a-45db-91ca-b59f2cccf05f 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 ntfs set root='(hd0,1)' search --no-floppy --fs-uuid --set 083c63993c638114 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 ### =============================== sdb1/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). # # proc /proc proc defaults 0 0 # / was on /dev/sda1 during installation UUID=55fa536e-1f8a-45db-91ca-b59f2cccf05f / ext4 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation UUID=645542bf-8e48-4dd4-84f9-40f48dbd7b4a none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0 =================== sdb1: Location of files loaded by Grub: =================== .1GB: boot/grub/core.img .2GB: boot/grub/grub.cfg 2.1GB: boot/initrd.img-2.6.31-22-generic 3.9GB: boot/initrd.img-2.6.32-22-generic .9GB: boot/vmlinuz-2.6.31-22-generic 2.5GB: boot/vmlinuz-2.6.32-22-generic 3.9GB: initrd.img 2.1GB: initrd.img.old 2.5GB: vmlinuz .9GB: vmlinuz.old

Archimedes6
June 15th, 2010, 08:23 PM
Gah, I realise how difficult that may be to read due to some formatting issue, so perhaps this will help: http://pastebin.com/BtW8WtQW

confused57
June 15th, 2010, 08:43 PM
Here is what you probably need to repair the damage:
http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:Boot_Sector

You might want to wait on someone else who can give you more detailed instructions.

wilee-nilee
June 15th, 2010, 09:12 PM
So turn off the flash block so you can post the whole script in code tags the instructions are in my sig. Your post is pretty much unreadable.

Post the script as it looks, in the tags it is a scrolling view.

darkod
June 15th, 2010, 09:15 PM
Yes, you will need to run this procedure:
http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:Boot_Sector

You have grub2 on your windows partition, /dev/sda1. So, you need to fix partition #1 on disk /dev/sda.

After that it should boot fine from grub2 from the ubuntu disk (it should be first in boot order).

As an additional fix, you might want to reinstall windows (or generic) mbr on /dev/sda because you have only windows on it. You can do this with the windows cd/dvd, or from ubuntu with:

sudo apt-get install lilo (ignore the warnings it will give you)
sudo lilo -M /dev/sda mbr

That should make windows boot directly if you set the windows disk as first in boot order.

Archimedes6
June 15th, 2010, 11:57 PM
Aww man, thanks guys. That SF link really helped, currently posting from XP ;)