Ubuntu黑屏无法登录

今天公司台式机断电重启后,在登录之前黑屏进不去了.搞了好一会解决了,记录一下过程:

  1. 使用e按键进入grub
  2. quiet splash替换为nomodset
  • nomodset The newest kernels have moved the video mode setting into the kernel. So all the programming of the hardware specific clock rates and registers on the video card happen in the kernel rather than in the X driver when the X server starts.. This makes it possible to have high resolution nice looking splash (boot) screens and flicker free transitions from boot splash to login screen. Unfortunately, on some cards this doesn’t work properly and you end up with a black screen. Adding the nomodeset parameter instructs the kernel to not load video drivers and use BIOS modes instead until X is loaded.
  • quiet splash The splash (which eventually ends up in your /boot/grub/grub.cfg ) causes the splash screen to be shown.

At the same time you want the boot process to be quiet, as otherwise all kinds of messages would disrupt that splash screen.

Although specified in GRUB these are kernel parameters influencing the loading of the kernel or its modules, not something that changes GRUB behaviour. The significant part from GRUB_CMDLINE_LINUX_DEFAULT is CMDLINE_LINUX

3.ctrl alt F1(open TTY)或是alt F2开启新的终端就能以命令行的方式登录了.

  1. 运行journalctl -xesystemctl status NetworkManager.service得知错误的原因是因为磁盘满了.清除磁盘空间重启可以正常进入了

  2. 系统启动后NetworkManager.service无法启动(显示一直重启),进一步排查发现/etc/NetworkManager/NetworkManager.conf配置格式不对(不知道什么时候被更改了) 将

1
2
3
4
5
6
7
8
main]
plugins=ifupdown,keyfile

[ifupdown]
managed=true

[device]
wifi.scan-rand-mac-address=n

改为

1
2
3
4
5
6
7
8
[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=true

[device]
wifi.scan-rand-mac-address=n
Licensed under CC BY-NC-SA 4.0
Built with Hugo
主题 StackJimmy 设计