I have been dual booting Windows 7 and XP with EasyBCD1.7.2 and Vista Hide'n Seek for quite a while now, but I recently decided to try booting Ubuntu 11.10 from an external 3.5" USB drive. To install Ubuntu on the USB drive, I unplugged all my internal Windows drives.
After Ubuntu was installed I shutdown, then re-connected all my internal SATA drives. Then I booted from Ubuntu again and everything was fine, until I shutdown, disconnected the USB drive and tried to boot back into Windows. VistaHnS was gone and I was sent to the XP login screen, but there were some file corruption errors, so I couldn't boot. I had to use the Windows Recovery disk and do:
bootrec.exe /fixmbr
bootsect.exe /nt60 all /force
bootrec.exe /rebuildbcd
Then I was able to get back into Windows 7 and restore my working dual boot. After a few suggestions on disabling Ubuntu's GRUB os-prober, I made the changes and once again booted into Ubuntu from the USB drive while my internal drives were connected. I shutdown and tried to boot into Windows again and found nothing but a blank screen and cursor. I repeated fixmbr, etc. and once again have my dual boot working.
Any ideas what booting Ubuntu from the USB drive could possibly be doing to my internal drive MBR or EasyBCD/VistaHnS/GRUB4DOS? Booting the Ubuntu live CD doesn't kill my Windows MBR, but I'd like to be able to run off the USB drive.
I haven't saved a copy of the MBR after the USB Ubuntu thrashes it, but I have saved a copy of the working MBR and other details. Please have a look and let me know if anything jumps out at you. I'm not sure of the inner workings of EasyBCD/VistaHnS/GRUB4DOS and also not sure how or why the Ubuntu GRUB installed on the USB drive would be writing MBR changes to the internal drives on its own. Or maybe it's caused by some other automatic Ubuntu background utility that doesn't like my Windows dual boot.
If this isn't enough to go on, I can try to hook Ubuntu up again to get copy of the damage it's doing to the Windows MBR, though I'd prefer not to go through that again.
Ubuntu Live CD output (which matches MBRFix backup output in Windows)
After Ubuntu was installed I shutdown, then re-connected all my internal SATA drives. Then I booted from Ubuntu again and everything was fine, until I shutdown, disconnected the USB drive and tried to boot back into Windows. VistaHnS was gone and I was sent to the XP login screen, but there were some file corruption errors, so I couldn't boot. I had to use the Windows Recovery disk and do:
bootrec.exe /fixmbr
bootsect.exe /nt60 all /force
bootrec.exe /rebuildbcd
Then I was able to get back into Windows 7 and restore my working dual boot. After a few suggestions on disabling Ubuntu's GRUB os-prober, I made the changes and once again booted into Ubuntu from the USB drive while my internal drives were connected. I shutdown and tried to boot into Windows again and found nothing but a blank screen and cursor. I repeated fixmbr, etc. and once again have my dual boot working.
Any ideas what booting Ubuntu from the USB drive could possibly be doing to my internal drive MBR or EasyBCD/VistaHnS/GRUB4DOS? Booting the Ubuntu live CD doesn't kill my Windows MBR, but I'd like to be able to run off the USB drive.
I haven't saved a copy of the MBR after the USB Ubuntu thrashes it, but I have saved a copy of the working MBR and other details. Please have a look and let me know if anything jumps out at you. I'm not sure of the inner workings of EasyBCD/VistaHnS/GRUB4DOS and also not sure how or why the Ubuntu GRUB installed on the USB drive would be writing MBR changes to the internal drives on its own. Or maybe it's caused by some other automatic Ubuntu background utility that doesn't like my Windows dual boot.
If this isn't enough to go on, I can try to hook Ubuntu up again to get copy of the damage it's doing to the Windows MBR, though I'd prefer not to go through that again.
Ubuntu Live CD output (which matches MBRFix backup output in Windows)
Code:
ubuntu@ubuntu:~/Downloads$ sudo hexdump -n 512 -C /dev/sda
00000000 33 c0 8e d0 bc 00 7c 8e c0 8e d8 be 00 7c bf 00 |3.....|......|..|
00000010 06 b9 00 02 fc f3 a4 50 68 1c 06 cb fb b9 04 00 |.......Ph.......|
00000020 bd be 07 80 7e 00 00 7c 0b 0f 85 0e 01 83 c5 10 |....~..|........|
00000030 e2 f1 cd 18 88 56 00 55 c6 46 11 05 c6 46 10 00 |.....V.U.F...F..|
00000040 b4 41 bb aa 55 cd 13 5d 72 0f 81 fb 55 aa 75 09 |.A..U..]r...U.u.|
00000050 f7 c1 01 00 74 03 fe 46 10 66 60 80 7e 10 00 74 |....t..F.f`.~..t|
00000060 26 66 68 00 00 00 00 66 ff 76 08 68 00 00 68 00 |&fh....f.v.h..h.|
00000070 7c 68 01 00 68 10 00 b4 42 8a 56 00 8b f4 cd 13 ||h..h...B.V.....|
00000080 9f 83 c4 10 9e eb 14 b8 01 02 bb 00 7c 8a 56 00 |............|.V.|
00000090 8a 76 01 8a 4e 02 8a 6e 03 cd 13 66 61 73 1c fe |.v..N..n...fas..|
000000a0 4e 11 75 0c 80 7e 00 80 0f 84 8a 00 b2 80 eb 84 |N.u..~..........|
000000b0 55 32 e4 8a 56 00 cd 13 5d eb 9e 81 3e fe 7d 55 |U2..V...]...>.}U|
000000c0 aa 75 6e ff 76 00 e8 8d 00 75 17 fa b0 d1 e6 64 |.un.v....u.....d|
000000d0 e8 83 00 b0 df e6 60 e8 7c 00 b0 ff e6 64 e8 75 |......`.|....d.u|
000000e0 00 fb b8 00 bb cd 1a 66 23 c0 75 3b 66 81 fb 54 |.......f#.u;f..T|
000000f0 43 50 41 75 32 81 f9 02 01 72 2c 66 68 07 bb 00 |CPAu2....r,fh...|
00000100 00 66 68 00 02 00 00 66 68 08 00 00 00 66 53 66 |.fh....fh....fSf|
00000110 53 66 55 66 68 00 00 00 00 66 68 00 7c 00 00 66 |SfUfh....fh.|..f|
00000120 61 68 00 00 07 cd 1a 5a 32 f6 ea 00 7c 00 00 cd |ah.....Z2...|...|
00000130 18 a0 b7 07 eb 08 a0 b6 07 eb 03 a0 b5 07 32 e4 |..............2.|
00000140 05 00 07 8b f0 ac 3c 00 74 09 bb 07 00 b4 0e cd |......<.t.......|
00000150 10 eb f2 f4 eb fd 2b c9 e4 64 eb 00 24 02 e0 f8 |......+..d..$...|
00000160 24 02 c3 49 6e 76 61 6c 69 64 20 70 61 72 74 69 |$..Invalid parti|
00000170 74 69 6f 6e 20 74 61 62 6c 65 00 45 72 72 6f 72 |tion table.Error|
00000180 20 6c 6f 61 64 69 6e 67 20 6f 70 65 72 61 74 69 | loading operati|
00000190 6e 67 20 73 79 73 74 65 6d 00 4d 69 73 73 69 6e |ng system.Missin|
000001a0 67 20 6f 70 65 72 61 74 69 6e 67 20 73 79 73 74 |g operating syst|
000001b0 65 6d 00 00 00 63 7b 9a a1 64 ca 75 00 00 00 20 |em...c{..d.u... |
000001c0 21 00 17 fe ff ff 00 08 00 00 00 80 20 05 00 fe |!........... ...|
000001d0 ff ff 17 fe ff ff 00 88 20 05 c7 75 01 14 80 fe |........ ..u....|
000001e0 ff ff 07 fe ff ff c7 fd 21 19 e9 5b b7 03 00 fe |........!..[....|
000001f0 ff ff 0f fe ff ff b0 59 d9 1c 11 00 97 57 55 aa |.......Y.....WU.|
Code:
============================= Boot Info Summary: ===============================
=> Windows is installed in the MBR of /dev/sda.
=> No boot loader is installed in the MBR of /dev/sdb.
=> No boot loader is installed in the MBR of /dev/sdc.
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files: /menu.lst /BOOTMGR /Boot/BCD
/Windows/System32/winload.exe /NTLDR /NTDETECT.COM
sda2: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files:
sda3: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files: /boot.ini /grldr /BOOTMGR /Boot/BCD /grldr /NTLDR
/NTDETECT.COM
sda4: __________________________________________________________________________
File system: Extended Partition
Boot sector type: Unknown
Boot sector info:
sda5: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 63.
Operating System:
Boot files: /NTLDR /NTDETECT.COM
sda6: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: According to the info in the boot sector, sda6 starts
at sector 63.
Operating System:
Boot files:
Code:
Disk /dev/sda: 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 Sector End Sector # of Sectors Id System
/dev/sda1 2,048 86,018,047 86,016,000 17 Hidden NTFS / HPFS
/dev/sda2 86,018,048 421,658,054 335,640,007 17 Hidden NTFS / HPFS
/dev/sda3 * 421,658,055 484,006,319 62,348,265 7 NTFS / exFAT / HPFS
/dev/sda4 484,006,320 1,953,520,064 1,469,513,745 f W95 Extended (LBA)
/dev/sda5 484,006,383 547,495,199 63,488,817 7 NTFS / exFAT / HPFS
/dev/sda6 547,495,263 1,953,520,064 1,406,024,802 7 NTFS / exFAT / HPFS
Code:
================================ sda1/menu.lst: ================================
--------------------------------------------------------------------------------
# NeoSmart Technologies' Vista Hide 'n Seek Beta
# DO NOT MODIFY!!! YOU HAVE BEEN WARNED!
timeout 10
default 1
splashimage=/vhns.xpm.gz
foreground 000000
background ffffff
title Windows 7
find --unhide /Vista.C.HnS
find --unhide /Vista.D.HnS
find --set-root /BOOTMGR.HNS
makeactive
chainloader /BOOTMGR.HNS
boot
title Windows XP
find --hide /Vista.C.HnS
find --hide /Vista.D.HnS
find --remap-root /XP.H.HnS
find --set-root /XP.H.HnS
makeactive
chainloader /ntldr
boot
# All your boot are belong to NeoSmart!--------------------------------------------------------------------------------
=================== sda1: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
?? = ?? menu.lst 0
================================ sda3/boot.ini: ================================
--------------------------------------------------------------------------------
[boot loader]
timeout=0
default=multi(0)disk(0)rdisk(0)partition(3)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(3)\WINDOWS="Vista Hide 'n Seek: Windows XP" /noexecute=optin /fastdetect
--------------------------------------------------------------------------------
========================== sda3/grldr embedded menu: ===========================
--------------------------------------------------------------------------------
default 0
timeout 1
fallback 1
--------------------------------------------------------------------------------
======================== Unknown MBRs/Boot Sectors/etc: ========================
Unknown BootLoader on sda4
00000000 00 18 c6 58 9b 01 80 55 d5 6c 08 32 42 d2 ba ef |...X...U.l.2B...|
00000010 f2 7a ae a4 53 82 80 04 00 80 80 30 40 1a 00 54 |.z..S......0@..T|
00000020 00 68 20 03 00 06 08 03 06 00 00 90 04 00 a0 0d |.h .............|
00000030 00 18 80 01 c0 88 a0 04 00 18 a0 04 00 19 01 40 |...............@|
00000040 1a 00 04 00 60 03 22 00 10 10 06 0c 50 06 00 06 |....`.".....P...|
00000050 88 01 00 06 00 48 08 01 40 02 a0 05 00 08 05 00 |.....H..@.......|
00000060 1a 00 04 40 02 00 01 02 00 c0 01 f0 40 60 80 c4 |...@........@`..|
00000070 02 20 18 42 dd 00 60 00 55 60 00 59 20 34 83 02 |. .B..`.U`.Y 4..|
00000080 de 0c 40 01 a0 04 00 60 14 04 83 10 00 80 41 82 |..@....`......A.|
00000090 40 01 aa 72 bc 04 b1 16 85 e7 a0 45 70 60 10 60 |@..r.......Ep`.`|
000000a0 24 19 01 85 86 20 80 34 54 00 8a 20 ac 40 00 c0 |$.... .4T.. .@..|
000000b0 18 80 04 00 6a 00 45 00 18 80 01 04 00 88 80 34 |....j.E........4|
000000c0 40 08 00 90 06 00 0c 00 01 8a 00 14 40 03 10 40 |@...........@..@|
000000d0 1a 2a 00 52 20 80 31 00 03 10 40 0a 88 01 41 01 |.*.R .1...@...A.|
000000e0 6a 00 05 56 a2 00 44 00 1a 20 04 01 22 a0 0d 14 |j..V..D.. .."...|
000000f0 00 80 04 00 02 00 38 a8 03 55 00 2a 00 35 48 80 |......8..U.*.5H.|
00000100 01 15 00 62 00 15 00 18 00 c0 80 d5 22 00 41 80 |...b........".A.|
00000110 41 c4 44 00 80 04 10 00 18 08 01 00 b6 c1 80 00 |A.D.............|
00000120 46 09 82 01 04 06 80 31 40 c6 12 38 e0 04 50 06 |F......1@..8..P.|
00000130 02 45 00 6a 02 40 20 09 40 19 00 08 30 07 a8 03 |.E.j.@ .@...0...|
00000140 10 02 a0 0d 56 02 00 c0 02 03 40 08 05 01 2c 18 |....V.....@...,.|
00000150 03 03 b0 22 10 5a d7 96 04 12 b5 c7 d1 b5 65 c6 |...".Z........e.|
00000160 8f 00 0a ac 00 1a 00 40 08 00 c4 00 80 01 01 aa |.......@........|
00000170 c0 80 0d 40 18 00 15 48 03 88 80 04 40 08 80 0d |...@...H....@...|
00000180 50 06 00 55 00 20 11 50 06 00 0c 50 06 a0 0d 00 |P..U. .P...P....|
00000190 24 06 a0 01 55 f1 40 02 c4 00 18 22 0c 00 12 80 |$...U.@...."....|
000001a0 02 45 01 1c 10 02 00 03 40 18 20 0c 00 28 09 10 |.E......@. ..(..|
000001b0 04 a8 00 45 00 60 2d 56 00 26 08 01 00 60 00 fe |...E.`-V.&...`..|
000001c0 ff ff 07 fe ff ff 3f 00 00 00 31 c3 c8 03 00 fe |......?...1.....|
000001d0 ff ff 05 fe ff ff 70 c3 c8 03 a1 3c ce 53 00 00 |......p....<.S..|
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.|