Install the dual Linux system and Kali grub repair again!

Source: Internet
Author: User
Tags system log uuid kali linux

Plan next semester without notebook, usually programming netbook is enough, also look at the general algorithm, so that netbook installed Centos7 and Kali, Netbook is APU, but these two versions of Linux are supported by a good.

First install CentOS, because familiar with Linux, so boot a zone, the root of a zone, the rest to the home, where the swap and home is two Linux shared, the specific installation of the partition on the line,

Note here that all partitions are EXT4, which defaults to the standard partition, otherwise Kali grub may not be recognized.

CentOS installation All normal, next install Kali, partition what everything is normal, finally installed grub unexpectedly how also ann not on! Do not know why, there is no way to skip installation grub, but into the system unexpectedly has grub,

This is odd, not installed Grub reboot several times after the bad, boot black screen Nothing shows, only repair grub.

Repair GRUB using the following command on the Kali Linux Live CD
mount/dev/sda5/mnt                 &N Bsp                    //here is the root directory mounted to mnt
Mount/dev/sda5/mnt/boot   & nbsp                          //here is the boot partition mounted to/mnt/boot
MoU NT--bind/dev/mnt/dev                            . This is the original system of the Dev directory mount, to use the bind parameter  
chroot/mnt                     &NBS P                            //Change the current root directory
G RUB-INSTALL/DEV/SDA                           &NB Sp        //Reinstall Grub to the first partition
exit 
Reboot

This will fix the grub, then modify the contents of the GRUB.D, and then reboot, the problem again, the display can not find the device, and then a string of numbers.

Check for a half day found mounted disk has such a number, called UUID, because changed the CentOS file system, the UUID changed, to the menuentry inside the string to change the number of the current CentOS boot partition

's UUID. Then Update-grub, after restarting no error, but not to go into the emergency. Check the system log, found or boot mount failed, the original also to modify the/etc/fstab file, the inside of the

Automatically mount the UUID of the disk into the later modified boot partition, then perfect into the system!

Install the dual Linux system and Kali grub repair again!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.