zoukankan      html  css  js  c++  java
  • Ubuntu启动停止在checking battery state...

      Ubuntu在“checking battery state...”处停止了,出现这种现象的原因可能有很多种。笔者遇到的是其中的一种。

    情景描述:

      笔者此前将Ubuntu的图形启动方式修改为了字符界面启动,可见文章如何让ubuntu启动时打印字符信息----字符启动。之后,Ubuntu的确可以以字符方式启动,但是却不能完整的启动,也就是不能运行到登录界面处。

    原因查找:

        经查找发现在我实现字符启动的操作过程中,出现了一个不起眼的失误。记录如下:

      /etc/default/grub文件的内容如下:

    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.
    # For full documentation of the options in this file, see:
    #   info -f grub -n 'Simple configuration'

    GRUB_DEFAULT=0
    GRUB_HIDDEN_TIMEOUT=0
    GRUB_HIDDEN_TIMEOUT_QUIET=true
    GRUB_TIMEOUT=10
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    #GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

    #GRUB_CMDLINE_LINUX_DEFAULT="text"
    GRUB_CMDLINE_LINUX=""

      可以看到我在修改grub文件的时候,不仅将"quiet splash"注释掉,而且把用来替换它的"text"也注释掉了,以至于Ubuntu不知道以何种方式展开启动界面。

    解决过程:

      纠正/etc/default/grub文件的内容如下:

    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.
    # For full documentation of the options in this file, see:
    #   info -f grub -n 'Simple configuration'

    GRUB_DEFAULT=0
    GRUB_HIDDEN_TIMEOUT=0
    GRUB_HIDDEN_TIMEOUT_QUIET=true
    GRUB_TIMEOUT=10
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    #GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

    GRUB_CMDLINE_LINUX_DEFAULT="text"
    GRUB_CMDLINE_LINUX=""

      重新更新/boot/grub/grub.cfg

    #update-grub

      然后重启。

    #reboot

    参考资料:如何让ubuntu启动时打印字符信息----字符启动

  • 相关阅读:
    如何在iTerm2中配置oh my zsh?
    sublime中格式化jsx文件
    ES6 new syntax of Literal
    ES6 new syntax of Rest and Spread Operators
    How to preview html file in our browser at sublime text?
    ES6 new syntax of Default Function Parameters
    ES6 new syntax of Arrow Function
    七牛云2018春招笔试题
    Spring-使用注解开发(十二)
    Spring-声明式事物(十一)
  • 原文地址:https://www.cnblogs.com/amanlikethis/p/4245657.html
Copyright © 2011-2022 走看看