{"id":2202,"date":"2021-08-24T00:35:14","date_gmt":"2021-08-23T16:35:14","guid":{"rendered":"http:\/\/blog.zengqq.com.cn\/?p=2202"},"modified":"2021-08-24T00:35:16","modified_gmt":"2021-08-23T16:35:16","slug":"%e5%86%8d%e6%8e%a8%e8%8d%90%e4%b8%80%e4%b8%aa%e5%a4%87%e4%bb%bd%e6%a0%91%e8%8e%93%e6%b4%be%e7%b3%bb%e7%bb%9f%e7%9a%84%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/blog.zengqq.com.cn\/?p=2202","title":{"rendered":"\u518d\u63a8\u8350\u4e00\u4e2a\u5907\u4efd\u6811\u8393\u6d3e\u7cfb\u7edf\u7684\u811a\u672c"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/shumeipai.nxez.com\/wp-content\/uploads\/2013\/09\/20130910134534601-0.jpg\" alt=\"20130910134534601-0\" class=\"wp-image-260\"\/><\/figure><\/div>\n\n\n\n<p>\u5728\u6211\u4eec\u4f7f\u7528\u6811\u8393\u6d3e\u8fdb\u884c\u5b66\u4e60\u6216\u8005\u642d\u5efa\u5b9e\u9a8c\u73af\u5883\u65f6\u7ecf\u5e38\u4f1a\u628a\u7cfb\u7edf\u73a9\u574f\uff0c\u8f9b\u82e6\u914d\u7f6e\u7684\u5f00\u53d1\u73af\u5883\u53c8\u5f97\u91cd\u65b0\u914d\u7f6e\uff1b\u6216\u8005\u66f4\u65b0\u67d0\u4e00\u8f6f\u4ef6\u540e\u53d1\u73b0\u65b0\u7248\u672c\u548c\u67d0\u4e9b\u7ec4\u4ef6\u4e0d\u517c\u5bb9\uff0c\u53c8\u65e0\u6cd5\u964d\u7ea7\u3002\u8fd9\u4e2a\u65f6\u5019\u6211\u4eec\u4f1a\u60f3\u5c06\u7cfb\u7edf\u5728\u7a33\u5b9a\u65f6\u8fdb\u884c\u5907\u4efd\uff0c\u5728\u7cfb\u7edf\u51fa\u73b0\u95ee\u9898\u540e\u53ef\u4ee5\u5f88\u65b9\u4fbf\u7684\u8fdb\u884c\u6062\u590d\u3002<\/p>\n\n\n\n<p><strong>1\u3001\u4f7f\u7528 Win32DiskImager \u8fdb\u884c\u5907\u4efd\uff08Read\u64cd\u4f5c\uff09<\/strong><br>\u8fd9\u4e2a\u65b9\u6cd5\u662f\u7f51\u4e0a\u5f88\u591a\u6559\u7a0b\u4e2d\u5199\u7684\u65b9\u6cd5\uff0c\u8fd9\u4e2a\u65b9\u6cd5\u7684\u7f3a\u70b9\u662f\uff1a\u53ea\u80fd\u8fdb\u884c\u5168\u5361\u5907\u4efd\uff0c\u50cf\u6211\u4f7f\u7528\u7684\u5185\u5b58\u5361\u5bb9\u91cf\u662f 128G\uff0c\u5b89\u88c5\u597d\u7cfb\u7edf\u548c\u4e00\u4e9b\u7ec4\u4ef6\u540e\u867d\u7136\u53ea\u5360\u752810G\u5de6\u53f3\u7684\u7a7a\u95f4\uff0c\u7528\u8fd9\u4e2a\u65b9\u6cd5\u8fdb\u884c\u5907\u4efd\u7684\u955c\u50cf\u5927\u5c0f\u5c06\u662f 128G\uff08\u867d\u7136\u6211\u53ea\u4f7f\u7528\u4e86\u5176\u4e2d\u7684 10G \u7684\u7a7a\u95f4\uff09\uff0c\u7f51\u4e0a\u5f88\u591a\u6587\u7ae0\u8bf4\u53ef\u4ee5\u7528PiShrink\u811a\u672c\u8fdb\u884c\u538b\u7f29\u88c1\u526a\uff0c\u4f46\u6211\u6d4b\u8bd5\u540e\u5f88\u591a\u7cfb\u7edf\u4f1a\u88c1\u526a\u5931\u8d25\uff0c\u539f\u56e0\u662f\u8be5\u811a\u672c\u4e0d\u652f\u6301\u90e8\u5206\u7cfb\u7edf\u7684\u955c\u50cf\uff0c\u6211\u81ea\u5df1\u7528 Ubuntu server \u548c Manjaro-arm \u8fdb\u884c\u6d4b\u8bd5\u90fd\u662f\u8fd9\u4e2a\u95ee\u9898\uff0c\u5982\u679c\u4f60\u7528 16G \u4ee5\u4e0b\u7684\u5c0f\u5bb9\u91cf tf \u5361\uff0c\u76f4\u63a5\u7528\u8fd9\u79cd\u65b9\u6cd5\u5c31\u884c\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/shumeipai.nxez.com\/wp-content\/uploads\/2020\/10\/20201016124439949.png\" alt=\"\" class=\"wp-image-7244\"\/><\/figure><\/div>\n\n\n\n<p><strong>2\u3001<a href=\"https:\/\/shumeipai.nxez.com\/2014\/06\/01\/do-system-backup-image-of-raspberry-pi-for-linux-or-mac.html\" target=\"_blank\" rel=\"noreferrer noopener\">\u7ad9\u5185\u7684\u8001\u5907\u4efd\u6559\u7a0b<\/a><\/strong><br>\u8be5\u65b9\u6cd5\u4e3b\u8981\u662f\u5c06\u7cfb\u7edf\u5907\u4efd\u5230\u53e6\u4e00\u5f20 tf \u5361\uff0c\u5982\u679c\u6211\u4eec\u53ea\u6709\u4e00\u5f20\u5361\uff0c\u5e76\u4e14\u5907\u4efd\u53ea\u662f\u7528\u4e8e\u5f52\u6863\uff0c\u7528\u8fd9\u4e2a\u65b9\u6cd5\u5c31\u6bd4\u8f83\u9e21\u808b\u4e86\u3002<\/p>\n\n\n\n<p><strong>3\u3001\u4f7f\u7528&nbsp;<a href=\"https:\/\/github.com\/nanhantianyi\/rpi-backup\" target=\"_blank\" rel=\"noreferrer noopener\">rpi-backup<\/a>&nbsp;\u811a\u672c\u8fdb\u884c\u5907\u4efd<\/strong><br>\u8fd9\u662f\u6211\u5bfb\u6c42\u5907\u4efd\u65b9\u6848\u4ee5\u6765\u627e\u5230\u7684\u6700\u597d\u7684\u6811\u8393\u6d3e\u7cfb\u7edf\u5907\u4efd\u89e3\u51b3\u65b9\u6848\uff0c\u89e3\u51b3\u4e86\u5907\u4efd\u6587\u4ef6\u4f53\u79ef\u5927\uff0c\u6062\u590d\u4e5f\u65b9\u4fbf\uff0c\u8fd9\u4e2a\u811a\u672c\u5907\u4efd\u6587\u4ef6\u7684\u4f53\u79ef\u4e3a \u5df2\u7528\u7a7a\u95f4\u00d71.2\uff0c\u6211\u7684\u7cfb\u7edf\u5360\u7528\u4e86\u4e0d\u5230 10G \u7684\u7a7a\u95f4\uff0c\u5907\u4efd\u6587\u4ef6\u5927\u6982\u662f 11G \u591a\u4e00\u4e9b\uff0c\u8fd9\u76f8\u6bd4\u4e8e\u5168\u76d8\u5907\u4efd\u7684 128G \u5df2\u7ecf\u5c0f\u592a\u591a\u4e86\uff0c\u5728\u4f7f\u75287z\u8fdb\u884c\u6781\u9650\u538b\u7f29\u540e\u751a\u81f3\u53ea\u6709 1.7G\uff0c\u8fdb\u884c\u65e5\u5e38\u5f52\u6863\u5907\u4efd\u5b8c\u5168\u53ef\u4ee5\u63a5\u53d7\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/shumeipai.nxez.com\/wp-content\/uploads\/2020\/10\/20201016124439582.png\" alt=\"\" class=\"wp-image-7243\"\/><\/figure><\/div>\n\n\n\n<p>\u8be5\u811a\u672c\u8fdb\u884c\u7cfb\u7edf\u6062\u590d\u65f6\u4e5f\u5f88\u65b9\u4fbf\uff0c\u5c06 img \u6587\u4ef6\u50cf\u5b89\u88c5\u7cfb\u7edf\u4e00\u6837\u5237\u5165 tf\u5361 \u540e\u5bf9\u5206\u533a\u8fdb\u884c\u7b80\u5355\u62d3\u5c55\u540e\u5373\u53ef\u3002\u63a5\u4e0b\u6765\u5c31\u6765\u6f14\u793a\u600e\u4e48\u4f7f\u7528\u8be5\u811a\u672c\u8fdb\u884c\u5907\u4efd\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u5907\u4efd\u6f14\u793a<\/h4>\n\n\n\n<p>\u9996\u5148 clone \u8be5\u811a\u672c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">git clone https:\/\/github.com\/nanhantianyi\/rpi-backup.git &amp;&amp; cd rpi-backup<\/pre>\n\n\n\n<p>\u7136\u540e\u8981\u5b89\u88c5\u4f9d\u8d56\u9879\uff0c\u8fd9\u91cc\u6211\u7528\u7684\u662f Manjaro-arm \u7cfb\u7edf\u3002\u5728 Manjaro \u7cfb\u7edf\u4e2d\u8be5\u811a\u672c\u65e0\u6cd5\u81ea\u52a8\u5b89\u88c5\u4f9d\u8d56\u9879\uff0c\u9700\u8981\u8fd0\u884c\u8fd9\u884c\u547d\u4ee4&nbsp;<code>sudo pacman -Sy &amp;&amp; pacman -S dosfstools parted multipath-tools rsync<\/code>&nbsp;\u6765\u5b89\u88c5\u4f9d\u8d56\u3002<br>\u5982\u679c\u4f60\u662f\u7528 apt \u8fdb\u884c\u5b89\u88c5\u8f6f\u4ef6\u7684\u7cfb\u7edf\uff0c\u53ef\u4ee5\u8df3\u8fc7\u8fd9\u4e00\u6b65\uff0c\u8be5\u811a\u672c\u4f1a\u81ea\u52a8\u5b89\u88c5\u4f9d\u8d56\u9879\u3002<\/p>\n\n\n\n<p>\u7136\u540e\u8fd0\u884c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo .\/back.sh youImageName.img<\/pre>\n\n\n\n<p>\u8be5\u811a\u672c\u5c31\u4f1a\u5f00\u59cb\u5907\u4efd\uff0c\u5982\u679c\u4e0d\u6307\u5b9a\u6587\u4ef6\u540d\u5219\u4f1a\u81ea\u52a8\u547d\u540d\u3002<br>\u5982\u679c\u4f60\u7684\u5185\u5b58\u5361\u5269\u4f59\u7a7a\u95f4\u4e0d\u591f\u7684\u8bdd\u5c31\u6302\u8f7d U \u76d8\uff0c\u5c06 img \u76f4\u63a5\u4fdd\u5b58\u5728 U \u76d8\u4e2d\uff0c\u8981\u6ce8\u610fU\u76d8\u52a1\u5fc5\u6302\u8f7d\u5230 \/media \u76ee\u5f55\u4e0b\uff0c\u4e0d\u8981\u6302\u8f7d\u5230 \/mnt\uff0c\u56e0\u4e3a\u811a\u672c\u4f1a\u5bf9 \/mnt \u76ee\u5f55\u8fdb\u884c\u5907\u4efd\u64cd\u4f5c\uff0c\u4f1a\u5bfc\u81f4\u9012\u5f52\u6027\u7684\u5907\u4efd\uff0c\u603b\u4e4b\u5c31\u662f\u4e0d\u8981\u6302\u8f7d\u5230 \/mnt \u76ee\u5f55\uff0c\u5207\u8bb0\uff01<\/p>\n\n\n\n<p>\u811a\u672c\u8fd0\u884c\u7ed3\u675f\u540e\u5c31\u5f97\u5230\u4e86\u5907\u4efd\u955c\u50cf\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u5907\u4efd\u7684\u6062\u590d<\/h4>\n\n\n\n<p>\u5907\u4efd\u955c\u50cf\u6062\u590d\u53ef\u4ee5\u76f4\u63a5\u7528\u70e7\u5f55\u8f6f\u4ef6\u76f4\u63a5\u70e7\u5f55\uff0c\u8fd9\u91cc\u6211\u4f7f\u7528\u7684\u662f Etcher\uff0c\u6211\u4e5f\u63a8\u8350\u5927\u5bb6\u4f7f\u7528\u8fd9\u4e2a\u8f6f\u4ef6\uff0c\u7ad9\u5185\u6709\u8fd9\u4e2a\u8f6f\u4ef6\u7684\u6587\u7ae0\uff1a<a href=\"https:\/\/shumeipai.nxez.com\/2019\/04\/17\/write-pi-sd-card-image-using-etcher-on-windows-linux-mac.html\" rel=\"noreferrer noopener\" target=\"_blank\">\u4f7f\u7528 Etcher \u7ed9 SD \u5361\u5b89\u88c5\u6811\u8393\u6d3e\u7cfb\u7edf<\/a>\uff0c\u754c\u9762\u7b80\u6d01\u660e\u4e86\uff0c\u9009\u62e9\u955c\u50cf\uff0c\u9009\u62e9\u8981\u5237\u5165\u7684\u78c1\u76d8\uff0cFlash\uff01<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/shumeipai.nxez.com\/wp-content\/uploads\/2020\/10\/20201016124438871.png\" alt=\"\" class=\"wp-image-7242\"\/><\/figure><\/div>\n\n\n\n<p><br>\u5728\u70e7\u5f55\u5b8c\u6bd5\u540e\u4e0d\u8981\u7740\u6025\uff0c\u6211\u4eec\u8fd8\u8981\u4e00\u9879\u64cd\u4f5c\u6ca1\u6709\u505a\uff0c\u6253\u5f00 DiskGenius \u540e\u67e5\u770b tf \u5361\u7684\u5206\u533a\u53ef\u4ee5\u770b\u5230\u6709\u4e00\u90e8\u5206\u7a7a\u95f2\u5206\u533a\u6ca1\u6709\u88ab\u5206\u914d\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/shumeipai.nxez.com\/wp-content\/uploads\/2020\/10\/20201016124439708.png\" alt=\"\" class=\"wp-image-7241\"\/><\/figure><\/div>\n\n\n\n<p>\u8fd9\u4f1a\u5bfc\u81f4\u8fdb\u5165\u7cfb\u7edf\u540e\u53ef\u7528\u7a7a\u95f4\u53d8\u5c11\uff0c\u5728\u8fd9\u91cc\u6211\u76f4\u63a5\u7528 DiskGenius \u5c06\u7a7a\u95f2\u5206\u533a\u5206\u914d\u7ed9 root \u5206\u533a\uff0c\u8fd9\u6837\u4e0d\u7528\u5728\u8fdb\u5165\u7cfb\u7edf\u540e\u505a\u5176\u4ed6\u64cd\u4f5c\u3002<br>\u4e5f\u53ef\u4ee5\u8fdb\u5165\u7cfb\u7edf\u540e\u6267\u884c git clone \u6765\u7684 resize.sh \u811a\u672c\u8fdb\u884c\u6269\u5bb9\u64cd\u4f5c\uff1asudo resize.sh\uff0c\u811a\u672c\u8fd0\u884c\u5b8c\u6bd5\u540e\u4f1a\u81ea\u52a8\u91cd\u542f\uff0c\u4e24\u4e2a\u6b65\u9aa4\u6548\u679c\u4e00\u6837\uff08\u4f46\u5728\u90e8\u5206\u7cfb\u7edf\u4f1a\u65e0\u6cd5\u8fd0\u884c\uff0c\u8fd8\u662f\u63a8\u8350\u7528 DiskGenius \u5f04\u597d\u518d\u5f00\u673a\uff09\u3002<\/p>\n\n\n\n<p>\u6700\u540e\u4e5f\u4e0d\u8981\u5fd8\u4e86\u7ed9\u8be5\u9879\u76ee\u70b9\u4e00\u4e2a Star\u3002<strong>\u6587\u7ae0\u6807\u9898\uff1a<\/strong><a href=\"https:\/\/shumeipai.nxez.com\/2020\/10\/28\/backup-the-raspberry-pi-system-as-an-img-file.html\">\u518d\u63a8\u8350\u4e00\u4e2a\u5907\u4efd\u6811\u8393\u6d3e\u7cfb\u7edf\u7684\u811a\u672c<\/a>&nbsp;&#8211;&nbsp;<a href=\"https:\/\/shumeipai.nxez.com\/\">\u6811\u8393\u6d3e\u5b9e\u9a8c\u5ba4<\/a><strong>\u56fa\u5b9a\u94fe\u63a5\uff1a<\/strong><a href=\"https:\/\/shumeipai.nxez.com\/2020\/10\/28\/backup-the-raspberry-pi-system-as-an-img-file.html\">https:\/\/shumeipai.nxez.com\/2020\/10\/28\/backup-the-raspberry-pi-system-as-an-img-file.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u6211\u4eec\u4f7f\u7528\u6811\u8393\u6d3e\u8fdb\u884c\u5b66\u4e60\u6216\u8005\u642d\u5efa\u5b9e\u9a8c\u73af\u5883\u65f6\u7ecf\u5e38\u4f1a\u628a [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[253,249],"tags":[],"class_list":["post-2202","post","type-post","status-publish","format-standard","hentry","category-fun","category-technology"],"_links":{"self":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/2202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2202"}],"version-history":[{"count":1,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/2202\/revisions"}],"predecessor-version":[{"id":2203,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/2202\/revisions\/2203"}],"wp:attachment":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}