After the centos7 dual system is installed in win7, we tried to install centos to learn Linux in the lab before there was no win7 startup item. However, we had a Windows 7 system on the desktop and didn't want to format all the disks, so we installed the dual system, I used to solve the problem of dual-system startup items. Today, my younger brother is installing a dual-system, and then I copied my notes. today I pasted them on. Solution Step 1: install centos 7 on Windows 7. if you want to install centos to learn Linux in the lab without any windows 7 startup items, you have a Windows 7 system on your desktop and do not want to format all the disks, so I installed the dual-system, and previously solved the problem of the dual-system startup item. Today, a younger brother is installing a dual-system, and then I copied the previous notes. today I pasted it on. Step 1. go to the CentOS system
2. enter
[Html]View plaincopy
- Vi/boot/grub2/grub. cfg
3. add the following code in the blank area of the file
[Html]View plaincopy
- Menuentry 'Windows 7 '{
- Insmod part_msdos
- Insmod ntfs
- Insmod ntldr
- Set root = (hd0, 1)
- Chainloader + 1
- Boot
- }
Restart reboot to enter the win7 system. For centos6.5, you do not need to set the startup item. For more information, see! Remember this!