First I thank Neosmart Technologies for EasyBCD.
Sorry! I am writing a lengthy post to explain my situation and also it may be of use others who are in this situation as I read practically all posts relevent to this situation.
I have SONY VAIO FE880 laptop with sata hard drive. First primary partition(hidden) has recovery data.It comes preinstalled with windows Vista home Premium in second primary partition which occupies rest disk. . I wanted to install two distribution of linux Debian and Kubuntu. First taking necessary care of backing up windows vista partition using partimage from sysrescuecd, defragging vista drive and removing restore, I did shrinking vista volume and made free space. Any detail for the above I am not including here as it is available in m blog at http://debianetchonsonyvaiofe880.blogspot.com/. I made vfat drives for easy data transfer between linux and vista and two ext3 partitions and one swap partition, all as logical partitions. As I am not sure how this recovery partition works internally, Hence I didn't want to touch mbr with other bootloaders. Hence the need for EasyBCD. I installed first EasyBCD 1.52 and then debian on first linux partition and made sure grub was installed in root partition of debian. I tried adding linux in add/remove entries tab of EasyBCD. But though entry was made, I couldn't boot to linux as error said no \NST\nst_grub.mbr. After reading though this forum, I found it easier to use linux dd for getting first 512 bytes of debian root partition as nst_grub.mbr file and put it in C:\NST\. However with second linux installation, I tried to add that as before. Now old nst_grub also has gone. Any how by putting first 512 bytes of Kubuntu as nst_grub.mbr in C:\NST\ I could do second level booting in linux.
Now I would like to put my observation for developers so that following can be taken care in next release.
Adding linux entry is ok. If it fails to make new nst_grub.mbr due to some reason, it should say so by some info window. Here I have some comments regarding numbering of linux partition in manual. Manual may be correct for primary partition as I have not tried with that. But for logical partition, it doesn't work for me. I have installed debian in /dev/sda9. When I use drive 0, partition 9, it didn't make nst_grub.mbr. I have seen advices in forums to see windows numbering in two ways.
One is to use windows disk manager. I am giving below entries in control Panel/System and maitenance/Administrative tools/Computer management/Strorage/Disk management.
windows vista as primary partition. But it also shows recovery, swap and linux partitions as primary partitions. Thus it shows 5 primary partitions. Now using this, how to number partition for EaseyBCD is beyond my guess. It will be better if it is explained using this info how to number it forEasyBCD?
Second, which worked for me, is using EasyBCD Power Console and doing mbr.exe --list from easyBCD folder. It gives Volume information and also block information. Later was useful in finding out partition. For linux partitions in my HD, following are relevent.
\\?\Device\Harddisk0\Partition7
link to \\?\Device\HarddiskVolume7
Fixed hard disk media. Block size = 512
size is 8192346624 bytes
\\?\Device\Harddisk0\Partition8
link to \\?\Device\HarddiskVolume8
Fixed hard disk media. Block size = 512
size is 8480231424 bytes
What is partition 7 in windows is /dev/sda9 and partition 8 in windows is /dev/sda10. If I use this then I get corresponding nst_grub.mbr in C:\NST\.
But the problem is having two linuxes. EasyBCD first removes existing nst_grub.mbr and writes nst_grub.mbr for second partition. This leads once again two tier menus.
I saw in EasyBCD view settings that BCD Ids are different. If EasyBCD instead of overwriting previous nst_grub.mbr of debian, places another file by another modified name say nst_grub2.mbr corresponding to Kubuntu, single menu can give options for vista and both linuxes.
For this I have gone through bcdedit /? in easybcd powerconsole. I could set the file for kubuntu as nst_grub2.mbr. using the command
bcdedit /set {7eb9b72a-e3e0-9582-0013a9857dc1} path \NST\nst_grub2.mbr where the long list of numbers are id for kubuntu. This ID can be obtained from easybcd view settings or from bcdedit /v.
Now I have a single menu from vista boot loader that takes me to vista or debian or kubuntu directly.
I have attached a zip file containing What disk management shows for my disk and easybcd view settings before I did bcdedit /set command.
Sorry! I am writing a lengthy post to explain my situation and also it may be of use others who are in this situation as I read practically all posts relevent to this situation.
I have SONY VAIO FE880 laptop with sata hard drive. First primary partition(hidden) has recovery data.It comes preinstalled with windows Vista home Premium in second primary partition which occupies rest disk. . I wanted to install two distribution of linux Debian and Kubuntu. First taking necessary care of backing up windows vista partition using partimage from sysrescuecd, defragging vista drive and removing restore, I did shrinking vista volume and made free space. Any detail for the above I am not including here as it is available in m blog at http://debianetchonsonyvaiofe880.blogspot.com/. I made vfat drives for easy data transfer between linux and vista and two ext3 partitions and one swap partition, all as logical partitions. As I am not sure how this recovery partition works internally, Hence I didn't want to touch mbr with other bootloaders. Hence the need for EasyBCD. I installed first EasyBCD 1.52 and then debian on first linux partition and made sure grub was installed in root partition of debian. I tried adding linux in add/remove entries tab of EasyBCD. But though entry was made, I couldn't boot to linux as error said no \NST\nst_grub.mbr. After reading though this forum, I found it easier to use linux dd for getting first 512 bytes of debian root partition as nst_grub.mbr file and put it in C:\NST\. However with second linux installation, I tried to add that as before. Now old nst_grub also has gone. Any how by putting first 512 bytes of Kubuntu as nst_grub.mbr in C:\NST\ I could do second level booting in linux.
Now I would like to put my observation for developers so that following can be taken care in next release.
Adding linux entry is ok. If it fails to make new nst_grub.mbr due to some reason, it should say so by some info window. Here I have some comments regarding numbering of linux partition in manual. Manual may be correct for primary partition as I have not tried with that. But for logical partition, it doesn't work for me. I have installed debian in /dev/sda9. When I use drive 0, partition 9, it didn't make nst_grub.mbr. I have seen advices in forums to see windows numbering in two ways.
One is to use windows disk manager. I am giving below entries in control Panel/System and maitenance/Administrative tools/Computer management/Strorage/Disk management.
windows vista as primary partition. But it also shows recovery, swap and linux partitions as primary partitions. Thus it shows 5 primary partitions. Now using this, how to number partition for EaseyBCD is beyond my guess. It will be better if it is explained using this info how to number it forEasyBCD?
Second, which worked for me, is using EasyBCD Power Console and doing mbr.exe --list from easyBCD folder. It gives Volume information and also block information. Later was useful in finding out partition. For linux partitions in my HD, following are relevent.
\\?\Device\Harddisk0\Partition7
link to \\?\Device\HarddiskVolume7
Fixed hard disk media. Block size = 512
size is 8192346624 bytes
\\?\Device\Harddisk0\Partition8
link to \\?\Device\HarddiskVolume8
Fixed hard disk media. Block size = 512
size is 8480231424 bytes
What is partition 7 in windows is /dev/sda9 and partition 8 in windows is /dev/sda10. If I use this then I get corresponding nst_grub.mbr in C:\NST\.
But the problem is having two linuxes. EasyBCD first removes existing nst_grub.mbr and writes nst_grub.mbr for second partition. This leads once again two tier menus.
I saw in EasyBCD view settings that BCD Ids are different. If EasyBCD instead of overwriting previous nst_grub.mbr of debian, places another file by another modified name say nst_grub2.mbr corresponding to Kubuntu, single menu can give options for vista and both linuxes.
For this I have gone through bcdedit /? in easybcd powerconsole. I could set the file for kubuntu as nst_grub2.mbr. using the command
bcdedit /set {7eb9b72a-e3e0-9582-0013a9857dc1} path \NST\nst_grub2.mbr where the long list of numbers are id for kubuntu. This ID can be obtained from easybcd view settings or from bcdedit /v.
Now I have a single menu from vista boot loader that takes me to vista or debian or kubuntu directly.
I have attached a zip file containing What disk management shows for my disk and easybcd view settings before I did bcdedit /set command.