dual boot windows7 with with centos7
hiiii all
I had installed Windows 7 on /dev/sda1 and /dev/sda2 and then I installed Centos 7. Since then I cant find Windows entry in the Grub. And i had tried to use all kind of solution found on the net I still cant see any entry. I had edited 40_custom script adding: cat <<EOF menuentry "windows 7" { insmod part_msdos insmod ntfs set root='hd0,msdos1' search --no-floppy --fs-uuid --set=root FCDAE998DAE95006 chainloader +1 } EOF then this command grub2-mkconfig -o /boot/grub2/grub2.cfg [root@localhost]# grub2-mkconfig -o /boot/grub2/grub2.cfg Generating grub configuration file ... Found linux image: /boot/vmlinuz-3.10.0-123.el7.x86_64 Found initrd image: /boot/initramfs-3.10.0-123.el7.x86_64.img Found linux image: /boot/vmlinuz-0-rescue-93890f189dec4b309c004fdce969ca5a Found initrd image: /boot/initramfs-0-rescue-93890f189dec4b309c004fdce969ca5a.img then this [root@localhost]# tail -10 /boot/grub2/grub.cfg # the 'exec tail' line above. ### END /etc/grub.d/40_custom ### ### BEGIN /etc/grub.d/41_custom ### if [ -f ${config_directory}/custom.cfg ]; then source ${config_directory}/custom.cfg elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ### [root@localhost]# Still cant find windows in grub please help me with this guys thanks |
Can you boot to windows 7 from grub command line? Or your trouble is that no menuentry for Windows 7 is present in grub menu at boot?
|
YOur grub2-mkconfig command did not show any output for windows. Were you eve able to boot windows after the CentOS install? Open a terminal and as root run the command: fdisk -l(Lower Case Letter L in the command) and post the output here?
|
Thanks for your reply brothers
i had formatted HDD installed windows again and did the same procedure its working fine now THANKS! |
All times are GMT -5. The time now is 05:10 AM. |