I upgraded ubuntu and "accidently" added grub to my windows xp partition. The
option to boot windows xp shows when first turning on the computer but then
goes to a endless black screen with a blinking cursor. I really hope someone
can help me out. My partitions are: Windows Xp, which I believe has ubuntu
installed inside of it on a virtual machine. The other partition is my Ubuntu
partition on sda2, which i can boot into and use command line. I think I need
to remove mbr/grub from the windows xp partition to get it working again?
BootInfoScript0.55datedFebruary15th,2010=============================BootInfoSummary:===============================>Grub2isinstalledintheMBRof/dev/sdaandlooksonthesamedriveinpartition#2for/boot/grub.=>Grub2isinstalledintheMBRof/dev/sdbandlooksonthesamedriveinpartition#2for/boot/grub.sda1: _________________________________________________________________________Filesystem: ntfsBootsectortype: Grub2Bootsectorinfo: Grub2isinstalledinthebootsectorofsda1andlooksatsector455288989ofthesameharddriveforcore.img,butcore.imgcannotbefoundatthislocation.NoerrorsfoundintheBootParameterBlock.OperatingSystem: WindowsXPBootfiles/dirs:/boot.ini /ntldr /NTDETECT.COM /wubildr.mbr /ubuntu/winboot/wubildr.mbr /wubildr /ubuntu/winboot/wubildr /ubuntu/disks/root.disk /ubuntu/disks/swap.disksda1/Wubi: _________________________________________________________________________Filesystem: ext4Bootsectortype:-Bootsectorinfo:
OperatingSystem: Ubuntu9.10Bootfiles/dirs:/boot/grub/grub.cfg /etc/fstabsda2: _________________________________________________________________________Filesystem: ext3Bootsectortype: Grub2Bootsectorinfo: Grub2isinstalledinthebootsectorofsda2andlooksatsector443406741ofthesameharddriveforcore.img,butcore.imgcannotbefoundatthislocation.OperatingSystem: Ubuntu10.04LTSBootfiles/dirs:/boot/grub/menu.lst /boot/grub/grub.cfg /etc/fstab /boot/grub/core.imgsdb1: _________________________________________________________________________Filesystem: ntfsBootsectortype: WindowsXPBootsectorinfo: NoerrorsfoundintheBootParameterBlock.OperatingSystem:
Bootfiles/dirs:===========================Drive/PartitionInfo:=============================Drive: sda________________________________________________________________________Disk/dev/sda: 250.1GB,250059350016bytes255heads,63sectors/track,30401cylinders,total488397168sectorsUnits=sectorsof1*512=512bytesSectorsize(logical/physical):512bytes/512bytesPartitionBootStartEndSizeIdSystem/dev/sda1 * 63 245,762,369 245,762,307 7 HPFS/NTFS/dev/sda2 262,261,125 488,392,064 226,130,940 83 LinuxDrive: sdb________________________________________________________________________Disk/dev/sdb: 122.9GB,122942324736bytes255heads,63sectors/track,14946cylinders,total240121728sectorsUnits=sectorsof1*512=512bytesSectorsize(logical/physical):512bytes/512bytesPartitionBootStartEndSizeIdSystem/dev/sdb1 63 240,107,489 240,107,427 7 HPFS/NTFSblkid-c/dev/null:____________________________________________________________DeviceUUIDTYPELABEL/dev/loop0 a0515cea-f70f-46d6-a9ae-5e7063e03659 ext4 /dev/sda1 F688DD2888DCE7DF ntfs /dev/sda2 8680ac9b-e730-4ebc-a758-9582c311ab61 ext3 /dev/sda: PTTYPE="dos" /dev/sdb1 72D86348D8630A25 ntfs StoreB /dev/sdb: PTTYPE="dos"============================"mount | grep ^/dev output: ===========================Device Mount_Point Type Options/dev/sda2 / ext3 (rw,errors=remount-ro)================================ sda1/boot.ini: ================================[boot loader]timeout=30default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS[operating systems]multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="MicrosoftWindowsXPProfessional" /noexecute=optin /fastdetectC:\wubildr.mbr = "Ubuntu"======================== sda1/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 /boot/grub/grubenv ]; then have_grubenv=true load_envfiset default="0"if [ ${prev_saved_entry} ]; then saved_entry=${prev_saved_entry} save_env saved_entry prev_saved_entry= save_env prev_saved_entryfiif [ ${recordfail} = 1 ]; then set timeout=-1else set timeout=10fi### END /etc/grub.d/00_header ###### BEGIN /etc/grub.d/05_debian_theme ###set menu_color_normal=white/blackset menu_color_highlight=black/white### 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,Linux2.6.31-14-generic" { insmod ntfs set root=(hd0,1) search --no-floppy --fs-uuid --set f688dd2888dce7df loopback loop0 /ubuntu/disks/root.disk set root=(loop0) linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda1 loop=/ubuntu/disks/root.disk ro quiet splash initrd /boot/initrd.img-2.6.31-14-generic}menuentry "Ubuntu,Linux2.6.31-14-generic(recoverymode)" { insmod ntfs set root=(hd0,1) search --no-floppy --fs-uuid --set f688dd2888dce7df loopback loop0 /ubuntu/disks/root.disk set root=(loop0) linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda1 loop=/ubuntu/disks/root.disk ro single initrd /boot/initrd.img-2.6.31-14-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 "MicrosoftWindowsXPProfessional(on/dev/sda1)" { insmod ntfs set root=(hd0,1) search --no-floppy --fs-uuid --set f688dd2888dce7df 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 ###============================= sda1/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 defaults 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/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0================= sda1/Wubi: Location of files loaded by Grub: ================= 2.5GB: boot/grub/grub.cfg .7GB: boot/initrd.img-2.6.31-14-generic 2.1GB: boot/vmlinuz-2.6.31-14-generic .7GB: initrd.img 2.1GB: vmlinuz=========================== sda2/boot/grub/menu.lst: ===========================## 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_envfiset 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=truefifunction 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 ext2set root='(hd0,2)'search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61if 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 fifiinsmod ext2set root='(hd0,2)'search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61set locale_dir=($root)/boot/grub/localeset lang=eninsmod gettextif [ ${recordfail} = 1 ]; then set timeout=-1else set timeout=10fi### END /etc/grub.d/00_header ###### BEGIN /etc/grub.d/05_debian_theme ###set menu_color_normal=white/blackset 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-21-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd0,2)' search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61 linux /boot/vmlinuz-2.6.32-21-generic root=UUID=8680ac9b-e730-4ebc-a758-9582c311ab61 ro quiet splash initrd /boot/initrd.img-2.6.32-21-generic}menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd0,2)' search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61 echo 'Loading Linux 2.6.32-21-generic ...' linux /boot/vmlinuz-2.6.32-21-generic root=UUID=8680ac9b-e730-4ebc-a758-9582c311ab61 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.32-21-generic}menuentry 'Ubuntu, with Linux 2.6.31-22-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd0,2)' search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61 linux /boot/vmlinuz-2.6.31-22-generic root=UUID=8680ac9b-e730-4ebc-a758-9582c311ab61 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='(hd0,2)' search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61 echo 'Loading Linux 2.6.31-22-generic ...' linux /boot/vmlinuz-2.6.31-22-generic root=UUID=8680ac9b-e730-4ebc-a758-9582c311ab61 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.31-22-generic}menuentry 'Ubuntu, with Linux 2.6.31-14-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd0,2)' search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61 linux /boot/vmlinuz-2.6.31-14-generic root=UUID=8680ac9b-e730-4ebc-a758-9582c311ab61 ro quiet splash initrd /boot/initrd.img-2.6.31-14-generic}menuentry 'Ubuntu, with Linux 2.6.31-14-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd0,2)' search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61 echo 'Loading Linux 2.6.31-14-generic ...' linux /boot/vmlinuz-2.6.31-14-generic root=UUID=8680ac9b-e730-4ebc-a758-9582c311ab61 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.31-14-generic}### END /etc/grub.d/10_linux ###### BEGIN /etc/grub.d/20_memtest86+ ###menuentry "Memorytest(memtest86+)" { insmod ext2 set root='(hd0,2)' search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61 linux16 /boot/memtest86+.bin}menuentry "Memorytest(memtest86+,serialconsole115200)" { insmod ext2 set root='(hd0,2)' search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61 linux16 /boot/memtest86+.bin console=ttyS0,115200n8}### END /etc/grub.d/20_memtest86+ ###### BEGIN /etc/grub.d/30_os-prober ###menuentry "MicrosoftWindowsXPProfessional(on/dev/sda1)" { insmod ntfs set root='(hd0,1)' search --no-floppy --fs-uuid --set f688dd2888dce7df 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/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_envfiset 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=truefifunction 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 ext2set root='(hd0,2)'search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61if 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 fifiinsmod ext2set root='(hd0,2)'search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61set locale_dir=($root)/boot/grub/localeset lang=eninsmod gettextif [ ${recordfail} = 1 ]; then set timeout=-1else set timeout=10fi### END /etc/grub.d/00_header ###### BEGIN /etc/grub.d/05_debian_theme ###set menu_color_normal=white/blackset 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-21-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd0,2)' search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61 linux /boot/vmlinuz-2.6.32-21-generic root=UUID=8680ac9b-e730-4ebc-a758-9582c311ab61 ro quiet splash initrd /boot/initrd.img-2.6.32-21-generic}menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd0,2)' search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61 echo 'Loading Linux 2.6.32-21-generic ...' linux /boot/vmlinuz-2.6.32-21-generic root=UUID=8680ac9b-e730-4ebc-a758-9582c311ab61 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.32-21-generic}menuentry 'Ubuntu, with Linux 2.6.31-22-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd0,2)' search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61 linux /boot/vmlinuz-2.6.31-22-generic root=UUID=8680ac9b-e730-4ebc-a758-9582c311ab61 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='(hd0,2)' search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61 echo 'Loading Linux 2.6.31-22-generic ...' linux /boot/vmlinuz-2.6.31-22-generic root=UUID=8680ac9b-e730-4ebc-a758-9582c311ab61 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.31-22-generic}menuentry 'Ubuntu, with Linux 2.6.31-14-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd0,2)' search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61 linux /boot/vmlinuz-2.6.31-14-generic root=UUID=8680ac9b-e730-4ebc-a758-9582c311ab61 ro quiet splash initrd /boot/initrd.img-2.6.31-14-generic}menuentry 'Ubuntu, with Linux 2.6.31-14-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd0,2)' search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61 echo 'Loading Linux 2.6.31-14-generic ...' linux /boot/vmlinuz-2.6.31-14-generic root=UUID=8680ac9b-e730-4ebc-a758-9582c311ab61 ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.31-14-generic}### END /etc/grub.d/10_linux ###### BEGIN /etc/grub.d/20_memtest86+ ###menuentry "Memorytest(memtest86+)" { insmod ext2 set root='(hd0,2)' search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61 linux16 /boot/memtest86+.bin}menuentry "Memorytest(memtest86+,serialconsole115200)" { insmod ext2 set root='(hd0,2)' search --no-floppy --fs-uuid --set 8680ac9b-e730-4ebc-a758-9582c311ab61 linux16 /boot/memtest86+.bin console=ttyS0,115200n8}### END /etc/grub.d/20_memtest86+ ###### BEGIN /etc/grub.d/30_os-prober ###menuentry "MicrosoftWindowsXPProfessional(on/dev/sda1)"{insmodntfssetroot='(hd0,1)'search--no-floppy--fs-uuid--setf688dd2888dce7dfdrivemap-s(hd0)${root}chainloader+1}###END/etc/grub.d/30_os-prober######BEGIN/etc/grub.d/40_custom####Thisfileprovidesaneasywaytoaddcustommenuentries.Simplytypethe#menuentriesyouwanttoaddafterthiscomment.Becarefulnottochange#the'exec tail'lineabove.###END/etc/grub.d/40_custom###===============================sda2/etc/fstab:===============================#/etc/fstab: staticfilesysteminformation.##Use'blkid -o value -s UUID'toprinttheuniversallyuniqueidentifier#foradevice;thismaybeusedwithUUID=asamorerobustwaytoname#devicesthatworksevenifdisksareaddedandremoved.Seefstab(5).##<filesystem><mountpoint><type><options><dump><pass>proc/procprocdefaults00#/wason/dev/sda2duringinstallationUUID=8680ac9b-e730-4ebc-a758-9582c311ab61/ext3errors=remount-ro01/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0===================sda2: LocationoffilesloadedbyGrub:===================227.0GB: boot/grub/core.img227.0GB: boot/grub/grub.cfg227.0GB: boot/grub/menu.lst227.1GB: boot/initrd.img-2.6.31-14-generic233.0GB: boot/initrd.img-2.6.31-22-generic233.1GB: boot/initrd.img-2.6.32-21-generic227.1GB: boot/vmlinuz-2.6.31-14-generic227.1GB: boot/vmlinuz-2.6.31-22-generic233.0GB: boot/vmlinuz-2.6.32-21-generic233.1GB: initrd.img233.0GB: initrd.img.old233.0GB: vmlinuz227.1GB: vmlinuz.old
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I upgraded ubuntu and "accidently" added grub to my windows xp partition. The
option to boot windows xp shows when first turning on the computer but then
goes to a endless black screen with a blinking cursor. I really hope someone
can help me out. My partitions are: Windows Xp, which I believe has ubuntu
installed inside of it on a virtual machine. The other partition is my Ubuntu
partition on sda2, which i can boot into and use command line. I think I need
to remove mbr/grub from the windows xp partition to get it working again?
Can you run the last test version of the script?