先是在原有的Win8企业版基础上,装了CentOS6.3,后来又装了Win8专业版,覆盖了原来的Win8企业版,因此无法引导CentOS。后来为了省事,用了EasyBCD->添加新条目->Linux/BSD->Grub(Legacy)->CentOS->Linux分区->添加新条目,重启后出现了CentOS的引导界面,进入后发现不能引导,找其原因,发现C盘的NST文件夹下的nst_linux.mbr文件是空的,引导项自然不能正确引导。于是从头再来,在EasyBCD->Help(帮助)->Document(文档)进入EasyBCD的官网学习http://neosmart.net/wiki/display/EBCD/EasyBCD+Documentation+Home;jsessionid=C8A7AB5B4F4C769A04B3C5A86DD4551F
在Get Started 是打开Linux标签,在
Method 2: Using NeoGrub to boot Linux打开其中的NeoGrub标签,按照
Installing & Configuring NeoGrub中的方法,
# NeoSmart NeoGrub Bootloader Configuration File # # This NeoGrub menu.lst file should be located at \NST\menu.lst of the boot drive. # Please see the EasyBCD Documentation for information on how to create/modify entries #This is a comment. Comments are prefixed with a '#' default 0 #Pick the task to be run if the user doesn't pick one within the time limit. timeout 10 #Give the user 10 seconds to choose a task. #We use the "title" keyword to indicate a new entry in the menu. title Windows XP #This is our first entry - it's number 0 find --set-root /NTLDR #Search for NTLDR on all partitions. Once found, use that partition as root. makeactive #Make this the active partition chainloader /NTLDR #Run NTLDR, the Windows XP bootloader #If we're using a menu, we don't need to use the `boot` command - it's automatically implied. #This is our second entry title Ubuntu Gutsy Gibbon root (hd1,2) #Load Ubuntu from the 2nd harddrive's 3rd partition. #Next Line: Translate (hd1,2) to Linux notation and set that as the root partition kernel /boot/vmlinuz-2.6.22-14-generic root=/dev/sdbc initrd /boot/initrd.img-2.6.22-14-generic #End Ubuntu entry #That's it!
# NeoSmart NeoGrub Bootloader Configuration File # # This NeoGrub menu.lst file should be located at \NST\menu.lst of the boot drive. # Please see the EasyBCD Documentation for information on how to create/modify entries #This is a comment. Comments are prefixed with a '#' title CentOS root (hd0,9) #Load CentOS from the 1nd harddrive's 10rd partition. #Next Line: Translate (hd0,9) to Linux notation and set that as the root partition kernel /boot/vmlinuz-2.6.22-14-generic root=/dev/sda10 initrd /boot/initrd.img-2.6.22-14-generic
boot 需要注意的是,在kernel这一行,如果不确定,在Grub命令行下,输入kernel /boot/vmlinuz然后按Tab键,可自动补全,root=/dev/sda10的写法是如果装在第1块硬盘的第n个分区下就是root=/dev/sdan,第二块硬盘root=/dev/sdbn,和前面的root (hd0,9) #Load CentOS from the 1nd harddrive's 10rd partition.这一行中的hd0,9是联系在一直的,hd0,9表示第一块硬盘的第10个分区。在initrd这一行,不同的系统会不一样,所以也采用补全的方法,输入initrd /boot/initrd.img然后按Tab键,可自动补全最后一行不要忘记boot其实上面的配置很少一次就成功,都需要在未配置的情况下进入Grub命令行进行试验,几个重要的命令:root (),括号前的空格一定不要少;boot;kernel加载内核。还有在使用root命令时,要善于使用Tab键的补全功能,输入root (hd0, 后按Tab键可以列出当前硬盘的各个分区信息,一般Linux的分区是ext2/3/4,一下就能找到,找到后,一步步下来就能重新进入Linux了,其实原来系统没有问题的话,使用Grub足够引导系统了。

在Win8系统中安装CentOS6.3后,由于后续安装Win8专业版覆盖原有系统,导致CentOS无法被正确引导。通过使用EasyBCD的NeoGrub引导加载器进行配置,发现C盘NST文件夹下的nst_linux.mbr文件为空,进而导致引导失败。为解决此问题,重新学习EasyBCD官方文档,遵循'Using NeoGrub to boot Linux'部分的指南,进行安装和配置NeoGrub,以实现对CentOS的正确引导。
11万+

被折叠的 条评论
为什么被折叠?



