{"id":174201,"date":"2020-03-10T08:18:59","date_gmt":"2020-03-10T00:18:59","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=174201"},"modified":"2020-03-25T19:50:24","modified_gmt":"2020-03-25T11:50:24","slug":"centos7-grub2-boot-option","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/centos7-grub2-boot-option.html","title":{"rendered":"\u5982\u4f55\u5728Centos7\u4e2d\u6dfb\u52a0GRUB2\u542f\u52a8\u9879"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | GRUB2\u662fCentos7\u7684\u9ed8\u8ba4\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u3002\u5b83\u53ef\u4ee5\u8f7b\u677e\u5730\u52a0\u8f7d\u6240\u6709\u7684Linux\u53d1\u884c\u7248\u548c\u5176\u4ed6\u64cd\u4f5c\u7cfb\u7edf\u3002\u5b83\u63d0\u4f9b\u4e00\u4e2a\u83dc\u5355\u663e\u793a\u6240\u6709\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002GRUB2\u5177\u6709\u9ad8\u7ea7\u7279\u6027\u4ee5\u53ca\u4e00\u4e9b\u57fa\u672c\u7279\u6027\uff0c\u4f7f\u5176\u5728\u6240\u6709Linux\u4e0a\u90fd\u6709\u6548\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u5982\u4f55\u6dfb\u52a0Windows 10\u542f\u52a8\u9879\u5230GRUB2<\/strong><\/div>\n \u88c5\u7684\u53cc\u7cfb\u7edf\uff0c\u7b2c\u4e00\u4e2a\u7cfb\u7edf\u88c5\u7684\u662fWindows 10\uff0c\u7136\u540e\u518d\u5b89\u88c5Centos7\u3002\u88c5\u5b8cCentos7\u53d1\u73b0\u6ca1\u6709Windows 10\u7684\u542f\u52a8\u9879\uff0c\u8fd9\u65f6\u5019\u9700\u8981\u624b\u52a8\u6dfb\u52a0windows 10\u7684\u542f\u52a8\u9879\u3002<\/p>\n \r\n# \u6253\u5f0040_custom\u6587\u4ef6\uff0c\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\r\n[root@localhost ~]# vim \/etc\/grub.d\/40_custom\r\n\r\nmenuentry 'Windows 10' {\r\n insmod ntfs\r\n set root='hd0,1'\r\n chainloader +1\r\n}\r\n# \u4fee\u6539\u5b8c\u6210\u4e4b\u540e\uff0c\u9700\u8981\u5bfc\u51fa\u751f\u6210\u914d\u7f6e\u6587\u4ef6\uff0c\u8fd9\u6837\u624d\u80fd\u751f\u6548\u3002\r\n[root@localhost ~]# grub2-mkconfig -o \/boot\/grub2\/grub.cfg\r\n<\/pre>\n |