在一台2007年出厂的老服务器上装centos,半路上突然显示器报警说输入信号超出范围,然后就无法安装。网上查了一下只能从字符界面安装了。下面先列出三篇参考的博客:
http://www.centoscn.com/CentOS/config/2014/0830/3614.html
我们在服务器上,很少会安装图形化界面,一般都使用字符界面的控制台。CentOS 下,控制台分辨率缺省情况下,变得很高,导致在显示器上花屏或者只能显示局部。
这是由于使用了frame buffer,好处是可以在高分辨率显示器上显示更多内容,让我们视野更加开阔,带来的问题是在普通的显示器上会出现问题。
CentOS 6下,我们一般是在安装启动的时候,加入 “vga=711″的参数,但是到了CentOS 7下,这个方法失去了作用。
解决方法:
在安装启动的时候,加入 nomodeset 参数。
如果你已经安装完毕,则可以修改 vi /etc/sysconfig/grub,加入 nomodeset 参数:
GRUB_CMDLINE_LINUX=”rd.md=0 rd.dm=0 KEYTABLE=us SYSFONT=True
rd.lvm.lv=vg/lv_root rd.luks=0 rd.lvm.lv=vg/lv_swap LANG=en_US.UTF-8
rhgb quiet nomodeset”
然后执行:
grub2-mkconfig -o /boot/grub2/grub.cfg
请参见:
http://www.centoscn.com/CentosBug/osbug/2014/1028/4008.html出现图形界面进行安装了。可是,在我的服务器上,问题又来了。
显示器显示 "输入信号超出范围"。晕。
在网上查解决方法,有很多,都不行,其中有“CentOS 6下,我们一般是在安装启动的时候,加入 “vga=711″的参数,但是到了CentOS 7下,这个方法失去了作用。http://www.centoscn.com/CentOS/config/2014/0830/3614.html”,所以我就没试,到最后没辙了我才试了试CentOS 6的解决方法,没想到成功了!!!!
解决方法就是vmlinuz initrd=initrd.img inst.stage2=hd:/dev/sdb4vga=711 ,然后根据自己的屏幕选择分辨率,就能成功的运行CentOS 的安装界面anaconda了。
http://shellfish.iteye.com/blog/725806VGA Boot modes to set screen resolution
A simple way to set your screen resolution and color depth for most Live Linux distro's is via the use of the vga=parameter boot option. For example at boot you might type: Live vga=795. This would set your system to boot using the Live label with a screen resolution to 24bit 1280X1024. Here are some more examples of common vga boot values.
VGA Resolution and Color Depth reference Chart:
Depth 800×600 1024×768 1152×864 1280×1024 1600×1200
8 bit vga=771 vga=773 vga=353 vga=775 vga=796
16 bit vga=788 vga=791 vga=355 vga=794 vga=798
24 bit vga=789 vga=792 vga=795 vga=799
http://www.pendrivelinux.com/vga-boot-modes-to-set-screen-resolution/
另附常见的分辨率对应vga编码:
VGA参数表
hwinfo --framebuffer | grep Mode
Model: "NVIDIA GW-P/N@PM898486GTQ14P:0"
Mode 0x0300: 640x400 (+640), 8 bits
Mode 0x0301: 640x480 (+640), 8 bits
Mode 0x0303: 800x600 (+800), 8 bits
Mode 0x0305: 1024x768 (+1024), 8 bits
Mode 0x0307: 1280x1024 (+1280), 8 bits
Mode 0x030e: 320x200 (+640), 16 bits
Mode 0x030f: 320x200 (+1280), 24 bits
Mode 0x0311: 640x480 (+1280), 16 bits
Mode 0x0312: 640x480 (+2560), 24 bits
Mode 0x0314: 800x600 (+1600), 16 bits
Mode 0x0315: 800x600 (+3200), 24 bits
Mode 0x0317: 1024x768 (+2048), 16 bits
Mode 0x0318: 1024x768 (+4096), 24 bits
Mode 0x031a: 1280x1024 (+2560), 16 bits
Mode 0x031b: 1280x1024 (+5120), 24 bits
Mode 0x0330: 320x200 (+320), 8 bits
Mode 0x0331: 320x400 (+320), 8 bits
Mode 0x0332: 320x400 (+640), 16 bits
Mode 0x0333: 320x400 (+1280), 24 bits
Mode 0x0334: 320x240 (+320), 8 bits
Mode 0x0335: 320x240 (+640), 16 bits
Mode 0x0336: 320x240 (+1280), 24 bits
Mode 0x033d: 640x400 (+1280), 16 bits
Mode 0x033e: 640x400 (+2560), 24 bits
Mode 0x0345: 1600x1200 (+1600), 8 bits
Mode 0x0346: 1600x1200 (+3200), 16 bits
Mode 0x0347: 1400x1050 (+1400), 8 bits
Mode 0x0348: 1400x1050 (+2800), 16 bits
Mode 0x0349: 1400x1050 (+5600), 24 bits
Mode 0x034a: 1600x1200 (+6400), 24 bits
Mode 0x0352: 2048x1536 (+8192), 24 bits
Mode 0x0360: 1280x800 (+1280), 8 bits
Mode 0x0361: 1280x800 (+5120), 24 bits
Mode 0x0362: 768x480 (+768), 8 bits
Mode 0x0364: 1440x900 (+1440), 8 bits
Mode 0x0365: 1440x900 (+5760), 24 bits
Mode 0x0368: 1680x1050 (+1680), 8 bits
Mode 0x0369: 1680x1050 (+6720), 24 bits
Mode 0x037c: 1920x1200 (+1920), 8 bits
Mode 0x037d: 1920x1200 (+7680), 24 bits
转自:http://blog.csdn.net/yeqishi/archive/2010/05/09/5573097.aspx
然后通常在内核参数后添加,如,(1280x800 (+5120), 24 bits)
[simonsun@magic ~]$ sudo cat /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/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=0
#splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-194.8.1.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-194.8.1.el5 vga=0x0361 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-194.8.1.el5.img
重启后,控制台的分辨率就变成和设置度vga对应的的一样了,字体不会很大也不会很小。
我的做法:
参照上面两篇改为家乐vga=771 quite nomodeset