我正在尝试将Ubuntu12.04LTS的内核从3.4.0更新到最新的可用版本,但是无论我做什么,uname -r都会继续返回3.4.0。我也多次尝试重新启动我的系统,但没有效果。
sudo update-grub的输出如下:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.5.0-19-generic
Found initrd image: /boot/initrd.img-3.5.0-19-generic
Found linux image: /boot/vmlinuz-3.4.0-030400-generic-pae
我最初在我的计算机上有一个Linux交换分区,我已经删除了这个分区。当我试图引导时,我会得到错误。
ERROR: resmue: hibernation device 'UUID=f5eea.....andsoon' not found
它引用了丢失的交换分区。因此,我在/etc/fstab文件(通过一个Live棒)中用相应的UUID (并写着“交换”)注释掉了这一行。现在我的PC确实启动了,但是在启动过程中的一小段时间里,我仍然得到了相同的错误消息,以及和以前一样的UUID。我甚至不知道这个UUID还在哪里存储在我的电脑上。会发生什么事?
我在Manjaro Linux 5.
这是我的arch的grub.cfg文件的内容。
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "
我有我的grub菜单显示在启动时,它不应该。我试过了下面是,但还是不能用。这里供参考的是grub.cfg文件的内容:
# 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_TIMEOU
我刚从lilo转到grub2,我第一次尝试kernel panic - not syncing vfs unable to mount root fs on unknown block(0 0)失败了。事实证明,问题是根分区是以UUID而不是设备名称的形式指定的。解决方案是取消GRUB_DISABLE_LINUX_UUID=true在/etc/default/grub中的注释。
原始的自动生成的/boot/grub/grub.conf包含一些UUID条目和一些/dev条目。
更新-grub如何在UUID和/dev rootfs之间进行选择,即为什么有时是UUID,有时不是?
是什么使UUID无
我有一个Surface 4,linux内核(github)提供了比普通内核更好的硬件支持,但不幸的是,update-grub没有识别它。
我能够在/etc/grub.d/40_custom/中放置一个条目,但每次内核更新时,我都必须手动执行。
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful n
我现在的硬盘正在失败,我用dd支持它。在将映像还原到新的硬盘上之后,也使用dd,新系统将不会启动。它通过BIOS初始化,然后屏幕变黑,并通过BIOS重新启动和返回。
这是旧的HDD设置:
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 103426047 51200000 83 Linux
/dev/sda3 103
我已经确认USB上有一个适当的Ubuntu可引导文件命令。USB插在笔记本电脑上。grub菜单在启动时会自动显示。
问题是没有从USB引导的选项。
现在我想编辑grub.cfg,使它包含USB引导选项。从这里我该怎么做?
另外,/boot/grub/grub.cfg:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc
/usr/share/grub/default/grub和/etc/default/grub的用途是什么?我应该编辑哪一个使grub的行为有所不同?(如果您知道,两个不同的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
由于这只虫子,我的计算机无法用load_video或gfxmode启动
如何编辑grub以删除这2行?
$ more /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
我有2个ESP,这可能是问题所在,但我认为可以修复,因为我可以使用GRUB集手动启动。不管怎么说这是我的安排。当我在其他机器上重新输入时,请忽略某些可能的错误:
fdisk -l
/dev/sda1 Windows recovery
/dev/sda2 EFI system
/dev/sda3 Microsoft reserved
/dev/sda4 Microsoft basic data
/dev/sda5 Windows recovery
/dev/sda6 EFI System (linux)
/dev/sda7 Linux fs
linux
当我跑的时候
sudo update-grub
我得到以下错误:
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: #: not found
这是我的/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 'Sim
我必须在grub菜单中按回车键!早些时候,10秒计时器在那里。但是现在,我必须按enter (没有计时器)。怎么修理呢?
我的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"
当我运行sudo update-grub2或sudo update-grub时
我得到了回应
资源文件`/etc/default/grub‘/usr/sbin/: 1: /etc/default/grub: If: not
但是,我的/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, se
我已经试过几样东西了。这是我的/etc/默认屏幕。这不管用。它仍然带我到grub屏幕,并停留在那里,直到操作系统被选中。我不想让屏幕出现。我想直接进入windows 7,任何信息都很好。
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
GRUB_DEFAULT="Windows 7 (loader) (on /dev/sda3)"
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=tru
我有一个纯Ubuntu笔记本电脑(没有双重启动)。今天,当我重新开始的时候,突然出现了grub菜单。在我选择Ubuntu之后,它会像往常一样引导。所以我的问题是:
为什么它突然出现了?
我怎么把它藏起来?
编辑: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 g
我正在尝试更新用于KGDB设置的目标m/c grub.cfg文件,但是在启动m/c时,它被完全挂起,而不是请求/等待远程gdb连接。以下是我加入的记项:
menuentry 'Ubuntu, with Linux 2.6.32-24-kgdb' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid
我今天运行了sudo apt-get dist-upgrade,它安装了linux-image 3.13.0-68。
这似乎破坏了一些东西,因为服务器不会启动。
但是,如果我选择了以前的版本,比如3.13.0-67,那么服务器就可以启动了。
默认情况下,我如何使它从3.13.0-67开始?
如果下次有内核更新,我还可以选择升级吗?
根据我所读到的,一个人显然可以编辑/etc/default/grub,但我并没有把我的头绕在它周围。
以下是该文件的内容,以防有帮助:
# If you change this file, run 'update-grub' afterwards t
我希望grub(2)不用等待就可以在我的主操作系统上启动。每次我启动电脑时,要么按<Enter>键,要么等10秒。grub是否可以在没有任何提示的情况下直接引导我的默认操作系统?如果是,怎么做?
关于信息,我有带有肉桂桌面的linux薄荷。
这里是我的/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 fi
我在一个干净的驱动器上安装了Linux 20,但是我一直在启动时获得这个终端。
GNU GRUB version 2.02
Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists possible
device or file completions.
grub> _
我对Linux很陌生,不知道它的用途
更新-grub返回:
/usr/sbin/grub-mkconfig: 12: /etc/default/grub: GRUB_CMDLINE_LINUX=acpi_osi=Linux acpi_backlight=vendor: not found
此外,apt-get升级命令没有成功执行,它以以下消息结束:
/var/lib/dpkg/info/grub-pc.config: 12: /etc/default/grub: GRUB_CMDLINE_LINUX=acpi_osi=Linux acpi_backlight=vendor: not found
dpkg: error proc
所以我习惯了Ubuntu和windows 10的双重引导,现在我被推荐到Ubuntu,所以我删除了win分区并运行了update-grub,但是grub菜单还没有消失。windows的条目已经消失,但现在它显示了Ubuntu、ubuntu的高级选项、memtest和memtest+。这是正常的吗?这不是该走了吗?cat /etc/default/grub的输出:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documenta
我的问题是,每当我启动笔记本电脑时,它都会显示启动菜单,我必须选择我想使用的Ubuntu。我搜索了网络,发现其他人也有同样的问题,但是他们把计时器设置为0的解决方案对我不起作用。
我试过的是:
sudo nano /etc/default/grub
GRUB_TIMEOUT=0
然后我运行了sudo update-grub。
我还是有问题的。我运行了Ubuntu18.04.2的新安装。
该文件如下所示:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
Ubuntu 20.10
计算机启动到grub提示。我可以像这样手动启动我的操作系统,没问题:
grub> linux (hd0,gpt2)/boot/vmlinuz-5.8.0-33-generic root=/dev/sda2
grub> initrd (hd0,gpt2)/boot/initrd.img-5.8.0-33-generic
grub> boot
它就在里面(我现在就在上面)。我一辈子都记不起怎么把这个自动化了。我也不知道它为什么一开始就停止工作。
我试过了修复工具,但没有效果。
这是/etc/缺省/grub
# If you change this fi
我刚刚将Ubuntu16.04升级到18.04,重新启动后它显示
Gave up waiting for suspend/resume device
/: clean, 293537/3932160 files, 4067550/15719936 blocks
cryptsetup (md5_crypt): set up successfully
然后它就不会登录页面了。
即使它挂在这里,我也可以在计算机中使用ssh,也可以访问文件夹和文件。(一个问题是终端不具备插补和显示历史命令的能力)
我对这个错误的快速搜索告诉我们,这个问题与交换内存有关。让我在这里分享一些命令输出和一些我已经尝试过但没
所以,我有一个双引导,只是打开了窗口分区,然后摆脱了windows的启动文件,更新了grub,现在我的PC引导直接进入了ubuntu。但是,我仍然希望有grub选项,这样我就可以在内核之间切换,并且我想使它永久化。
我读过关于这个问题的文章,我发现的是建议在grub文件中注释下面一行:
GRUB_HIDDEN_TIMEOUT=0
但是,文件中没有这样的行,其中唯一的内容是:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full doc
我的GRUB2 ver2.02~beta2-36ubuntu3.4不会自动引导到Ubuntu。它一直出现在GRUB选择屏幕上,尽管我只列出了一个OS。我自己尝试过许多解决方案,但无法直接引导它进入Ubuntu。我尝试修改我的/boot/default/grub.cfg文件中的一些值,其当前设置如下:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file