修改/etc/grub.conf文件
将该文件中以kernel开头的一行行尾添加vga=ask
或者以如下数值代替ask
0x313代表800*600 8(代表字体大小)
0x314代表800*600 16
0x315代表800*600 24
例:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/sda1
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/ vga=0x314
initrd /boot/initrd-2.4.20-8.img
本文介绍如何通过修改GRUB配置文件来调整Linux启动时的显示分辨率。具体操作是在以kernel开头的行末尾添加vga参数,可以使用vga=ask让系统启动时询问用户选择分辨率,或直接指定如0x314代表800*600 16位颜色的固定分辨率。
1644

被折叠的 条评论
为什么被折叠?



