Grub2 enters stable Branch

Source: Internet
Author: User

Grub2 enters the stable branch. Today, it synchronizes portage with a piece of news titled GRUB2 migration. It tells me that grub2 has entered the stable branch and will be installed in my gentoo and replace grub legacy. Provides a good documentation grub2-igration.xml. The following is the migration process from grub legacy to grub2, hoping to provide some valuable reference. 1. When the grub2 software package is upgraded to strictly follow the Handbook to install gentoo, A bootloader will be installed. The default Handbook is grub, so you must have executed [plain] # emerge grub, [plain] # emerge-uDN world grub2 will be installed in gentoo when you upgrade the portage after synchronization, while [plain] # emerge -- depclean will uninstall grub legacy. Then you can manually delete/boot/grub, grub. conf and menu. lst has no value to delete, and grub2 will re-generate everything required under/boot/grub. (Now the manual has been changed to [plain] # emerge sys-boot/grub: 0 to install grub legacy. [Plain] # emerge sys-boot/grub: 2 install grub2. I believe that replacing grub legacy with grub2 is a trend. I think Handbook will be restored to emerge grub one day in the future, and emerge sys-boot/grub: 0 will be an additional choice. I hope it will not disturb you .) 2. Configure some configuration files grub2. Everything is automatic. The configuration file is in/etc/grub. d, so there is nothing to change here. There is also the important/etc/default/grub. 3. Install grub2 to/boot/grub and generate the configuration file [plain] # grub2-install -- grub-setup =/bin/true/dev/sda Installation finished. no error reported. # grub2-mkconfig-o/boot/grub. cfg Generating grub. cfg... found linux image:/boot/kernel-3.2.12-gentoo Found initrd image:/boot/initramfs-genkernel-x86_64-3.2.12-gentoo done 4 (if you need) install grub2 to MBR as the default bootloader [plain] # grub2-install/dev/sda Installation finished. No error reported. my choice: Because I have an XP ntloader as my default bootloader, ntloader starts grub4dos (PE Toolbox) and grub4dos starts grub2 (gentoo, with gentoo upgrade ). I need grub4dos (basically grub legacy, the command is the same) chain to start grub2 (in gentoo ). My/boot is the xp c: disk, and the grub4dos configuration file menu. lst is under the C: disk root directory. Find the grub4dos menu. lst, add the [plain] title GRUB2 Chainload root (hd0, 0) kernel/boot/grub/i386-pc/core. img boot can start from grub4dos chain to grub2. Answers to some questions: 1. Do you still remember the dolvm on the Daming Lake? If you use a kernel compiled with genkernel and use LVM (LVM2) Volume management. You must remember that the Kernel Parameter dolvm is expanded in the form of root =/dev/ram0 dolvm real_root =/dev/vg/slash. The method for adding this parameter to grub2 is as follows: [plain] vim/etc/default/grub GRUB_CMDLINE_LINUX = "dolvm or earlier Handbook follow perfectionists like me write like this: [plain] [plain] GRUB_CMDLINE_LINUX = "dolvm real_root =/dev/vg/slash" GRUB_DEVICE =/dev/ram0

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.