Page 1 of 1

[SOLVED] 2 drives 3 OS's Problem loading WindowsXP

Posted: Sat Feb 16, 2013 1:46 pm
by cool_thing76
Hi,

I had only one HD drive (sda) dual booting WindowsXp and Linux Mint fine. Then I got another SSD drive (sdb) and installed WindowsXP on sdb and Linux Mint again (but I know that the windows boot loader got installed on sda cuz it's the 1st drive while I chose to install GRUB for the new Linux Mint installation on sdb).

Now I deleted the old WindowsXP partition on sda and if I try to load the new WindowsXP installtion from sdb I get a (Missing NTDLR) fo course cuz the boot loader that booted both WindowsXP installations got deleted from the MBR.

My question is: can I fix this using GRUB and make my new WindowsXP installation (on sdb) boot again withouthaving to install it again? (And still keeping the new Linux Mint installation on sdb)

Here is my boot-info results:

Code: Select all

                  Boot Info Script 0.61      [1 April 2012]


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

 => Windows is installed in the MBR of /dev/sda.
 => Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 
    96139088 of the same hard drive for core.img. core.img is at this location 
    and looks in partition 72 for .

sda2: __________________________________________________________________________

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

sda5: __________________________________________________________________________

    File system:       ext3
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdb1: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows XP: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows XP
    Boot files:        

sdb2: __________________________________________________________________________

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

sdb5: __________________________________________________________________________

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

sdb6: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Linux Mint 14 Nadia
    Boot files:        /boot/grub/grub.cfg /etc/fstab

sdb7: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 300.1 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders, total 586072368 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/sda2          40,965,811   586,067,264   545,101,454   f W95 Extended (LBA)
/dev/sda5         296,849,133   586,067,264   289,218,132  83 Linux
/dev/sda6          40,965,874   296,848,956   255,883,083  83 Linux


Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 240.1 GB, 240057409536 bytes
255 heads, 63 sectors/track, 29185 cylinders, total 468862128 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/sdb1    *             63    61,432,559    61,432,497   7 NTFS / exFAT / HPFS
/dev/sdb2          61,433,854   468,860,927   407,427,074   5 Extended
/dev/sdb5          61,433,856    69,244,927     7,811,072  82 Linux swap / Solaris
/dev/sdb6          69,246,976   108,306,431    39,059,456  83 Linux
/dev/sdb7         108,308,480   468,860,927   360,552,448  83 Linux


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda5        a5920ba0-cdf1-43cd-b51d-c951b7fd1a54   ext3       Data
/dev/sda6        be787bbf-0513-40e4-8705-14a85bd6b2d0   ext4       Data 2
/dev/sdb1        E2B8AE66B8AE38C5                       ntfs       
/dev/sdb5        f01f604f-4215-46da-ac7d-fe55fa996e92   swap       
/dev/sdb6        b7ec91ce-0c48-4ca8-a335-39b5af63e998   ext4       
/dev/sdb7        05228541-4700-4b8f-83e6-7614d0494a2b   ext4       
/dev/sr0                                                udf        RA3

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

Device           Mount_Point              Type       Options

/dev/sdb6        /                        ext4       (rw,errors=remount-ro)
/dev/sdb7        /home                    ext4       (rw)
/dev/sr0         /media/ali/RA3           udf        (ro,nosuid,nodev,uid=1000,gid=1000,iocharset=utf8,umask=0077,uhelper=udisks2)


=========================== sdb6/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 [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

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 {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd1,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos6 --hint-efi=hd1,msdos6 --hint-baremetal=ahci1,msdos6  b7ec91ce-0c48-4ca8-a335-39b5af63e998
else
  search --no-floppy --fs-uuid --set=root b7ec91ce-0c48-4ca8-a335-39b5af63e998
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
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/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/06_mint_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="$1"
	if [ "$1" = "keep" ]; then
		set vt_handoff=vt.handoff=7
	else
		set vt_handoff=
	fi
}
if [ ${recordfail} != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Linux Mint 14 Cinnamon 32-bit, 3.5.0-17-generic (/dev/sdb6)' --class linuxmint --class gnu-linux --class gnu --class os {
	recordfail
	gfxmode $linux_gfx_mode
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos6 --hint-efi=hd1,msdos6 --hint-baremetal=ahci1,msdos6  b7ec91ce-0c48-4ca8-a335-39b5af63e998
	else
	  search --no-floppy --fs-uuid --set=root b7ec91ce-0c48-4ca8-a335-39b5af63e998
	fi
	linux	/boot/vmlinuz-3.5.0-17-generic root=UUID=b7ec91ce-0c48-4ca8-a335-39b5af63e998 ro   quiet splash $vt_handoff
	initrd	/boot/initrd.img-3.5.0-17-generic
}
menuentry 'Linux Mint 14 Cinnamon 32-bit, 3.5.0-17-generic (/dev/sdb6) -- recovery mode' --class linuxmint --class gnu-linux --class gnu --class os {
	recordfail
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos6 --hint-efi=hd1,msdos6 --hint-baremetal=ahci1,msdos6  b7ec91ce-0c48-4ca8-a335-39b5af63e998
	else
	  search --no-floppy --fs-uuid --set=root b7ec91ce-0c48-4ca8-a335-39b5af63e998
	fi
	echo	'Loading Linux 3.5.0-17-generic ...'
	linux	/boot/vmlinuz-3.5.0-17-generic root=UUID=b7ec91ce-0c48-4ca8-a335-39b5af63e998 ro recovery nomodeset 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.5.0-17-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###

### 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='hd1,msdos6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos6 --hint-efi=hd1,msdos6 --hint-baremetal=ahci1,msdos6  b7ec91ce-0c48-4ca8-a335-39b5af63e998
	else
	  search --no-floppy --fs-uuid --set=root b7ec91ce-0c48-4ca8-a335-39b5af63e998
	fi
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos6 --hint-efi=hd1,msdos6 --hint-baremetal=ahci1,msdos6  b7ec91ce-0c48-4ca8-a335-39b5af63e998
	else
	  search --no-floppy --fs-uuid --set=root b7ec91ce-0c48-4ca8-a335-39b5af63e998
	fi
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows NT/2000/XP (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-E6CC1F24CC1EEE95' {
	insmod part_msdos
	insmod ntfs
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  E6CC1F24CC1EEE95
	else
	  search --no-floppy --fs-uuid --set=root E6CC1F24CC1EEE95
	fi
	drivemap -s (hd0) ${root}
	chainloader +1
}
menuentry 'Linux Mint 14 Nadia (14)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-ed87d15c-3121-4c6d-b2b3-1aa2b0e269b6' {
	insmod part_msdos
	insmod ext2
	set root='hd0,msdos6'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ed87d15c-3121-4c6d-b2b3-1aa2b0e269b6
	else
	  search --no-floppy --fs-uuid --set=root ed87d15c-3121-4c6d-b2b3-1aa2b0e269b6
	fi
	linux /boot/vmlinuz-3.5.0-17-generic root=UUID=ed87d15c-3121-4c6d-b2b3-1aa2b0e269b6 ro quiet splash $vt_handoff
	initrd /boot/initrd.img-3.5.0-17-generic
}
submenu 'Advanced options for Linux Mint 14 Nadia (14)' $menuentry_id_option 'osprober-gnulinux-advanced-ed87d15c-3121-4c6d-b2b3-1aa2b0e269b6' {
	menuentry 'Linux Mint 14 Cinnamon 32-bit, 3.5.0-17-generic (/dev/sda6) (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.5.0-17-generic--ed87d15c-3121-4c6d-b2b3-1aa2b0e269b6' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ed87d15c-3121-4c6d-b2b3-1aa2b0e269b6
		else
		  search --no-floppy --fs-uuid --set=root ed87d15c-3121-4c6d-b2b3-1aa2b0e269b6
		fi
		linux /boot/vmlinuz-3.5.0-17-generic root=UUID=ed87d15c-3121-4c6d-b2b3-1aa2b0e269b6 ro quiet splash $vt_handoff
		initrd /boot/initrd.img-3.5.0-17-generic
	}
	menuentry 'Linux Mint 14 Cinnamon 32-bit, 3.5.0-17-generic (/dev/sda6) -- recovery mode (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.5.0-17-generic-root=UUID=ed87d15c-3121-4c6d-b2b3-1aa2b0e269b6 ro recovery nomodeset-ed87d15c-3121-4c6d-b2b3-1aa2b0e269b6' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos6'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6  ed87d15c-3121-4c6d-b2b3-1aa2b0e269b6
		else
		  search --no-floppy --fs-uuid --set=root ed87d15c-3121-4c6d-b2b3-1aa2b0e269b6
		fi
		linux /boot/vmlinuz-3.5.0-17-generic root=UUID=ed87d15c-3121-4c6d-b2b3-1aa2b0e269b6 ro recovery nomodeset
		initrd /boot/initrd.img-3.5.0-17-generic
	}
}

### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sdb6/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' 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/sdb6 during installation
UUID=b7ec91ce-0c48-4ca8-a335-39b5af63e998 /               ext4    errors=remount-ro 0       1
# /home was on /dev/sdb7 during installation
UUID=05228541-4700-4b8f-83e6-7614d0494a2b /home           ext4    defaults        0       2
# swap was on /dev/sda5 during installation
UUID=3a677d84-b123-4766-ac9b-5f624655a8c1 none            swap    sw              0       0
# swap was on /dev/sdb5 during installation
UUID=f01f604f-4215-46da-ac7d-fe55fa996e92 none            swap    sw              0       0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

  49.147842407 = 52.772093952   boot/grub/grub.cfg                             1
  36.799194336 = 39.512834048   boot/initrd.img-3.5.0-17-generic               1
  33.942317963 = 36.445286400   boot/vmlinuz-3.5.0-17-generic                  2
  36.799194336 = 39.512834048   initrd.img                                     1
  36.799194336 = 39.512834048   initrd.img.old                                 1
  33.942317963 = 36.445286400   vmlinuz                                        2


Re: 2 drives 3 OS's Problem loading WindowsXP

Posted: Sat Feb 16, 2013 2:19 pm
by kwisher
Try using this tool, it has worked for me.
https://help.ubuntu.com/community/Boot-Repair

Re: 2 drives 3 OS's Problem loading WindowsXP

Posted: Sun Feb 17, 2013 10:11 am
by cool_thing76
Boot Repair Auto Mode didn't help. So I ended up reinattaling both Windows and Linux on sdb respectivly.

Thank you