Brief introduction:
Windows Server 2008 R2 was first installed with two disks (C,d disk), that is (hd0,0), (hd0,1)
Linux,centos 6 is installed, with the default Lvm,/boot on (hd0,2) above
But I have an option on Linux installation that lets you choose to start with Linux (hd0,2) or Windows (hd0,0), and I click Windows, which makes it impossible for me to start Linux directly.
Windows,linux dual system, can set dual system boot in two kinds of OS.
But in Windows settings to use tools such as (Grub for DOS), trouble.
So I'm still using the Linux grub bar.
The difference of Windows,linux:
The bootloader that Linux is now popular is grub. XP and NT are based on Ntloader.
Some netizens advocate adopting such a way: Ntloader-> grub-> Win/lin. But as some netizens have said, Grub takes into account booting windows, and Ntloader has not considered booting windows outside of the system. Moreover, using Ntloader to guide is more cumbersome. It's easier to use grub to boot.
Because I chose Windows block MBR to boot when Linux was installed, my Linux grub did not start Linux. Even if I have modified:/boot/grub/grub.conf, add a dual system of MENU.LST
My repair method is as follows:
1, with the Linux 1th CD-ROM boot, choose the Linux Rescue mode, at this time load the original Linux to/mnt/sysimage.
2, after the # prompt, execute
#chroot/mnt/sysimage
#grub-INSTALL/DEV/SDA--now SDA, rarely hda?
#grub
Grub>root (hd0,2)
Grub>setup (hd0)
After the end will appear successful words, that is successful.
3, modify grub.conf, also namely Menu.lst
# grub.conf generated by Anaconda
#
# so you don't have to rerun grub after making changes to this file
# notice:you have a/boot partition. This is means that
# all kernel and INITRD paths are relative to/boot/, eg.
# root (hd0,0)
# kernel/vmlinuz-version RO root=/dev/mapper/vg_sr0002sz-lv_root
# initrd/initrd-[generic-]version.img
#boot =/DEV/SDA
Default=0-This is the default system which
Timeout=5--How many seconds to delay
Splashimage= (hd0,0)/grub/splash.xpm.gz--splash screen
#hiddenmenu--Block this off.
Title CentOS (2.6.32-71.el6.x86_64)
Root (hd0,2)
kernel/vmlinuz-2.6.32-71.el6.x86_64 ro root=/dev/mapper/vg_sr0002sz-lv_root rd_lvm_lv=vg_sr0002sz/lv_root rd_LVM_ Lv=vg_sr0002sz/lv_swap rd_no_luks rd_no_md rd_no_dm lang=zh_cn. UTF-8 keyboardtype=pc keytable=us Crashkernel=auto rhgb quiet
Initrd/initramfs-2.6.32-71.el6.x86_64.img
Title Windows Server 2008 R2
Root (hd0,0)
Chainloader +1
Save, then success.