Windows stops booting in UEFI mode after adding another hard drive

shiin

New member
Local time
5:39 PM
Messages
6
This week, I encountered the following strange problem for which I haven't found a final solution so far, though I have found some bandaids. But having a complete solution -or at least a reason why this problem occurs- would be great:


I have a working installation of Windows 7 Professional x64 in UEFI mode. The main disk, SSD #1, contains the following partitions (using GPT): ESP, MSR, system, data. An additional disk, HD #2, with a single data partition (using MBR) is also attached to the system. With this setup, everything works fine.
Now, after adding another disk, HD #3, to the system -my old system disk (bootable, using MBR, one active primary partition and an extend partition with three logical disks)- Windows will no longer boots completely: The boot process begins, the Windows logo is shown. Then, a message is shown in text mode "Windows is loading files" with a loading bar. After a while the boot process stops and I am dropped into the EFI shell. After removing the offending HD #3, Windows boots normally again.

I tried removing HD #2 and only attaching HD #3 together with SSD #1, but this yielded the same problem. Using SSD #1 by itself works fine though. Booting from a Linux live-cd works without problems. All disks and partitions are found and can be mounted. There, I erased the disk signature from the offending HD #3 and now Windows was able to boot and also found all disks and partitions correctly. But after a reboot the same problem reappeared.

My current assumption is that after removing the disk signature, Windows no longer regards HD #3 during the boot process and only setups the disk after booting has finished. But as soon as it has a disk signature again, Windows includes HD #3 in the boot process and probably the partition ordering gets mixed up compared to what Windows expects.

So my question is, why does this boot problem occur and how can I fix it permanently (and will it happen for any new disk I attach to my system)?
 

My Computer My Computer

At a glance

Windows 7 Professional x64Intel Core i5-34502x 4GB Corsair DIMM DDR3-1600Sapphire Radeon HD 7750 Ultimate
OS
Windows 7 Professional x64
CPU
Intel Core i5-3450
Motherboard
MSI G65-Z77A
Memory
2x 4GB Corsair DIMM DDR3-1600
Graphics Card(s)
Sapphire Radeon HD 7750 Ultimate
Hard Drives
SSD SAMSUNG 830series 256GB
HD Seagate Barracuda.11 500GB
PSU
NesteQ E²CS X-Strike
Has HD#3 any active partitions?
What happens if you boot with HD#3 attached only?
How did you erase the disk signature? As far as I know you can only update it
 

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bits 7601...Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz4,00 GBATI Mobility Radeon HD 5400 Series
Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
Mark active partition on HD#3 as inactive and boot again.
 

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bits 7601...Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz4,00 GBATI Mobility Radeon HD 5400 Series
Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
Has HD#3 any active partitions?
What happens if you boot with HD#3 attached only?
How did you erase the disk signature? As far as I know you can only update it
It has active partition ... I didn't read well ;-)
disk signature can't be a problem. Only a problem if you cloned from or to HD#3
 

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bits 7601...Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz4,00 GBATI Mobility Radeon HD 5400 Series
Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
Thanks for the advice. I will set the active partition to inactive and try again when I am back at home.

When I said that I erased the disk signature, I meant that I overwrote it with zeroes (using dd if=/dev/zero of=/dev/sdb bs=1 count=4 seek=440 conv=notrund). This prompts Windows to assign a new signature upon booting.

Booting with only HD #3 attached works (when I switch back to BIOS mode).
 

My Computer My Computer

At a glance

Windows 7 Professional x64Intel Core i5-34502x 4GB Corsair DIMM DDR3-1600Sapphire Radeon HD 7750 Ultimate
OS
Windows 7 Professional x64
CPU
Intel Core i5-3450
Motherboard
MSI G65-Z77A
Memory
2x 4GB Corsair DIMM DDR3-1600
Graphics Card(s)
Sapphire Radeon HD 7750 Ultimate
Hard Drives
SSD SAMSUNG 830series 256GB
HD Seagate Barracuda.11 500GB
PSU
NesteQ E²CS X-Strike
Thanks for the advice. I will set the active partition to inactive and try again when I am back at home.

When I said that I erased the disk signature, I meant that I overwrote it with zeroes (using dd if=/dev/zero of=/dev/sdb bs=1 count=4 seek=440 conv=notrund). This prompts Windows to assign a new signature upon booting.

Booting with only HD #3 attached works (when I switch back to BIOS mode).
Although I would reset disk signature in win7 pe, the command looks fine. Is HD#3 really sdb? If you change HD#3 disk signature... its bcd menu is invalid and points to the old disksignature so it can't boot or boots to wrong drive. Even if you fix that (by doing startup repair)... the win7 OS boots but can't find C because registry still points to old signature. Editing the MountedDevices Registry Key

It's not a disk signature problem I think
 

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bits 7601...Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz4,00 GBATI Mobility Radeon HD 5400 Series
Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
Do you show a Windows Boot Manager, or a UEFI version of the UEFI install drive in the bios? If you set that first in boot order and save, it should just boot to the UEFI. To boot to a MBR install, it has to boot to the drive itself.

You might also try disabling that drive in the boot order list. And beyond that, some bioses can be set to boot only to UEFI....which is how mine is set up.
 

My Computer My Computer

At a glance

Windows 7 x64i7-2600K8 GGTX 480
Computer Manufacturer/Model Number
Homebuilt
OS
Windows 7 x64
CPU
i7-2600K
Motherboard
Asus P8Z77-v Pro
Memory
8 G
Graphics Card(s)
GTX 480
Sound Card
Onboard
Monitor(s) Displays
LG W2753V
Screen Resolution
1920x1080
Hard Drives
Crucial M4 128 G SSD
@Kaktussoft:
Removing the active flag from the boot partition of HD#3 didn't work. But in the EFI shell I saw that the second partition of SSD#1 (i.e. the MSR partition) was listed as blk8, meaning after all other partitions of all other hard drives. Maybe this is causes the problem?

@Saltgrass:
The correct boot loader is run (the one of Windows 7 residing in the ESP partition). But during the inital booting procedure, Windows has problems with the additionally attached drive.
 

My Computer My Computer

At a glance

Windows 7 Professional x64Intel Core i5-34502x 4GB Corsair DIMM DDR3-1600Sapphire Radeon HD 7750 Ultimate
OS
Windows 7 Professional x64
CPU
Intel Core i5-3450
Motherboard
MSI G65-Z77A
Memory
2x 4GB Corsair DIMM DDR3-1600
Graphics Card(s)
Sapphire Radeon HD 7750 Ultimate
Hard Drives
SSD SAMSUNG 830series 256GB
HD Seagate Barracuda.11 500GB
PSU
NesteQ E²CS X-Strike
How about attaching a snipping tool picture of your disk management graphical presentation using the paperclip. Expand it to see at least some of the info on the partitions.

Any chance the additional Hard Drive is having problems and causing out of the normal behavior?

How are you even seeing the MSR partition? It is not visible in Disk Management. The EFI (100mb) is visible.
 

My Computer My Computer

At a glance

Windows 7 x64i7-2600K8 GGTX 480
Computer Manufacturer/Model Number
Homebuilt
OS
Windows 7 x64
CPU
i7-2600K
Motherboard
Asus P8Z77-v Pro
Memory
8 G
Graphics Card(s)
GTX 480
Sound Card
Onboard
Monitor(s) Displays
LG W2753V
Screen Resolution
1920x1080
Hard Drives
Crucial M4 128 G SSD
I did some additional tests with an empty hard disk instead of HD#3:
As soon as there is an extended partition on the disk, Windows was no longer able to boot correctly. Two primary partitions works fine, but one primary partition and one extended partition containing one logical disk didn't.

@Saltgrass:
The MSR partition can be seen using diskpart in a command prompt; in the EFI shell of the mainboard or when booting a linux DVD and using the appropriate commands or tools (e.g. gparted).

Using the additional hard disk on its own works fine. By attaching it to another PC that does not UEFI, I can boot without problems.
 

My Computer My Computer

At a glance

Windows 7 Professional x64Intel Core i5-34502x 4GB Corsair DIMM DDR3-1600Sapphire Radeon HD 7750 Ultimate
OS
Windows 7 Professional x64
CPU
Intel Core i5-3450
Motherboard
MSI G65-Z77A
Memory
2x 4GB Corsair DIMM DDR3-1600
Graphics Card(s)
Sapphire Radeon HD 7750 Ultimate
Hard Drives
SSD SAMSUNG 830series 256GB
HD Seagate Barracuda.11 500GB
PSU
NesteQ E²CS X-Strike
That is a good catch about the logical partition. I would not of thought about that, but I suppose some more testing might be in order.

But the EFI Shell concept interests me. ASUS boards will not normally install a EFI shell, and probably rightly so. But you can load one and access it from the bios. It appears your system actually lists the EFI shell as one of the boot options?

I have never tried playing with it and have just been able to change directories, but I now know what your mean by blk8, since I used the map command.

Where is your shellx64.efi file located, in the EFI partition?

Edit: I just confirmed your findings. With the MBR configured drive and logical partitions on it, the system immediately went into a Recovery environment and ended up with a Grub Rescue shell.
 
Last edited:

My Computer My Computer

At a glance

Windows 7 x64i7-2600K8 GGTX 480
Computer Manufacturer/Model Number
Homebuilt
OS
Windows 7 x64
CPU
i7-2600K
Motherboard
Asus P8Z77-v Pro
Memory
8 G
Graphics Card(s)
GTX 480
Sound Card
Onboard
Monitor(s) Displays
LG W2753V
Screen Resolution
1920x1080
Hard Drives
Crucial M4 128 G SSD
Using the additional hard disk on its own works fine. By attaching it to another PC that does not UEFI, I can boot without problems.

Right. It's the UEFI code that can't handle the circimstances. Work around it.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64QuadCore Intel Core i7 920, 2666 MHz (20 x 133)6134 MB (DDR3-1333 DDR3 SDRAM)(2 - SLI) NVIDIA GeForce GTS 250 (1024 MB)
Computer Manufacturer/Model Number
Home Built
OS
Windows 7 Ultimate x64
CPU
QuadCore Intel Core i7 920, 2666 MHz (20 x 133)
Motherboard
Asus P6T
Memory
6134 MB (DDR3-1333 DDR3 SDRAM)
Graphics Card(s)
(2 - SLI) NVIDIA GeForce GTS 250 (1024 MB)
Sound Card
Onboard Realtek ALC888/1200 @ Intel 82801JB IC
Monitor(s) Displays
HDMII
Screen Resolution
1280 x 800
Hard Drives
Crucial M4 (64 GB SSD)
WD Caviar Blacks
WD5001AALS-00J7B1 ATA Device (465 GB)
WD5001AALS-00J7B1 ATA Device (465 GB)
WD5001AALS-00L3B2 ATA Device (465 GB)
WD Elements USB External (250 GB)
PSU
Corsair 550
Case
iStarUSA S-10000BL Black
Thank you for the tips so far. I was hoping that I could keep my partitions on HD#3 intact, but this does not seem to be possible.
So, I simply used the trick to replace the disk identifier with zeroes, boot Windows 7 once and copied everything I that needed copying before repartitioning HD#3.
 

My Computer My Computer

At a glance

Windows 7 Professional x64Intel Core i5-34502x 4GB Corsair DIMM DDR3-1600Sapphire Radeon HD 7750 Ultimate
OS
Windows 7 Professional x64
CPU
Intel Core i5-3450
Motherboard
MSI G65-Z77A
Memory
2x 4GB Corsair DIMM DDR3-1600
Graphics Card(s)
Sapphire Radeon HD 7750 Ultimate
Hard Drives
SSD SAMSUNG 830series 256GB
HD Seagate Barracuda.11 500GB
PSU
NesteQ E²CS X-Strike
I don't even know about changing the Disk Identifier, but would have probably converted some of the logical to primary, after moving stuff around. If that would have even been possible.

I just tried the same thing in Ubuntu, and it seems to boot OK even with the logical partitions.
 

My Computer My Computer

At a glance

Windows 7 x64i7-2600K8 GGTX 480
Computer Manufacturer/Model Number
Homebuilt
OS
Windows 7 x64
CPU
i7-2600K
Motherboard
Asus P8Z77-v Pro
Memory
8 G
Graphics Card(s)
GTX 480
Sound Card
Onboard
Monitor(s) Displays
LG W2753V
Screen Resolution
1920x1080
Hard Drives
Crucial M4 128 G SSD
I stumbled upon these two articles:

"Boot failed" error when you start a UEFI-enabled computer from a 64-bit version of Windows 7 or Windows Server 2008 R2 installation DVD (Package 1)
"Boot failed" error message when you start a UEFI-enabled computer from the installation DVD of a 64-bit version of Windows 7 or Windows Server 2008 R2 (Package 2)

Apparently, Windows 7-64bit and Windows Server 2008-64bit have problems with recognizing extended partitions. The boot manager thinks the extended partition is an UEFI partition and thus, the boot process fails.

I haven't tried the proposed hotfixes as they have to be applied to the installation media.
 

My Computer My Computer

At a glance

Windows 7 Professional x64Intel Core i5-34502x 4GB Corsair DIMM DDR3-1600Sapphire Radeon HD 7750 Ultimate
OS
Windows 7 Professional x64
CPU
Intel Core i5-3450
Motherboard
MSI G65-Z77A
Memory
2x 4GB Corsair DIMM DDR3-1600
Graphics Card(s)
Sapphire Radeon HD 7750 Ultimate
Hard Drives
SSD SAMSUNG 830series 256GB
HD Seagate Barracuda.11 500GB
PSU
NesteQ E²CS X-Strike
Well, I suppose the subject has come up before, but the condition on the link does not happen on my system. But it does seem to appear it is a Windows situation...

I went through an install with the offending drive connected. It worked fine until the first reboot, then the install failed...Perhaps some fixes have already been applied to updated systems.

I see a problem like this being very hard to diagnose, since how many posters would offer info about extended or logical partitions on secondary drives.

But at least we now know some of the symptoms, thanks to you. :)

Edit: I just tried the same thing in Windows 8. It went into a reboot loop and even after removing the drive, I had to go into the bios and reset the boot device and restart.

Edit 2: Just tested, and even if the errant drive is placed in an External Drive, it messes up the boot. In my case, a USB external enclosure.
 
Last edited:

My Computer My Computer

At a glance

Windows 7 x64i7-2600K8 GGTX 480
Computer Manufacturer/Model Number
Homebuilt
OS
Windows 7 x64
CPU
i7-2600K
Motherboard
Asus P8Z77-v Pro
Memory
8 G
Graphics Card(s)
GTX 480
Sound Card
Onboard
Monitor(s) Displays
LG W2753V
Screen Resolution
1920x1080
Hard Drives
Crucial M4 128 G SSD
Thank you for the tips so far. I was hoping that I could keep my partitions on HD#3 intact
I have been thinking about this situation. On my systems, I can plug an offensive drive in after the system is booted. Either by using an external drive, or in my case, an HDD dock.

But if you want to maintain the same number of partitions you had on the old drive, just convert it to GPT (which will normally wipe it) and then add all the partitions you want.
 

My Computer My Computer

At a glance

Windows 7 x64i7-2600K8 GGTX 480
Computer Manufacturer/Model Number
Homebuilt
OS
Windows 7 x64
CPU
i7-2600K
Motherboard
Asus P8Z77-v Pro
Memory
8 G
Graphics Card(s)
GTX 480
Sound Card
Onboard
Monitor(s) Displays
LG W2753V
Screen Resolution
1920x1080
Hard Drives
Crucial M4 128 G SSD
I have this exact problem....

Do I understand that I need to convert all partitions on all my discs to GPT and with all partitions being Primary?
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
You shouldn't need to have any but the OS HD as GPT.

But if another HD is interfering then I'd wipe it with Diskpart Clean Command as often stray boot code can interfere. Be sure to back up the data as this will wipe the HD.
 
Back
Top