写于2019年12月9日星期一,经过几天的反复跳坑,终于完成了双硬盘双系统的安装。对于小白的我,一下内容作为总结,也希望能够帮助有需要的人。
我的笔记本硬件配置:msi微星笔记本,4代i7,8G内存,显卡NVIDIAGTX850M,SSD256G,机械硬盘1T。
WIN7升级成WIN10
首先是将WIN7系统升级成WIN10,这个比较简单,只需要下载微软官方更新助手,可将电脑系统更新为WIN10,跟着提示走比较容易,此处不赘述。
https://www.microsoft.com/zh-cn/software-download/windows10
![28e1bfabe76f18aa661a13954ff8761e.png](https://img-blog.csdnimg.cn/img_convert/28e1bfabe76f18aa661a13954ff8761e.png)
WIN10硬盘分区
WIN10系统还是很厉害的对硬盘的管理,直接可以使用系统的工具。
右键点击桌面,此电脑,管理。
![fa003ed13f2ef45d331593a0fb0c68ac.png](https://img-blog.csdnimg.cn/img_convert/fa003ed13f2ef45d331593a0fb0c68ac.png)
点击,磁盘管理
![1b2d785a7d0e4455126b3489ec77841b.png](https://img-blog.csdnimg.cn/img_convert/1b2d785a7d0e4455126b3489ec77841b.png)
通过,添加卷,删除卷等管理磁盘,腾出来一块空闲磁盘。
![a2f171857ba0bdf592ad23a82582df9f.png](https://img-blog.csdnimg.cn/img_convert/a2f171857ba0bdf592ad23a82582df9f.png)
至此,完成了前期准备工作。
Ubuntu系统安装。
制作U盘系统盘
使用下图软件制作系统启动盘。,建议下载Ubuntu16.04版本的ISO镜像文件,制作系统启动盘。
![150dde3d4a8f1f565bc9ad80a154c73a.png](https://img-blog.csdnimg.cn/img_convert/150dde3d4a8f1f565bc9ad80a154c73a.png)
Ubuntu系统安装
msi电脑Delete键的,进入BIOS设置界面,LEGAUL模式是传统BIOS方法/UEFI模式为新式。
插入Ubuntu启动U盘,开机按住F11键,进入安装界面,依次点击“继续”,到文件挂载点设定。按CSDN设置,完成安装。
https://blog.csdn.net/levy11/article/details/85101352
![693e81a3b1abac685635f3aaa51ae2a7.png](https://img-blog.csdnimg.cn/img_convert/693e81a3b1abac685635f3aaa51ae2a7.png)
开机启动设置
双系统笔记本,启动后,会先加载SSD中WIN10系统,使用easyBCD将引导文件位置写入WIN10启动项。
![46fac981e2b1e57075dd96a6c7c45e59.png](https://img-blog.csdnimg.cn/img_convert/46fac981e2b1e57075dd96a6c7c45e59.png)
启动项选择Ubuntu后,会出现无法找到启动文件,grub通过ls检查grub位置,通过语句启动。
此时会出现问题
![5a07ff42fec7bc96da65210eb0016574.png](https://img-blog.csdnimg.cn/img_convert/5a07ff42fec7bc96da65210eb0016574.png)
1. https://jingyan.baidu.com/article/c85b7a640cd7d6003bac95f8.html参考百度经验开机错误如图:
error: file '/boot/grub/i386-pc/normal.mod' not found.
Entering rescue mode...
grub rescue>http://jingyan.baidu.com/album/c85b7a640cd7d6003bac95f8.html?picindex=1
![85c3cf5464302a96361da227661cbdf8.png](https://img-blog.csdnimg.cn/img_convert/85c3cf5464302a96361da227661cbdf8.png)
2. 先输入ls回车,查看显示的内容。如:
(hd0) (hd0,msdos14) (hd0,msdos13) (hd0,msdos12)....http://jingyan.baidu.com/album/c85b7a640cd7d6003bac95f8.html?picindex=2
![64fb5a1a22cb0b31c9d26964616a23eb.png](https://img-blog.csdnimg.cn/img_convert/64fb5a1a22cb0b31c9d26964616a23eb.png)
3. 然后找出哪个盘安装了系统,
ls (hd0,msdos1)/boot/grub
ls (hd0,msdos2)//boot/grub
...
尝试所有的,直到返回内容不再是error: unknown filesystem.为止。http://jingyan.baidu.com/album/c85b7a640cd7d6003bac95f8.html?picindex=3
![bb03a012a274cd88c70cff40866af2f9.png](https://img-blog.csdnimg.cn/img_convert/bb03a012a274cd88c70cff40866af2f9.png)
4. 如输入ls (hd0,msdos13)/boot/grub后出现了类似如下内容。即为找到了系统所在分区。
http://jingyan.baidu.com/album/c85b7a640cd7d6003bac95f8.html?picindex=4
![d3e239caaabe67ddbd2dc5ebcbb5fc57.png](https://img-blog.csdnimg.cn/img_convert/d3e239caaabe67ddbd2dc5ebcbb5fc57.png)
5. 然后依次输入如下内容:
set root=(hd0,msdos13)/boot/grub
set prefix=(hd0,msdos13)/boot/grub
insmod normal
normalhttp://jingyan.baidu.com/album/c85b7a640cd7d6003bac95f8.html?picindex=5
![14e2a1e754e2decdd7cd336f0494eb55.png](https://img-blog.csdnimg.cn/img_convert/14e2a1e754e2decdd7cd336f0494eb55.png)
6. normal执行之后即进入选择启动项的界面。可以看到除了WIN8之外还有Ubuntu Kylin和Ubuntu 13.04总共3个系统。选择启动的系统进入即可。
http://jingyan.baidu.com/album/c85b7a640cd7d6003bac95f8.html?picindex=6
![de6a82135c81dd7ab6cd1d9d6b445b69.png](https://img-blog.csdnimg.cn/img_convert/de6a82135c81dd7ab6cd1d9d6b445b69.png)
进入系统后,在终端中跟新引导文件。
进入系统,打开终端
如果正常启动,终端进行修复
# 修复grub
sudo update-grub
sudo grub-install /dev/sda
reboot #重启