ubuntu开机进入grub模式
有人开机突然进入到grub下这还不是救援模式,所以啥命令都没有,ls pwd没有。然后想到看一下是不是fstab挂载的问题,发现cat还可以用。有人说这是rescue,其实不是。normal可以切换到系统引导但是这时候突然图形挂了,F1切到字符,有重新安装了字符。接着需要修复grub了/etc/default/grub找一个正常的复制一份然后重新安装一下grubWelcome to Ubuntu
·
有人开机突然进入到grub下

这还不是救援模式,所以啥命令都没有,ls pwd没有。然后想到看一下是不是fstab挂载的问题,发现cat还可以用。
有人说这是rescue,其实不是。normal可以切换到系统引导

但是这时候突然图形挂了,F1切到字符,有重新安装了字符。
接着需要修复grub了
/etc/default/grub
找一个正常的复制一份
然后重新安装一下grub

Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 5.11.0-27-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
269 updates can be applied immediately.
140 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
Your Hardware Enablement Stack (HWE) is supported until April 2025.
Last login: Thu Feb 10 03:00:39 2022 from 10.157.138.11
redhat@redhat-virtual-machine:~$
redhat@redhat-virtual-machine:~$ cat /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_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
sudo grub-install boot分区
reboot就好了
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐

所有评论(0)