一:增加 16 17 两行
root@ubuntu10:/etc# cat /etc/initramfs-tools/modules -n
1 # List of modules that you want to include in your initramfs.
2 #
3 # Syntax: module_name [args ...]
4 #
5 # You must run update-initramfs(8) to effect this change.
6 #
7 # Examples:
8 #
9 # raid1
10 # sd_mod
11 # Beginning of the block added by the VMware software
12 INITRD_MODULES="vmxnet3
13 vmw_pvscsi
14 "
15 # End of the block added by the VMware software
16 fbcon
17 vesafb
二。修改27行,禁用vesafb
root@ubuntu10:/etc# cat modprobe.d/blacklist-framebuffer.conf -n
1 # Framebuffer drivers are generally buggy and poorly-supported, and cause
2 # suspend failures, kernel panics and general mayhem. For this reason we
3 # never load them automatically.
4 blacklist aty128fb
5 blacklist atyfb
6 blacklist radeonfb
20 blacklist rivafb
21 blacklist s1d13xxxfb
22 blacklist savagefb
23 blacklist sisfb
24 blacklist sstfb
25 blacklist tdfxfb
26 blacklist tridentfb
27 #blacklist vesafb
28 blacklist vfb
29 blacklist viafb
30 blacklist vt8623fb
三.修改75 行 加 vga=0x317 设置分辩率:
68 ### BEGIN /etc/grub.d/10_linux ###
69 menuentry 'Ubuntu, with Linux 2.6.35-27-generic' --class ubuntu --class gnu-linux --class gnu --class os {
70 recordfail
71 insmod part_msdos
72 insmod ext2
73 set root='(hd0,msdos1)'
74 search --no-floppy --fs-uuid --set 1325507f-ff43-4fc4-b71d-9273f64fa6d4
75 linux /boot/vmlinuz-2.6.35-27-generic root=UUID=1325507f-ff43-4fc4-b71d-9273f64fa6d4 ro quiet splash vga=0x317
76 initrd /boot/initrd.img-2.6.35-27-generic
77 }
78 menuentry 'Ubuntu, with Linux 2.6.35-27-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
四。执行命令:update-initramfs -u 生成新的镜像文件。重启
阅读(835) | 评论(0) | 转发(0) |