0, 用gparted压缩一下磁盘空间,装了双Linux系统之后,以前用的Ubuntu进不去系统了.
1 | 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. |
1, 使用U盘启动ubuntu镜像,进入系统后选择试用.
打开终端
1 | sudo fdisk -l |
2, 挂载记录下的分区标记
1 | sudo mount /dev/sda2 /mnt |
3, 重新安装并生成grub信息
1 | sudo grub-install --boot-directory=/mnt/boot --bootloader-id=ubuntu --target=x86_64-efi --efi-directory=/mnt/boot/efi |
4, 重启系统即可正常引导
1 | shutdown -r now |