Chinaunix首页 | 论坛 | 博客
  • 博客访问: 477066
  • 博文数量: 100
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 955
  • 用 户 组: 普通用户
  • 注册时间: 2014-11-21 09:30
文章分类

全部博文(100)

文章存档

2017年(1)

2016年(16)

2015年(83)

我的朋友

分类: 嵌入式

2015-08-17 10:03:19

原文转载自:
http://blog.csdn.net/xin_yu_xin/article/details/19546613

现象:

启动停止在如下输出不动:

[   12.868465] Adding 8384508k swap on /dev/mapper/database179--vg-swap_1.  Priority:-1 extents:1 across:8384508k FS

原因是显卡不支持高分辨率显示,解决方法:

ssh远程登录,编辑/etc/default/grub,

GRUB_CMDLINE_LINUX_DEFAULT="" 改为

GRUB_CMDLINE_LINUX_DEFAULT="nomodeset" 退出

执行update-grub

原文:

It is doing this because Ubuntu is trying to switch to a high resolution video mode for the console and your hardware isn't cooperating.

Fixing this while at the machine

When Grub2 shows up:

    Highlight the menu item for Ubuntu and press 'e'
    Go to the line where it loads the kernel and press 'End' to go to the end of the line
    Add 'nomodeset'
    Press F10 or Ctrl-X to boot it

With any luck it will boot into the login screen. This won't save that option but at least now you can edit the file for Grub2 and update it to save that option if it works. I blogged about this recently.

Fixing this for good

    Log in (ssh will probably do, if you know the machine's IP)
    Update the grub config file nano /etc/default/grub
    Find the line that starts with GRUB_CMDLINE_LINUX_DEFAULT
    Edit the line to include nomodeset, in my case, the line looked like this afterwards: GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"
    Save/exit nano
    Run update-grub
    Reboot

文档出处: />
下面是之前找到的方法,可能无效:

永久解决方法:

打开 /etc/default/grub文件,取消下面行的注释:

GRUB_DISABLE_LINUX_UUID=true

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
GRUB_DISABLE_LINUX_UUID=true

参考文档: />



我自己补充一下:
其实只要修改在/etc/default/grub中指定gfx的分辨率就行了,可以支持显示器高分辨率,我直接修改
GRUB_GFXMODE=1440x900
update-grub就行了。
阅读(2538) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~