版本:redhat linux enterprise 5.1
查看文件:
/boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda3
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-53.el5PAE)
root (hd0,0)
kernel /vmlinuz-2.6.18-53.el5PAE ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-53.el5PAE.img
title Red Hat Enterprise Linux Server (2.6.18-53.el5xen)
root (hd0,0)
kernel /xen.gz-2.6.18-53.el5
module /vmlinuz-2.6.18-53.el5xen ro root=LABEL=/ rhgb quiet
module /initrd-2.6.18-53.el5xen.img
title Red Hat Enterprise Linux Server-base (2.6.18-53.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-53.el5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-53.el5.img
修改 default 的值,实现内核选择,从 0 开始类推。
上面的 0 为 PAE
1 为 XEN
2 为 base
内核区别
Xen 用于虚拟技术,类似 aix 的虚拟化技术。
PAE 支持显示更高的内存。(在32bit的linux系统测试中显示的内存值64G, 真的能否达到这么高,没测试过)
例如一台 64g 内存的服务器,装 xen 内核显示 15g 内存( xen 最大支持 16g )
但是改为 pae 内核,可以显示 64g 内存。