Jump to content

Recommended Posts

Posted

Hi,

I am getting error when try to create WinPE to boot from Harddisk.

I get error when it run BCDEdit to create new boot configuration file.

When i run the following commad::

Bcdedit –store c:\boot\BCD –set <GUID> osdevice partition=boot

Error Msg::

An error occured while attempting to reference the specified entry.

The system cannot find the file specified.

Could anyone suggest how to overcome this?

/*---------------

Bcdedit –createstore c:\temp\BCD

Bcdedit –store c:\temp\BCD –create {bootmgr} /d “Boot Manager”

Bcdedit –store c:\temp\BCD –set {bootmgr} device boot

Bcdedit –store c:\temp\BCD –create /d “WINPE” –application osloader

Bcdedit –import c:\temp\BCD

The last command returns a GUID value. Substitute <GUID> with this value in the following examples.

Bcdedit –store c:\boot\BCD –set <GUID> osdevice partition=boot -------- error at this step

Bcdedit –store c:\boot\BCD –set <GUID> device partition=boot

Bcdedit –store c:\boot\BCD –set <GUID> path \windows\system32\winload.exe

Bcdedit –store c:\boot\BCD –set <GUID> systemroot \windows

Bcdedit –store c:\boot\BCD –set <GUID> winpe yes

Bcdedit –store c:\boot\BCD –set <GUID> detecthal yes

Bcdedit –store c:\boot\BCD –displayorder <GUID> -addlast

----------*/


Posted

Where is your Windows PE installed? If it's on C:\, it should work. If you have Vista installed and it's on a drive other than C:\, then you need to specify that location.

Basically, the error means what it means, it can't find the BCD store that you are trying to modify.

Posted

Here's the command file I use to make a dual boot PE 2.0 and Xp system with 2 different partitions. Remove the third section if you don't need legacy (xp or older) booting.

bcdedit -createstore c:\boot\bcd
bcdedit -store c:\boot\bcd -create {bootmgr} /d "Boot Manager"
bcdedit -store c:\boot\bcd -set {bootmgr} device boot
for /f "tokens=3" %%a in ('bcdedit -store c:\boot\bcd -create /d "Windows PE" -application osloader') do set guid=%%a

bcdedit -store c:\boot\bcd -set %guid% osdevice partition=c:
bcdedit -store c:\boot\bcd -set %guid% device partition=c:
bcdedit -store c:\boot\bcd -set %guid% path \windows\system32\boot\winload.exe
bcdedit -store c:\boot\bcd -set %guid% systemroot \windows
bcdedit -store c:\boot\bcd -set %guid% winpe yes
bcdedit -store c:\boot\bcd -set %guid% detecthal yes
bcdedit -store c:\boot\bcd -displayorder %guid% -addlast

bcdedit -store c:\boot\bcd -create {legacy} /d "Windows XP"
bcdedit -store c:\boot\bcd -set {legacy} device boot
bcdedit -store c:\boot\bcd -set {legacy} path \ntldr
bcdedit -store c:\boot\bcd -displayorder {legacy} –addlast
bcdedit -store c:\boot\bcd -default {legacy}
bcdedit -store c:\boot\bcd -timeout 5
bootsect /nt52 all

  • 1 month later...
Posted

****...i'm just getting tired from trying this.

I just can't boot winpe from an hdd.

At this point I can boot winpe but after the bootscreen appears I just get a BSOD and have no idea what to do about it.

Does anyone can boot winpe from the hdd?

Posted
At this point I can boot winpe but after the bootscreen appears I just get a BSOD and have no idea what to do about it.

That sounds closely like a hdd driver error. "Inaccessible boot device"?

Posted

are you trying to boot from an interal or external hard drive? It makes a difference. If it is internal follow my instructions above to get the boot loader working right. If it is external (usb/firewire) follow instructions for making a PE2 USB thumb drive bootable. I have instructions for both in my guide here in the Windows PE forum. http://www.msfn.org/board/GUIDE_Creating_W...st&p=674778

Posted

Ok, I think I solved the issue!

**** so stupid..

I've passed yesterday all afternoon trying this with no success.

Today I've just used diskpart and formated ALL hdd in NTFS...copied files from WINPECD and there it is, just working so good :)

  • 3 months later...
Posted

I was getting the same error and it turned out the one thing i was missing was posted by IcemanND in bcdedit script.

I forgot to add the whole partition=c: to the command... as I was booted from a WDS WinPE image at the time I was setting up my drive, adding this made it work flawlessly. Nice script btw, works like a charm. Thanks Again!

  • 1 year later...
Posted

im also having issues with the WINPE from HDD

the first part of the store goes fine until.. storing the bcd..

when the command "Bcdedit -store c:\boot\BCD -set %GUID% osdevice partition=C:" comes up i get the following error message:

the boot configuration data store couldn't be opened.

insufficient system resources exist to complete the requested service.

anyone an idea?

nothing much to be found on the net.. :wacko:

**configuration i'm using**

2 hd's

hd1: 8 Gb

hd2: 4 Gb

ram: 2gb

disks are clean when starting with the badge..

**********************

batch script:

diskpart /s diskpart.txt
imagex /apply boot.wim 1 c:\
xcopy boot\*.* /e /f c:\boot\
copy bootmgr c:
del c:\boot\bcd
copy bcd.cmd c:
copy bcdguid.cmd c:
c:
call bcd.cmd
call bcdguid.cmd

bcd.cmd:

md C:\temp\
md C:\boot\bcd
Bcdedit -createstore c:\temp\BCD
Bcdedit -store C:\temp\BCD -create {bootmgr} /d "Boot Manager"
Bcdedit -store C:\temp\BCD -set {bootmgr} device boot
Bcdedit -store C:\temp\BCD -create /d "WINPE" -application osloader
Bcdedit -import C:\temp\BCD

bcdguid.cmd:

set /p GUID=guid:
Bcdedit -store c:\boot\BCD -set %GUID% osdevice partition=C:
Bcdedit -store c:\boot\BCD -set %GUID% device partition=C:
Bcdedit -store c:\boot\BCD -set %GUID% path \windows\system32\boot\winload.exe
Bcdedit -store c:\boot\BCD -set %GUID% systemroot \windows
Bcdedit -store c:\boot\BCD -set %GUID% winpe yes
Bcdedit -store c:\boot\BCD -set %GUID% detecthal yes
Bcdedit -store c:\boot\BCD -displayorder %GUID% -addlast

Posted

hold on...

when using the script of IcemanND i don't get the errors... might it be possible that the copy / paste action of the guid be the issue?

anyhows.. i'm a bit closer to the fully working winpe..

thanks so far!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...