您尚未登录。

#1 2024-01-02 11:57:21

vvlaw
会员
注册时间: 2021-08-03
帖子: 37

进不了系统 重装grub遇到了问题.

root@archiso
# mount /dev/nvme©n1p5 /mnt
root@archiso
~ # mount /dev/nvmen1p1 /boot

root@archiso " # arch-chroot /mnt

Croot@archiso /1# sudo grub-install -target=×85_54-efi -efi-directory=/boot bootloader-id-Archl inux

Installing for x85_64 eft platform.

grub-install: error: /boot doesn't look like an EFI partition.
Croot@archiso /1# 1s /boot

efi
grub
initramfs-linux-fallback.img initramfs-linux.img vmlinuz-linux

Croot@archiso /1# mount /dev/nvmeOn1p1 /boot

Croot@archiso /1# sudo grub-install -target=×86_54-efi --efi-directory=/boot —bootloader-id-Archlinux

Installing for ×86_64 efi platform,

Could not add entry to BootOrder: Read-only file system

grub-install: error: efibootmr failed to register the boot entry: No such device or address.

离线

#2 2024-01-02 13:07:08

Mr.I
路人丙
所在地: Kerbal
注册时间: 2015-08-29
帖子: 308

Re: 进不了系统 重装grub遇到了问题.

ESP 的问题,要么是你的 ESP 没做对,要么是你的 ESP 挂载失败了

如果你确认你想挂载到 /boot 的那个分区是你的 ESP 的话,那么,检查以下几项:

1、这个分区的文件系统格式
2、mount 是否成功执行
3、挂载后的 /boot 目录是否可写

离线

#3 2024-01-02 15:50:50

vvlaw
会员
注册时间: 2021-08-03
帖子: 37

Re: 进不了系统 重装grub遇到了问题.

谢谢!可能是因为在chroot之前mount的缘故.

现在grub可以认到linux了

可是重启卡在这里了

/dev/nvmen1p5: clean, 452029/2943360 files, 8345954/11775977 blocks


CFAILED] Failed to mount Mount unit for bare, revision 5.
[FAILED]
Failed
to mount Mount unit
for core18, revision 2597.
[FAILED]
Failed
to mount Mount unit
for core20, revision 1822.
[FAILED]
Failed to mount
Mount
unit
for gnome-3-28-1804, revision 161.
[FAILED]
Failed to mount
Mount
unit
for gtk-common-themes, revision 1534.
[FAILED]
Failed to mount
Mount
unit
for gtk-common-themes, revision 1535.
[FAILED]
Failed to mount
Mount
unit
for motrix, revision 18.
[FAILED]
Failed to mount
Mount
unit
for mpgain, revision 52.
[FAILED]
Failed to mount
Mount
unit
for notion-snap, revision 14.
CFAILED]
Failed to mount
Mount
unit
for notion-snap, revision 16.
CFAILED]
Failed to mount
Mount
unit
for snapd, revision 18357.
CFAILED]
Failed to mount Mount
unit
for szyszka, revision 144.

Failed to mount
Mount
unit for termius-app, revision 135.
[FAILED]
Failed
to mount
Mount
unit for termius-app, revision 146.

[FAILED] Failed to mount /boot.



[DEPEND] Dependency failed for Local File Systems.


"journalctl -xb" to view
You are in emergency mode. After logging in, type system logs, "systemctl reboot" to reboot, or "exit" to continue bootup.
Give root password for maintenance (or press Control-D to continue): -


接着系统就挂了,按什么都没反应.

离线

#4 2024-01-02 16:04:07

Mr.I
路人丙
所在地: Kerbal
注册时间: 2015-08-29
帖子: 308

Re: 进不了系统 重装grub遇到了问题.

fstab 写错了吧

离线

#5 2024-01-02 16:42:12

vvlaw
会员
注册时间: 2021-08-03
帖子: 37

Re: 进不了系统 重装grub遇到了问题.

fstab是没有问题的。

胡乱搞了一通,居然可以进了。

不过之前 mkfs 过 boot的盘,好像把windows 的引导文件给删除了。。

现在os-prober也找不到win,还有办法可以找到win的引导吗?

离线

页脚