您尚未登录。

#1 2024-02-13 12:18:12

lyxzcx
会员
注册时间: 2021-08-13
帖子: 23

[已解决]更新后引导损坏

用yay -Syu更新后进不去系统,引导能正常显示但是选择arch进入后直接黑屏,尝试用u盘重新安装引导修复无果,记录如下。请问现在该如何解决?

[root@archiso /]# grub install --target=x86_ 64-efi --efi-directory=/boot --boot loader id=Arch
lnstalling for x86_64-efi platform .
Installation finished. No error reported.
[root@archiso /]# grub mkconfig -o /boot/grub/grub .cfg
Generating grub configuration file
Found thene: /usr/share/grub/thenes/Tela/thene .txt 
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/ initranfs- linux. img
Found limux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initranfs- linux . img
Warning: 0S-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
ERROR: mkdir /var/lock/dmraid
grub-probe: error: cannot find a GRUB driue for /dev/sda1. Check your device.map.
Warning: 0S-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
grub-probe: error: cannot find a GRUB driue for /dev/sda1. Check your device.map.
Adding boot menu entry for UEFI Firmware Settings .. .
Found Linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/ initranfs- linux. img
Adding boot menu entry for UEFI Firmware Settings
done
rootearchisd /1#

最近编辑记录 lyxzcx (2024-02-14 13:31:02)

离线

#2 2024-02-13 18:20:16

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,470
个人网站

Re: [已解决]更新后引导损坏

你这命令怎么这么多莫名其妙的空格?

离线

#3 2024-02-13 20:12:38

lyxzcx
会员
注册时间: 2021-08-13
帖子: 23

Re: [已解决]更新后引导损坏

依云 说:

你这命令怎么这么多莫名其妙的空格?

拍照ocr识别的

离线

#4 2024-02-13 20:20:38

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,470
个人网站

Re: [已解决]更新后引导损坏

不如贴图,至少不会有错。

离线

#5 2024-02-13 22:50:03

lyxzcx
会员
注册时间: 2021-08-13
帖子: 23

Re: [已解决]更新后引导损坏

依云 说:

不如贴图,至少不会有错。

花了点时间把完整log传出来了

Generating grub configuration file ...
#
# 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 [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 2d053c4d-84be-4b49-939f-1f543283308b
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_input console
terminal_output gfxterm
Found theme: /usr/share/grub/themes/Tela/theme.txt
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 2d053c4d-84be-4b49-939f-1f543283308b
insmod gfxmenu
loadfont ($root)/usr/share/grub/themes/Tela/dejavu_32.pf2
loadfont ($root)/usr/share/grub/themes/Tela/dejavu_sans_12.pf2
loadfont ($root)/usr/share/grub/themes/Tela/dejavu_sans_14.pf2
loadfont ($root)/usr/share/grub/themes/Tela/dejavu_sans_16.pf2
loadfont ($root)/usr/share/grub/themes/Tela/dejavu_sans_24.pf2
loadfont ($root)/usr/share/grub/themes/Tela/dejavu_sans_48.pf2
loadfont ($root)/usr/share/grub/themes/Tela/terminus-12.pf2
loadfont ($root)/usr/share/grub/themes/Tela/terminus-14.pf2
loadfont ($root)/usr/share/grub/themes/Tela/terminus-16.pf2
loadfont ($root)/usr/share/grub/themes/Tela/terminus-18.pf2
insmod jpeg
insmod png
set theme=($root)/usr/share/grub/themes/Tela/theme.txt
export theme
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/01_grub-customizer_menu_color_helper ###
### END /etc/grub.d/01_grub-customizer_menu_color_helper ###

### BEGIN /etc/grub.d/10_linux ###
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-2d053c4d-84be-4b49-939f-1f543283308b' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod fat
	search --no-floppy --fs-uuid --set=root 2814-8224
	echo	'Loading Linux linux ...'
	linux	/vmlinuz-linux root=UUID=2d053c4d-84be-4b49-939f-1f543283308b rw  loglevel=3 systemd.unified_cgroup_hierarchy=false ibt=off quiet
	echo	'Loading initial ramdisk ...'
	initrd	/intel-ucode.img /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-2d053c4d-84be-4b49-939f-1f543283308b' {
	menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-2d053c4d-84be-4b49-939f-1f543283308b' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		search --no-floppy --fs-uuid --set=root 2814-8224
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=UUID=2d053c4d-84be-4b49-939f-1f543283308b rw  loglevel=3 systemd.unified_cgroup_hierarchy=false ibt=off quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux.img
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_linux_proxy ###
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img




menuentry "Arch Linux" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-2d053c4d-84be-4b49-939f-1f543283308b' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod fat
	search --no-floppy --fs-uuid --set=root 2814-8224
	echo	'Loading Linux linux ...'
	linux	/vmlinuz-linux root=UUID=2d053c4d-84be-4b49-939f-1f543283308b rw  loglevel=3 systemd.unified_cgroup_hierarchy=false ibt=off quiet
	echo	'Loading initial ramdisk ...'
	initrd	/intel-ucode.img /initramfs-linux.img
}
### END /etc/grub.d/10_linux_proxy ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
  insmod bli
fi
### END /etc/grub.d/25_bli ###

### BEGIN /etc/grub.d/30_os-prober ###
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
ERROR: mkdir /var/lock/dmraid
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_os-prober_proxy ###
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.

### END /etc/grub.d/30_os-prober_proxy ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
Adding boot menu entry for UEFI Firmware Settings ...
if [ "$grub_platform" = "efi" ]; then
	fwsetup --is-supported
	if [ "$?" = 0 ]; then
		menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
			fwsetup
		}
	fi
fi
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/33_linux_proxy ###
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
submenu "Advanced options for Arch Linux"{
menuentry "Arch Linux, with Linux linux" --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-2d053c4d-84be-4b49-939f-1f543283308b' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod fat
		search --no-floppy --fs-uuid --set=root 2814-8224
		echo	'Loading Linux linux ...'
		linux	/vmlinuz-linux root=UUID=2d053c4d-84be-4b49-939f-1f543283308b rw  loglevel=3 systemd.unified_cgroup_hierarchy=false ibt=off quiet
		echo	'Loading initial ramdisk ...'
		initrd	/intel-ucode.img /initramfs-linux.img
}
}
### END /etc/grub.d/33_linux_proxy ###

### BEGIN /etc/grub.d/34_linux_xen ###
### END /etc/grub.d/34_linux_xen ###

### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###

### BEGIN /etc/grub.d/37_uefi-firmware ###
Adding boot menu entry for UEFI Firmware Settings ...
if [ "$grub_platform" = "efi" ]; then
	fwsetup --is-supported
	if [ "$?" = 0 ]; then
		menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
			fwsetup
		}
	fi
fi
### END /etc/grub.d/37_uefi-firmware ###

### BEGIN /etc/grub.d/38_fwupd ###
### END /etc/grub.d/38_fwupd ###

### 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 not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
done

离线

#6 2024-02-13 22:54:25

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,470
个人网站

Re: [已解决]更新后引导损坏

有点不确定你贴出来的到底是什么。但愿你的 grub.cfg 是正常的。

为什么要设置 systemd.unified_cgroup_hierarchy=false?这样容易造成问题的。

把后边的 quiet 去掉再启动看看有没有更多信息。

离线

#7 2024-02-13 23:08:47

lyxzcx
会员
注册时间: 2021-08-13
帖子: 23

Re: [已解决]更新后引导损坏

依云 说:

有点不确定你贴出来的到底是什么。但愿你的 grub.cfg 是正常的。

为什么要设置 systemd.unified_cgroup_hierarchy=false?这样容易造成问题的。

把后边的 quiet 去掉再启动看看有没有更多信息。

我用下面命令生成的log

grub-mkconfig -o /boot/grub/grub.cfg 2>&1 | tee /tmp/grub-mkconfig.log

设置 systemd.unified_cgroup_hierarchy=false这个好像是之前用docker什么的必须得这样,不然docker里用不了显卡好像,记不清楚了很久之前设置的

离线

#8 2024-02-14 13:30:46

lyxzcx
会员
注册时间: 2021-08-13
帖子: 23

Re: [已解决]更新后引导损坏

删掉"ibt=off"就一切正常了,不知道是什么问题

离线

页脚