[Topic DIscussion] 我之前搞坏grub了,现在不能直接进去桌面
Tofloor
poster avatar
Haoer
deepin
2022-03-08 23:49
Author

我之前搞坏grub了,现在不能直接进去桌面,请各位大神指点一二,用live也修复不了该怎么做呢?

Reply Favorite View the author
All Replies
andktan
deepin
2022-03-09 01:24
#1

试试这样行吗

sudo dpkg --configure -a && sudo apt dist-upgrade -y

Reply View the author
thepoy
deepin
2022-03-09 03:53
#2

下面的代码不到最后不建议尝试。

检查一下 fstab 文件是否正常,如果不正常需要生成新的 fstab。
image.png

不进入桌面,在tty运行:

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Deepin
grub-mkconfig -o /boot/grub/grub.cfg
reboot

如果tty也进不去,可以尝试用live挂载deepin的根目录到/mnt,efi分区挂载到/mnt/boot/efi,然后执行:

chroot /mnt

最后再执行上面的命令重新生成grub。

Reply View the author
心平气和
deepin
2022-03-09 23:33
#3
thepoy

下面的代码不到最后不建议尝试。

检查一下 fstab 文件是否正常,如果不正常需要生成新的 fstab。
image.png

不进入桌面,在tty运行:

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Deepin
grub-mkconfig -o /boot/grub/grub.cfg
reboot

如果tty也进不去,可以尝试用live挂载deepin的根目录到/mnt,efi分区挂载到/mnt/boot/efi,然后执行:

chroot /mnt

最后再执行上面的命令重新生成grub。

--bootloader-id=ArchLinux

Reply View the author
thepoy
deepin
2022-03-10 23:28
#4
心平气和

--bootloader-id=ArchLinux

这个可以随便改,在用deepin的话就改成deepin

Reply View the author