linux adding swap on,ubuntu14.04 adding swap on /dev/mapper 停住不动

原文转载自:

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就行了。

阅读(1855) | 评论(0) | 转发(0) |

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值