Search for Linux systems on all hard disk partitions, reinstall Grub method

Source: Internet
Author: User

The computer hard drive (non-VMware) installs Ubuntu, Fedora, Debian, OpenSUSE, LinuxMint, Mageia, Elementaryos, Pearos, Zorinos, Bodhi, Manjaro, Sparky, Linuxdeepin and other 13 Linux distributions, the Long march of the Linux version finally took the first step! But the problem comes, I like Zorinos grub to start the GUI, but the last installation of the Pearos ugly text interface to cover, how to do? For a long time, there was no satisfactory answer. Today accidentally installed KDE-CONFIG-GRUB2 and Grub2-common to Zorinos, found that grub automatically changed back to the kind of zorinos. So the clues, finally found the answer,

sudo update-grub2sudo GRUB-INSTALL/DEV/SDA

These two commands, exactly one to meet my requirements: 1, search all hard disk partitions on the Linux system. 2. Install the Grub interface for the current system.

After Linuxdeepin, Pearos and other system testing, tried!

Note: The above is used GRUB2, if it is grub, you should use the following command (ArchLinux applies):

Grub-install--force/dev/sdagrub-mkconfig-o/boot/grub/grub.cfg

Search for Linux systems on all hard disk partitions, reinstall Grub method

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.