Multiboot CentOS & Ubuntu
Hi everybody,
these day I tried to install multi os from on my desktop for work.
However, the multi boot with Ubuntu and CentoOS
will reach to the grub and grub2 conflicted problem.
After few days studying and expirement, I finally figure out the way to fix the conflict.
Okay, now let's start.
First of all you have to separate your disk to 2 partition, you might not try to install CentOS at first
cause it Ubuntu won't detect the exist of the CentOS.
Besides, I tried... many time and many ways. It will never make it to fix the Ubuntu grub to
boot up the CentOS.
So,
- Install Ubuntu first, I used Ubuntu 16.04 LTS
- Then install CentOS7
Now you might see the menu of CentOS's grub with centos and ubuntu in the list.
However you will receive "can't find command linux & initrd" when you choose Ubuntu.
That's because the centos used linuxefi and initrdefi for boot up.
You can saw the command by press "E", and you will understand what I said. - Login to the CentOS, and find the file include grub.cfg.
- /boot/grub2/grub.cfg
- /boot/efi/EFI/centos/grub.cfg
- /etc/grub2.cfg
- /etc/grub.cfg
Actually... I don't know which one really change the command of the boot menu,
so... I changed them all~!! Haha~!! - Then you boot up again and you will see the ubuntu option can be operate correctly!
Done~!
Thanks for irresponsible tutorial.
provide |
Comments
Post a Comment