我正在尝试将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
这是我的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 [ "
我正在使用LVM在软件RAID 0上运行Debian。我试着让Xen工作,但是grub拒绝在里面启动。我按照下面的说明安装了Xen:http://wiki.debian.org/Xen
到达时
multiboot /boot/xen-4.1-amd64.gz placeholder dom0_mem=4096M
我得到了
error: couldn't open file
紧接着是
error: you need to load the multiboot kernel first
不过这份文件没什么问题。以下是Xen的grub.cfg条目:
menuentry '
我已经确认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
我的文件看起来很好,但我不知道Windows操作系统发生了什么。这是我在引导时的巴斯丁信息。我试着重新安装grub,并通过磁盘,似乎不起作用。今后如何避免这一错误?
来自gedit /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/grub.d/00_header ###
我在LFS中构建了linux内核,grub可以工作,但是当我加载linux内核时,屏幕就变黑了,之后什么也不会发生。我该怎么办?如果这件事重要的话,我在笔记本电脑上。下面是grub配置:
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod part_gpt
insmod ext2
set root=(hd0,2)
if loadfont /boot/grub/fonts/unicode.pf2; then
set gfxmode=auto
insmod all_video
terminal_output
我在一个干净的驱动器上安装了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很陌生,不知道它的用途
我有一个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
当我在内核中使用insmod data/linux/openvswitch.ko插入内核模块时出现了错误。错误显示如下所示:
insmod: error inserting 'datapath/linux/openvswitch.ko': -1 Unknown symbol in module
dmesg | tail的输出是:
openvswitch: Unknown symbol ipv6_ext_hdr
有人知道这件事吗?
我的内核是:
Linux version 2.6.32_1-14-0-0 (gcc version 4.4.4 20100726 (Red Hat 4
我根据此链接更改了我的macbook上的引导顺序。
但是..。现在我在启动Mac OS X Yosemite时遇到了问题。我收到错误消息:找不到错误文件‘/mach_kernel’。等如何修复它?
提前感谢!
附言:问题可能不在grub.cfg中
这是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 /et
在使用1&1运行CentOS7的专用服务器上重置根密码有一点问题。
能够通过终端访问GRUB,并且可以打开下面的内容,但是这看起来与很多例子不同。
setparams 'CentOS Linux, with Linux 3.10.0-327.28.2.el7.x86_64'
load_video
set gfxpayload=keep
insmod gzio
我最近在一台带有Ubuntu和XP的机器上安装了ArchBang。我从Ubuntu运行了update,它找到了新的安装并创建了一个条目。但是,当我试图引导它时,我得到:
error: out of disk
error: you need to load kernel first
我尝试过几种方法,包括在40_custom中添加一个新条目,但是没有什么改变。下面是我拥有的条目:update找到的默认条目
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "ArchBang Linux (on /dev/sda4)" {
i
我阅读了Sed的手册,但是我仍然觉得它很混乱,所以我希望在这里找到一些答案:)
我需要使用bash脚本编辑一个文件。
我需要在grub.cfg中的一个特定行之后放置几行代码。为了显示一个示例,我将添加5个新添加的行。
原件:
if loadfont /boot/grub/font.pf2 ; then
set gfxmode=auto
insmod efi_gop
insmod efi_uga
insmod gfxterm
terminal_output gfxterm
fi
set menu_color_normal=white/black
set
我正在尝试将内核升级到4.19,因为我需要运行一些需要它的基准测试(打开一些内核选项)。我完全不明白为什么这不管用。我已经完成了两个ubuntu 18清理安装,下载了4.19内核,做了oldconfig (或olddefconfig),安装了模块和内核本身。重新启动后,输出内容如下
Loading Linux 4.19.237
Loading initial ramdisk
error: out of memory
Press any key to continue
按下键后,它只显示初始引导消息和错误堆栈:
📷
如果我重新启动,较旧的(4.15)内核仍然启动并运行良好。
grub.cfg上的
我目前正在使用NVME 500 an的SSD在一台新机器上配置gentoo。
我重新启动我的计算机,选择我想要启动的磁盘,grub2初始化,and然后,我得到的错误如下:
!!Block device UUID="9a89bdb4-8f36-4aa6-a4c7-831943b0985c" is not a valid root device...
!!Could not find the root block device in UUID="9a89bdb4-8f36-4aa6-a4c7-831943b0985c"
Please specify another