Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2876799
  • 博文数量: 471
  • 博客积分: 10012
  • 博客等级: 上将
  • 技术积分: 5255
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-10 23:58
文章分类

全部博文(471)

文章存档

2011年(3)

2010年(61)

2009年(52)

2008年(212)

2007年(69)

2006年(74)

我的朋友

分类: LINUX

2006-08-09 13:44:30

文本模式下修改分辨率

#grub:
1: vi /boot/grub/menu.lst;
2:find the line like this:
kernel /boot/vmlinuz-2.6.8-2-686 root=/dev/hda1 ro
3:add "vga= ***" after "hda1","***"can be replaced by the number like the following table:

##################################################################
color   640x480     800x600         1024x768       1280x1024
256        769            771                  773                775
32000     784           787                  790                793
65000     785           788                  791                794
16.4M      786           789                  792                795

this method is only suitable for grub, not lilo.
i know this from the web, wish this can make sense for you.

#lilo:
如果用lilo
在tabel行下加入一行:
vga=792
771 代表 800x600x8位
791 代表 1024x768x16位
792 代表 1024x768x32位


这句话就是:
修改完/etc/lilo.conf文件后,执行/sbin/lilo 命令让这个配置文件生效。

而且,不止是修改屏幕分辨率,所有在/etc/lilo.conf中作了改动后都要执行 /sbin/lilo 才能让配置文件生效。

我的/etc/lilo.conf配置文件如下:


prompt
timeout=50
default=DOS
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
lba32

 
image=/boot/bzImage
        label=linux
        vga=771
        root=/dev/hda5
        read-only
 
image=/boot/vmlinuz-2.4.20-8.old
        label=old
        vga=771
        initrd=/boot/initrd-2.4.20-8.img
        root=/dev/hda5
        read-only
 
other=/dev/hda1
        optional
        label=DOS

阅读(2453) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~