Modifying the boot sequence and default boot system for multiple operating systems in GRUB

Source: Internet
Author: User

If you are using grub as the master boot to boot a dual system (Windows & Linux), you can set Windows as the default operating system by doing the following. Adjusts the order in which two operating systems are displayed on the screen (typically, GRUB sets Linux as the default startup, and Windows displays as Dos):
1. Log on to Linux with the root account
2. The contents of vi/etc/grub.conf,grub.conf are as follows
# grub.conf generated by Anaconda
#
# so you don't have to rerun grub after making changes to this file
# notice:you do not have a/boot partition. This is means that
# all kernel and INITRD paths are relative to/, eg.
# root (hd0,4)
# kernel/boot/vmlinuz-version RO root=/dev/hdc5
# initrd/boot/initrd-version.img
#boot =/DEV/HDC
Default=0
timeout=10
Splashimage= (hd0,4)/boot/grub/splash.xpm.gz
Password--md5 $1$sefuvf4t$uet8liex0otii1lsnzglj/
Title Red Hat Linux (2.4.20-8)
Root (hd0,4)
Kernel/boot/vmlinuz-2.4.20-8 ro root=label=/
Initrd/boot/initrd-2.4.20-8.img
Title DOS
Rootnoverify (hd0,0)
Chainloader +1
3. Modify the grub.conf file to solve the startup sequence problem, the modified file is as follows
# grub.conf generated by Anaconda
#
# so you don't have to rerun grub after making changes to this file
# notice:you do not have a/boot partition. This is means that
# all kernel and INITRD paths are relative to/, eg.
# root (hd0,4)
# kernel/boot/vmlinuz-version RO root=/dev/hdc5
# initrd/boot/initrd-version.img
#boot =/DEV/HDC
Default=0
timeout=10
Splashimage= (hd0,4)/boot/grub/splash.xpm.gz
Password--md5 $1$sefuvf4t$uet8liex0otii1lsnzglj/
Title DOS
Rootnoverify (hd0,0)
Chainloader +1
Title Red Hat Linux (2.4.20-8)
Root (hd0,4)
Kernel/boot/vmlinuz-2.4.20-8 ro root=label=/
Initrd/boot/initrd-2.4.20-8.img

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.