Fedora16 change the startup sequence and grub2 configuration skills
Source: Internet
Author: User
Fedora16 changes the startup sequence and grub2 configuration skills-general Linux technology-Linux technology and application information. The following is a detailed description. Recently, I changed the host and re-installed the xp and fedora16 dual systems. People who have played the game should know that the dual systems started from fedora by default, now it's not easy to change it to xp boot, at least it's much more troublesome than fedora15! Finally, I have been searching for the Internet for a long time and finally found a joint solution. Now I have posted it, hoping to help more people:
================================
This is an example of Windows Startup by default:
1. First find Windows menuentry.
# Cat/boot/grub2/grub. cfg | grep Windows
Result:
Menuentry "Windows 7 (loader) (on/dev/sda1)" -- class windows -- class OS {
2. Set Windows as the default startup Item (here you can only use the content in the double quotation marks "" or single quotation marks "in the Command output above)
The following command uses/etc/grub. the automatic configuration script under d and the variables defined in/etc/default/grub automatically generate the GRUB2 configuration file (including the kernel under/boot), and-o specifies the output file, /boot/grub2/grub. cfg is the default configuration file. If it is a multi-system, it will automatically find them and add them to the Startup Menu list.
# Grub2-mkconfig-o/boot/grub2/grub. cfg
Timeout and background images can be configured in/etc/default/grub.
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.