Linux Boot management: Grub

Source: Internet
Author: User

Partition representation in 1.grub

Linux/dev/sda1 in Grub for hd0,0 represents the first partition of the first hard disk

Linux/DEV/SDB3 is an extended partition in grub for hd1,2 in the 3rd partition on the second hard disk

Linux/DEV/SDB5 is the logical partition in the extended partition in grub for hd1,3 because the logical partition above is the 3rd partition then the Linux serial number/DEV/SDB4 there will be no logical partition can be less than 5 so this is the fourth partition.

2.grub configuration file:

1[[email protected] lib]#vim/boot/grub/grub.conf2 #grub.conf generated by Anaconda3 #4 #Note that does not have the rerun grub after making changes to the This file5 #notice:you has a/boot partition. This means6 #All kernel and initrd paths is relative to/boot/, eg.7 #root (hd0,0)8 #kernel/vmlinuz-version ro Root=/dev/sda59 #initrd/initrd-[generic-]version.imgTen #BOOT=/DEV/SDA One default=0 @ Select the system to enter ATimeout=5 @ time-out, default wait time when booting into that system -Splashimage= (hd0,0)/grub/splash.xpm.GZ @ Specifies where to save the background image file when Grub starts: the first partition of the first hard disk is called grub in fact, it is a boot - hiddenmenu @ Start screen hide theTitle CentOS (2.6.32-358.el6.x86_64) @ The start screen displays text that can be modified -Root (hd0,0) @ The location of the home directory to start -kernel/vmlinuz-2.6.32-358.el6.x86_64 ro root=uuid=32af0552-c200-46ac-B1 @ Load kernel also have some settings such as language Settings lang for Chinese Simplified and so on -be-07101977d777 rd_no_luks keyboardtype=pc keytable=us rd_no_md crashkernel=Aut +o LANG=ZH_CN. UTF-8RD_NO_LVM rd_no_dm rhgb quiet -INITRD/INITRAMFS-2.6.32-358.EL6.X86_64.IMG @ Load the emulated kernel image

Linux Boot management: Grub

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.