Sunday, 30 May 2010

bcd problem

try to add ntldr to bcd store
bcdedit /create {ntldr} /d "NTLDR"
bcdedit /set {ntldr} device partition=C:
bcdedit /set {ntldr} path \ntldr
bcdedit /displayorder {ntldr} /addlast

{ntldr} , short of {466F5A88-0AF2-4F76-9038-095B170DC21C}, see bcd objects
partition is c: , it is the first non-hidden primary partition , wheres the ntldr boot.ini bootfont.bin(if any) ntdetect.com in place
for a clean install of windows 2008 , 2008 r2 , 7 (Seven) , there is a hidden NTFS partition of 100MB storing BCD data , labeled "System Reserved" (new install from old windows will get only 1 partition, mixed)
so /dev/sda1 (the 100MB partition) and /dev/sda2 (wheres windows actually installed)   [in linux dev terms]

but strange things happen, ntldr on c: the second partition (the 1st non-hidden) searches ntdetect.com in the hidden partition, and every entry of the boot.ini ask for ntoskrnl.exe

as a result, I deleted the bcd store for ntldr

now I added boot.ini to the hidden partition, and it is partially work, it can't boot grldr but it can boot plop boot loader inside the hidden partition
use the plop boot loader to boot HDD2 , then it will work normally

the entry device partition=C: of bcd is searching the first non-hidden partition
but the bcd can load the boot.ini and plopbt in the hidden partition with this line
C:\plpgenbtldr-0.7\plpbtldr.bin="PLoP Boot Manager"
it is totally messy
I think it is the reason why microsoft makes everything in single partition for a new install from old windows

or , we can use easybcd to add neogrub

bcd objects
http://www.geoffchappell.com/notes/windows/boot/bcd/objects.htm
microsoft kb paper
http://support.microsoft.com/kb/919529
http://technet.microsoft.com/en-us/library/cc709667%28WS.10%29.aspx 
easybcd
http://neosmart.net/

No comments:

Labels

Search This Blog