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启动时打印字符信息----字符启动

  • 相关阅读:
    (五)SpringCloud学习系列-构建部门微服务消费者Module
    (四)SpringCloud学习系列-构建部门微服务提供者Module
    (三)SpringCloud学习系列-Rest微服务构建
    git提交 显示作者名不是自己
    linux一些常见命令
    支付宝退款demo
    ffmpeg截取视频
    excel导入数据到mysql
    二分法与冒泡排序
    mysql的级联删除
  • 原文地址:https://www.cnblogs.com/amanlikethis/p/4245657.html
Copyright © 2011-2022 走看看