文章目录
Windows 10
联想台式机自带的window10系统。
Ubuntu 18.04 LTS
安装过程具体参考 https://blog.youkuaiyun.com/qq_43106321/article/details/105361644
FAQ
1. Ubuntu系统安装完,重启后进入Grub命令行界面,提示找不到系统。
参考 https://blog.youkuaiyun.com/wh357589873/article/details/51167830
以下命令在linux中重装GRUB
sudo -s
#where sdb3 is my ubuntu root partition
mount /dev/sdb3 /mnt
mount -t proc none /mnt/proc
mount -t sysfs none /mnt/sys
mount -o bind /dev /mnt/dev
mount -o bind /tmp/ /mnt/tmp
# chroot into your ubuntu installation
chroot /mnt
# remove all those grub efi packages
apt-get remove --purge grub-efi-amd64 grub-efi-amd64-bin
# and re-install grub with the bios (non-efi) packages only
apt-get --reinstall install grub-common grub-pc
# if there is an error repeat the setup via:
grub-install --recheck /dev/sda
然后重启系统,即可进入Ubuntu。
2. 安装Ubuntu双系统后,找不到Windows启动项。
参考 https://www.cnblogs.com/sundahua/p/12170942.html
打开终端,执行下面的命令,更新Grub
sudo update-grub
重启系统后,在进入系统前会显示GRUB系统选择界面,里面有Windows系统选项。
3. 怎么修改Grub默认启动的操作系统
参考 https://blog.youkuaiyun.com/csdnhhxxttxs/article/details/104106270
- 查看操作系统索引
在Grub界面,观察操作系统的排列顺序,记下需要默认启动的操作系统索引。我的Ubuntu是第一个,索引为0;windows10 是第五个,索引为4。 - 修改配置文件
sudo vim /etc/default/grub
将默认启动的操作系统索引改为需要默认启动的操作系统索引,GRUB_DEFAULT=0(0为ubuntu启动)改为GRUB_DEFAULT=4(4为Window10启动)
2. 更新Grub
sudo update-grub2
- 重启系统
reboot