{"id":326,"date":"2021-08-18T04:38:00","date_gmt":"2021-08-18T04:38:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=326"},"modified":"2021-08-18T04:38:00","modified_gmt":"2021-08-18T04:38:00","slug":"326","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/08\/18\/326\/","title":{"rendered":"\u624b\u5de5\u914d\u7f6eGRUB2+iPXE\u5f15\u5bfcnetboot.xyz\u8fdb\u884c Linux \u8fdc\u7a0b\u91cd\u65b0\u5b89\u88c5\u7cfb\u7edf"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/08\/2333546632.png\" alt=\"ipxe-small.png\" title=\"ipxe-small.png\"><\/p>\n<p>netboot.xyz\uff1a\u57fa\u4e8eiPXE\u7684\u7f51\u7edc\u53ef\u5f15\u5bfc\u64cd\u4f5c\u7cfb\u7edf\u5b89\u88c5<br \/>netboot.xyz \u53ef\u4ee5\u65b9\u4fbf\u5730\u5f15\u5bfc\u5230\u4efb\u4f55\u7c7b\u578b\u7684\u64cd\u4f5c\u7cfb\u7edf\u6216\u5b9e\u7528\u7a0b\u5e8f\u78c1\u76d8\uff0c\u800c\u4e0d\u9700\u8981\u82b1\u65f6\u95f4\u53bb\u68c0\u7d22 ISO \u6765\u8fd0\u884c\u5b83\u3002<br \/>iPXE \u662f\u7528\u6765\u5728 BIOS \u5185\u63d0\u4f9b\u4e00\u4e2a\u7528\u6237\u53cb\u597d\u7684\u83dc\u5355\uff0c\u8ba9\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u9009\u62e9\u60a8\u60f3\u8981\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u4ee5\u53ca\u4efb\u4f55\u7279\u5b9a\u7c7b\u578b\u7684\u7248\u672c\u6216\u53ef\u5f15\u5bfc\u6807\u5fd7\u3002<\/p>\n<h3>\u5982\u679c\u4f60\u7684\u7cfb\u7edf\u652f\u6301EFI\u5f15\u5bfc\uff0c\u53ef\u4ee5\u770b <a href=\"https:\/\/lyvba.com\/index.php\/archives\/164\/\">\u4e91\u4e3b\u673aEFI_SHELL\u65b9\u5f0f\u4f7f\u7528 netboot.xyz \u8fdc\u7a0b\u91cd\u65b0\u5b89\u88c5\u7cfb\u7edf<\/a><\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/08\/488107369.png\" alt=\"menu_graphic.png\" title=\"menu_graphic.png\"><\/p>\n<h3>\u5982\u4e0a\u56fe <code>netboot.xyz<\/code> \u5f15\u5bfc\u80fd\u9009\u62e9\u591a\u79cd\u7cfb\u7edf\u5728\u7ebf\u5b89\u88c5\uff1b\u4e0b\u9762\u6765\u4ecb\u7ecd\u600e\u4e48\u6dfb\u52a0 <code>netboot.xyz<\/code> \u5f15\u5bfc<\/h3>\n<pre><code># \u8fdb\u5165\u79fb\u52a8\u76ee\u5f55\u6216\u8005\u5206\u533a\ncd \/boot\n\n# \u4e0b\u8f7d netboot.xyz \u5185\u6838\u5230 \/boot \u76ee\u5f55\nwget https:\/\/boot.netboot.xyz\/ipxe\/netboot.xyz.lkrn\n<\/code><\/pre>\n<h3>\u4fee\u6539 <code>grub.cfg<\/code> \u80fd\u5f15\u5bfc <code>netboot.xyz<\/code><\/h3>\n<pre><code># vim grub\/grub.cfg\n# \u6309\u952e\u76d8\u5927\u5199 G , \u5411\u4e0a\u627e\u5230\u7c7b\u4f3c\u4e0b\u9762\u51e0\u884c\n\necho    'Loading Linux 5.10.0-8-amd64 ...'\nlinux   \/boot\/vmlinuz-5.10.0-8-amd64 root=UUID=8e2fd8fe-3832-481b-9403-fa2cf303fb76 ro single\necho    'Loading initial ramdisk ...'\ninitrd  \/boot\/initrd.img-5.10.0-8-amd64\n\n\n# \u6ce8\u91ca\u6389\u8fd9\u884c initrd  \/boot\/initrd.img-5.10.0-8-amd64\n# \u6dfb\u52a0\u4e00\u884c\nlinux16 \/boot\/netboot.xyz.lkrn\n<\/code><\/pre>\n<h3>\u5982\u4e0b\u9762\u6539\u597d\u540e\uff0c<code>:wq!<\/code> \u5f3a\u5236\u4fdd\u5b58\u9000\u51fa<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/08\/2481195424.png\" alt=\"netboot.xyz.png\" title=\"netboot.xyz.png\"><\/p>\n<h3>\u5982\u56fe\u91cd\u542f\uff0c<code>VNC<\/code> \u65b9\u5f0f\u9009\u62e9 <code>Recovery Mode<\/code> \uff0c\u5c31\u80fd\u5f15\u5bfc\u5e26 <code>netboot.xyz<\/code><\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/06\/1843101774.png\" alt=\"\" title=\"\"><\/p>\n<h3>\u4e0a\u9762\u65b9\u6cd5\u4f7f\u7528\u66ff\u6362 Recovery \u83dc\u5355\u6765\u65b9\u5f0f\u6765\u50bb\u74dc\u6a21\u5f0f\u914d\u7f6e <code>netboot.xyz<\/code><\/h3>\n<ul>\n<li>\u53c2\u8003\u94fe\u63a5 <a href=\"https:\/\/gist.github.com\/AndersonIncorp\">https:\/\/gist.github.com\/AndersonIncorp<\/a><\/li>\n<\/ul>\n<h4>Install netboot.xyz.lkrn into grub<\/h4>\n<pre><code class=\"lang-sh\">wget https:\/\/boot.netboot.xyz\/ipxe\/netboot.xyz.lkrn -O \/boot\/netboot.xyz.lkrn\nnano \/etc\/grub.d\/40_custom\n#\/etc\/grub.d\/40_custom\nmenuentry \"netboot.xyz.lkrn\" {\n    linux16 (hd0,msdos1)\/netboot.xyz.lkrn # \/boot is (hd0,msdos1) drive\n}\n#\n# One of\ngrub2-mkconfig -o \/boot\/grub2\/grub.cfg\ngrub-mkconfig -o \/boot\/grub\/grub.cfg\nreboot<\/code><\/pre>\n<h2>\u4f7f\u7528 <code>netboot.xyz<\/code> \u5f15\u5bfc \u9664\u4e86\u7528\u6765\u5b89\u88c5\u7cfb\u7edf\u7528\u5904\uff0c\u8fd8\u53ef\u4ee5\u7528\u6765\u5e2e\u52a9 <code>DD windows<\/code><\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/08\/3951759306.png\" alt=\"123.png\" title=\"123.png\"><\/p>\n<h3>\u9009\u62e9 <code>Rescue Mode<\/code> \u914d\u7f6e\u597d\u7f51\u7edc\uff0c\u9009\u5b9a\u597d \u7cfb\u7edfroot\u6839\uff0c\u518d\u8fdb\u5165Shell<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/08\/363101885.png\" alt=\"mod.png\" title=\"mod.png\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>netboot.xyz\uff1a\u57fa\u4e8eiPXE\u7684\u7f51\u7edc\u53ef\u5f15\u5bfc\u64cd\u4f5c\u7cfb\u7edf\u5b89\u88c5netboot.xyz \u53ef\u4ee5\u65b9\u4fbf\u5730\u5f15\u5bfc\u5230 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[23],"class_list":["post-326","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=326"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/326\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}