Jump to content











Photo
- - - - -

BCD and grub4dos via PXE


  • Please log in to reply
6 replies to this topic

#1 Mati

Mati

    Newbie

  • Members
  • 18 posts
  •  
    Poland

Posted 18 March 2008 - 03:39 PM

Hello hello,

i have some idea to mix Vista PE 2 images and some freedos boot image.

with BCD i don't have big problems:
Rem Creates BCD (boot configuration data) for three Windows PE 2.0 images

set BCD-File=c:\PXEServer\Tftproot\Boot\BCD

del %BCD-File%

Bcdedit /createstore %BCD-File%

Bcdedit /store %BCD-File% /create {ramdiskoptions} /d "Ramdisk options"

Bcdedit /store %BCD-File% /set {ramdiskoptions} ramdisksdidevice  boot

Bcdedit /store %BCD-File% /set {ramdiskoptions} ramdisksdipath  \boot\boot.sdi



for /f "tokens=1-3" %%a in ('Bcdedit /store %BCD-File% /create /d "WinPE x86" /application osloader') do set guid1=%%c

Bcdedit /store %BCD-File% /set %guid1% systemroot \Windows

Bcdedit /store %BCD-File% /set %guid1% detecthal Yes

Bcdedit /store %BCD-File% /set %guid1% winpe Yes

Bcdedit /store %BCD-File% /set %guid1% osdevice ramdisk=[boot]\Boot\winpe_x86.wim,{ramdiskoptions}

Bcdedit /store %BCD-File% /set %guid1% device ramdisk=[boot]\Boot\winpe_x86.wim,{ramdiskoptions}



for /f "tokens=1-3" %%a in ('Bcdedit /store %BCD-File% /create /d "WinPE x86 2" /application osloader') do set guid2=%%c

Bcdedit /store %BCD-File% /set %guid2% systemroot \Windows

Bcdedit /store %BCD-File% /set %guid2% detecthal Yes

Bcdedit /store %BCD-File% /set %guid2% winpe Yes

Bcdedit /store %BCD-File% /set %guid2% osdevice ramdisk=[boot]\Boot\winpe_x86_2.wim,{ramdiskoptions}

Bcdedit /store %BCD-File% /set %guid2% device ramdisk=[boot]\Boot\winpe_x86_2.wim,{ramdiskoptions}



for /f "tokens=1-3" %%a in ('Bcdedit /store %BCD-File% /create /d "WinPE x64" /application osloader') do set guid3=%%c

Bcdedit /store %BCD-File% /set %guid3% systemroot \Windows

Bcdedit /store %BCD-File% /set %guid3% detecthal Yes

Bcdedit /store %BCD-File% /set %guid3% winpe Yes

Bcdedit /store %BCD-File% /set %guid3% osdevice ramdisk=[boot]\Boot\winpe_x64.wim,{ramdiskoptions}

Bcdedit /store %BCD-File% /set %guid3% device ramdisk=[boot]\Boot\winpe_x64.wim,{ramdiskoptions}

Bcdedit /store %BCD-File% /create {bootmgr} /d "Windows VISTA BootManager" Bcdedit /store %BCD-File% /set {bootmgr} timeout 30

Bcdedit /store %BCD-File% /set {bootmgr} displayorder %guid1% %guid2% %guid3%

Bcdedit /store %BCD-File% /enum all

i can prepare 3 other kind PE and boot all from PXE and its works perfect. default boo file from DHCP its Boot/pxelinux.0 and we will receive nice boot menu from BCD with 3 PE boot options.

But, i need also add some freeDos boot idea to BCD :DD

and i have mega problem with it.

I try to add Grub4dos to bcd and its almost working, its mean grldr.mbr will be sent to remote pc via pxe but remote will show only black screen ....

and idea about it ? or maybe we have other way to but multi PE from one BCD

regards

#2 ireneuszp

ireneuszp

    Frequent Member

  • Advanced user
  • 191 posts
  •  
    Poland

Posted 19 March 2008 - 10:27 PM

I tested your promissory note and he does not work :thumbsup:

Posted Image

The boot configuration data store could not be opened.

The volume for a file has been externally altered so

that the opened file is no longer valid.
:tabletalk:

#3 Mati

Mati

    Newbie

  • Members
  • 18 posts
  •  
    Poland

Posted 20 March 2008 - 08:11 AM

please past the log after create BCD, last command will generate it or just use
Bcdedit /store boot.wim /enum all and show the log.

#4 ireneuszp

ireneuszp

    Frequent Member

  • Advanced user
  • 191 posts
  •  
    Poland

Posted 22 March 2008 - 07:32 PM

fix this line 29
Bcdedit /store %BCD-File% /create {bootmgr} /d "Windows VISTA BootManager" Bcdedit /store %BCD-File% /set {bootmgr} timeout 30
to
Bcdedit /store %BCD-File% /create {bootmgr} /d "Windows VISTA BootManager"

Bcdedit /store %BCD-File% /set {bootmgr} timeout 30


#5 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10562 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 22 March 2008 - 08:32 PM

Would someone write a tutorial to reach the same results?

This is very interesting! :thumbsup:

#6 Mati

Mati

    Newbie

  • Members
  • 18 posts
  •  
    Poland

Posted 25 March 2008 - 12:44 PM

here you can find the source:
http://www.deployvis...a...&EntryID=27

i just take this idea and push to work with me :thumbsup:

in theory we can use this to boot 2 or 3 Vista PE from one CD/DVD, but i dont test it jet.

lxxl

#7 allanf

allanf

    Gold Member

  • .script developer
  • 1256 posts

Posted 20 December 2009 - 01:05 AM

...

and i have mega problem with it.

I try to add Grub4dos to bcd and its almost working, its mean grldr.mbr will be sent to remote pc via pxe but remote will show only black screen ....

and idea about it ? or maybe we have other way to but multi PE from one BCD


Has anyone gotten grub4dos (or pxelinux) to load from PXE bootmgr/BCD?

I too receive a black screen - nothing else.

Any ideas?

Thanks ;)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users