Open cndaqiang opened 4 years ago
开机后,更新grub
root@girl:/home/cndaqiang# update-grub2
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.15.0-20-generic
Found initrd image: /boot/initrd.img-4.15.0-20-generic
Found Windows Boot Manager on /dev/sdb1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
done
root@girl:/home/cndaqiang# grub-install /dev/sda
Installing for x86_64-efi platform.
Installation finished. No error reported.
参考 https://blog.csdn.net/zhouzhiyao960211/article/details/100529225
使用
ls
可以查看有哪些硬盘分区ls (hd0,xxN)/
等价于ls (hd0,N)/
(hd0,N)
对应/devsdaN
, 对应N=1,2,3
(hd1,N)
应该对应/dev/sdbN
如图中,经过多次ls
发现,我的根目录在(hd0,3)
即/dev/sda3
使用即可正常启动![28427673](https://user-images.githubusercontent.com/26620270/74499622-5103b780-4f1f-11ea-93cf-4a6b165871b4.jpg)
同时,我在
(hd0,2)
中也发现了引导文件 用也能启动,但是启动后,类似进入了单用户模式,内核也不一样
![276391862](https://user-images.githubusercontent.com/26620270/74500019-8ceb4c80-4f20-11ea-9eec-6d458817b93d.jpg)