{"id":526893,"date":"2021-08-19T15:02:23","date_gmt":"2021-08-19T07:02:23","guid":{"rendered":"http:\/\/4563.org\/?p=526893"},"modified":"2021-08-19T15:02:23","modified_gmt":"2021-08-19T07:02:23","slug":"%e5%8f%a6%e4%b8%80%e7%a7%8dlinux-dd-windows-%e6%95%99%e7%a8%8b%ef%bc%8c%e5%b8%8c%e6%9c%9b%e4%bd%a0%e4%b8%8d%e8%a6%81%e4%b8%8d%e8%af%86%e6%8a%ac%e4%b8%be%e3%80%82","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=526893","title":{"rendered":"\u53e6\u4e00\u79cdLinux DD Windows \u6559\u7a0b\uff0c\u5e0c\u671b\u4f60\u4e0d\u8981\u4e0d\u8bc6\u62ac\u4e3e\u3002"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>nat.ee<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 5&nbsp;\u5206\u949f\u524d\t<\/p>\n<h3>\u53e6\u4e00\u79cdLinux DD Windows \u6559\u7a0b\uff0c\u5e0c\u671b\u4f60\u4e0d\u8981\u4e0d\u8bc6\u62ac\u4e3e\u3002<\/h3>\n<p>  \t\t\u7cfb\u7edf\u8981\u6c42\uff1aDebian 7 \u6216 Ubuntu 12 \u4ee5\u4e0a<br \/>  \u6ce8\u610f\uff1aVPS\u9700\u8981\uff0c\u9ed8\u8ba4\u4ee5DHCP \u81ea\u52a8\u5206\u914dIP \u7684\u624d\u884c\uff0c\u5426\u5219\u90a3\u79cd\u9700\u8981\u6307\u5b9aIP\u7f51\u5173\u624d\u6709\u7f51\u7edc\u7684\uff0c\u65e0\u6cd5\u4f7f\u7528\uff01<\/p>\n<p>  # \u66f4\u65b0\u6e90<br \/>  apt-get update<\/p>\n<p>  # \u5b89\u88c5\u4f9d\u8d56<br \/>  apt-get install wget grub2 grub-imageboot -y<\/p>\n<p>  # \u521b\u5efaISO\u6587\u4ef6\u5939<br \/>  mkdir \/boot\/images\/<\/p>\n<p>  # \u4e0b\u8f7d\u6551\u63f4\u7cfb\u7edf\u6587\u4ef6<br \/>  wget &#8211;no-check-certificate -O \/boot\/images\/mfslinux.iso http:\/\/d.nat.ee\/rescue\/mfslinux.iso<\/p>\n<p>  # \u66ff\u6362\u5f15\u5bfc\u987a\u5e8f\u9ed8\u8ba4\u542f\u52a8\u4e3a\u6551\u63f4\u7cfb\u7edf<br \/>  sed -i &#8216;s\/GRUB_DEFAULT=0\/GRUB_DEFAULT=2\/g&#8217; \/etc\/default\/grub<\/p>\n<p>  # \u66f4\u65b0\u5f15\u5bfc<br \/>  update-grub2<\/p>\n<p>  # \u91cd\u542f<br \/>  reboot<\/p>\n<p>  \u91cd\u65b0\u7528SSH\u8fde\u63a5\uff0c<br \/>  SSH\u7aef\u53e3\uff1a22<br \/>  \u7528\u6237\u540d\uff1aroot<br \/>  \u5bc6\u7801\uff1amfsroot<\/p>\n<p>  \u6b22\u8fce\u4fe1\u606f\u5e26\u6709 OpenWrt \u548c mfslinux \u5219\u6210\u529f\u8fdb\u5165\u3002<\/p>\n<p>  \u5047\u5982\u672a\u80fd\u8fdb\u5165\u5230\u6551\u63f4\u7cfb\u7edf\uff0c\u9700\u8981\u91cd\u65b0\u4f7f\u7528<br \/>  sed -i &#8216;s\/GRUB_DEFAULT=0\/GRUB_DEFAULT=2\/g&#8217; \/etc\/default\/grub<\/p>\n<p>  \u4fee\u6539 GRUB_DEFAULT=2 \u4e3a\u5176\u4ed6\u5f15\u5bfc\u987a\u5e8f\uff0c\u8bf7\u591a\u6b21\u5c1d\u8bd5\u4fee\u6539\u5176\u4ed6\u6570\u5b57(1-9)\uff0c\u6216\u8005\u4f60\u6700\u597d\u91cd\u88c5\u7cfb\u7edf\u540e\uff0c\u518d\u6b21\u4f7f\u7528\u6b64\u6559\u7a0b\u3002<\/p>\n<p>  # \u67e5\u770b\u5206\u533a\u4fe1\u606f<br \/>  fdisk -l<\/p>\n<p>  \u5efa\u8bae\u5148\u6d4b\u8bd5DD\u5305\u4e0b\u8f7d\u76f4\u94fe\u662f\u5426\u6b63\u5e38\uff0c\u7136\u540e\u518d\u6267\u884c\u4e00\u952eDD<\/p>\n<p>  # \u4e00\u952eDD Windows<br \/>  wget &#8211;no-check-certificate -qO- &quot;Windows DD\u5305\u4e0b\u8f7d\u76f4\u94fe&quot; |gunzip -dc |dd of=\/dev\/vda<\/p>\n<p>  DD\u8fc7\u7a0b\uff0c\u662f\u6ca1\u6709\u4efb\u4f55\u4fe1\u606f\u7684\u3002<\/p>\n<p>  \u89c6\u4f60\u7684VPS\uff1aCPU\/\u5185\u5b58\/\u786c\u76d8\u8bfb\u5199\/\u7f51\u901f\uff0c\u4ee5\u53caDD\u5305\u5927\u5c0f\u800c\u51b3\u5b9aDD\u8981\u82b1\u591a\u957f\u65f6\u95f4\uff0c\u4e00\u822c\u6bd4\u8f83\u4e45\uff0c\u51e0\u5341\u5206\u949f\u5230\u51e0\u5c0f\u65f6\u6216\u8005\u4e00\u6574\u5929\u90fd\u6709\u53ef\u80fd\u3002<\/p>\n<p>  DD\u5b8c\u6210\u540e\u4f1a\u51fa\u73b0\u8fd9\u79cd\u4fe1\u606f\uff1a<br \/>  6291457+0 records in<br \/>  6291457+0 records out<\/p>\n<p>  # \u91cd\u542f<br \/>  reboot<\/p>\n<p>  \u91cd\u542f\u540e\uff0c\u5e76\u4e0d\u662f\u9a6c\u4e0a\u5c31\u80fd\u8fdb\u5165\u5230\u4f60DD\u7684Windows\u7cfb\u7edf<\/p>\n<p>  \u8fd8\u9700\u8981\u8ba9\u6b64Windows\u7cfb\u7edf \u5b8c\u6210\u9996\u6b21\u5b89\u88c5\uff0c\u4e00\u822c5-30\u5206\u949f\u4e0d\u7b49\u7684\u3002<\/p>\n<p>  \u795d\u4f60\u6210\u529f\uff01  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>nat.ee<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 3&nbsp;\u5206\u949f\u524d\t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 nat.ee \u4e8e 2021-8-19 15:09 \u7f16\u8f91 <\/p>\n<p> \u76ee\u524d\u672a\u6d4b\u8bd5\u662f\u5426\u5728Uefi\u542f\u52a8\u7684VPS\uff0c\u4f46\u53ef\u4ee5\u80af\u5b9a\u7684\u6b64\u65b9\u6cd5 \u66ff\u4ee3\u76ee\u524d \u840c\u5494 \u7ecf\u5e38\u56e0\u4e3aDebian \u6e90\u51fa\u7684\u95ee\u9898\uff0c\u800c\u5bfc\u81f4DD win\u4e0d\u6210\u529f\u3002<\/p>\n<p>  \u4e00\u5e74\u5230\u5934 \u8001\u662f\u56e0\u4e3a\u840c\u5494\u7684\u95ee\u9898\uff0c\u5bfc\u81f4\u5929\u5929\u8bf4\u6211\u7684DD\u5305\u4e0d\u80fd\u7528\uff0c\u6211\u771f\u7684\u5f88\u82e6\u607c\u3002\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>nat.ee \u5927\u4f6c\u6709\u8bdd\u8bf4 : 5&#038;&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/526893"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=526893"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/526893\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=526893"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=526893"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=526893"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}