{"id":225680,"date":"2020-12-09T07:07:00","date_gmt":"2020-12-08T23:07:00","guid":{"rendered":"http:\/\/4563.org\/?p=225680"},"modified":"2020-12-09T07:07:00","modified_gmt":"2020-12-08T23:07:00","slug":"pi4-%e8%a3%85%e4%ba%86-ubuntu-server%ef%bc%8c%e5%a6%82%e4%bd%95%e5%a4%87%e4%bb%bd%e6%95%b4%e4%b8%aa-sd-%e5%8d%a1%e7%84%b6%e5%90%8e%e7%9b%b4%e6%8e%a5%e5%88%b0%e5%8f%a6%e4%b8%80%e5%8f%b0-pi4-%e4%b8%8a","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=225680","title":{"rendered":"Pi4 \u88c5\u4e86 ubuntu server\uff0c\u5982\u4f55\u5907\u4efd\u6574\u4e2a sd \u5361\u7136\u540e\u76f4\u63a5\u5230\u53e6\u4e00\u53f0 Pi4 \u4e0a\u4f7f\u7528"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Pi4 \u88c5\u4e86 ubuntu server\uff0c\u5982\u4f55\u5907\u4efd\u6574\u4e2a sd \u5361\u7136\u540e\u76f4\u63a5\u5230\u53e6\u4e00\u53f0 Pi4 \u4e0a\u4f7f\u7528               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fxrocks <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5982\u9898\uff0c\u53c2\u8003\u7f51\u4e0a\u628a sd \u5361\u6302\u8f7d\uff0c\u7136\u540e\u7528 sudo dd bs=4M if=\/dev\/mmcblk0 of=\/dev\/sda1\uff0c<\/p>\n<p>\u63d2\u5165\u53e6\u4e00\u4e2a pi4\uff0c\u65e0\u6cd5\u542f\u52a8\u3002\u3002\u3002<\/p>\n<p>\u6709\u6ca1\u6709\u5176\u4ed6\u7684\u65b9\u6cd5\uff1f\u6709\u597d\u51e0\u4e2a pi\uff0c\u61d2\u5f97\u6bcf\u4e2a\u90fd\u53bb\u5b89\u88c5\u914d\u7f6e\u4e00\u5806\u8f6f\u4ef6<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>16<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4569662\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : M3ng <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             dd \u5b58\u50a8\u8bbe\u5907\u800c\u975e\u5206\u533a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4569663\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ysc3839 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             &gt; \u53c2\u8003\u7f51\u4e0a\u628a sd \u5361\u6302\u8f7d<\/p>\n<p>\u6302\u8f7d\u6307\u7684\u662f\u4ec0\u4e48\uff1f\u6302\u8f7d\u4e86\u6587\u4ef6\u7cfb\u7edf\uff1f\u76f4\u63a5\u590d\u5236\u6570\u636e\u65f6\u4e0d\u80fd\u6302\u8f7d\u6587\u4ef6\u7cfb\u7edf\uff0c\u56e0\u4e3a\u968f\u65f6\u6709\u53ef\u80fd\u5199\u5165\u6570\u636e\u8fdb\u53bb\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4569664\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : fxrocks <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ysc3839 , \u8c22\u8c22\u3002\u4f60\u8fd9\u4e48\u4e00\u63d0\u9192\uff0c\u6211\u4ed4\u7ec6\u770b\u4e86\u4e00\u4e0b\uff0c\u539f\u6765\u662f\u6709\u6302\u8f7d\u65b0 sd \u7684\u8bdd\uff0c\u8981\u5148\u5378\u8f7d\u3002\u3002\u3002\u662f\u6211\u641e\u53cd\u4e86\u3002\u3002\u3002<\/p>\n<p>\u6211\u53c2\u8003\u8fd9\u4e2a\u6559\u7a0b<br \/>https:\/\/www.cirmall.com\/bbs\/thread-39663-1-1.html                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4569665\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Osk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             sudo dd bs=4M if=\/dev\/mmcblk0 of=\/dev\/sda<\/p>\n<p>\u6ce8\u610f: \u662f sda \u4e0d\u662f sda1<\/p>\n<p>\u53e6\u5916: dd \u6765\u62f7\u8d1d\u7cfb\u7edf\u662f\u4e00\u4e2a\u7cdf\u7cd5\u7684\u6ce8\u610f. \u4e0d\u8fc7\u7f51\u4e0a\u4e00\u5806 dd \u7684\u6559\u7a0b&#8230;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4569666\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xiaket <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bdd\u8bf4\u4f60\u662f\u4e0d\u662f\u5e94\u8be5\u8003\u8651\u628a\u4f60\u7684\u914d\u7f6e\u8fc7\u7a0b\u5199\u6210\u811a\u672c\u6216\u8005 ansible playbook? \u8fd9\u6837 rpi \u6302\u4e86\u8981\u91cd\u505a\u4e5f\u7b80\u5355.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4569667\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mrcn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Osk <br \/>&gt; dd \u6765\u62f7\u8d1d\u7cfb\u7edf\u662f\u4e00\u4e2a\u7cdf\u7cd5\u7684\u4e3b\u610f<br \/>\u4e3a\u4ec0\u4e48\u8fd9\u4e48\u8bf4\u5462\uff1f\u5982\u679c\u4e0d\u7528 dd\uff0c\u7528\u4ec0\u4e48\u65b9\u5f0f\u6bd4\u8f83\u5408\u9002\u5462\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4569668\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : CEBBCAT <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Osk \u8001\u5144\uff0c\u7ed9\u51fa\u6279\u8bc4\u610f\u89c1\u7684\u540c\u65f6\u6700\u597d\u642d\u914d\u4e00\u4e2a\u5efa\u8bae\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4569669\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : fxrocks <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6ca1\u6709\u6302\u8f7d\u5c31\u6210\u529f\u4e86\u3002\u8c22\u8c22\u5404\u4f4d\u3002<\/p>\n<p>@Osk\uff0c\u662f\u7684\uff0c\u6211\u7b2c\u4e8c\u6b21\u7528\u4e86 sda, \u590d\u5236\u4e4b\u524d\u5148\u7528\u4e86 fdisk -l \u67e5\u770b<\/p>\n<p>\u9ebb\u70e6\u544a\u77e5\u4e00\u4e0b\u6709\u4ec0\u4e48\u66f4\u597d\u7684\u65b9\u6cd5\uff0c\u8c22\u8c22\u3002\u76ee\u524d\u590d\u5236\u8981 1 \u4e2a\u5c0f\u65f6\u3002\u3002\u3002\u7528\u662f\u80fd\u7528\u4e86\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4569670\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Osk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             parted \u811a\u672c\u5b8c\u6210\u81ea\u52a8\u5206\u533a\uff0c\u53ef\u9009\uff0c\u624b\u52a8\u5206\u533a\u4e5f\u6d6a\u8d39\u4e0d\u4e86\u4e00\u5206\u949f\u3002<br \/>\u811a\u672c\u5b8c\u6210 \u5206\u533a\u683c\u5f0f\u5316 \/mkfs \u3002<\/p>\n<p>\u5bf9\u6e90\u7cfb\u7edf\u8fdb\u884c\u8c03\u6574\uff1a\u6811\u8393\u6d3e\u7684 botloader \u6ca1\u5565\u8981\u6c42\uff0c\u53ea\u8981\u6587\u4ef6\u653e fat32 \u5206\u533a\u5c31\u884c\uff0c\u8c03\u6574\u4e0b cmdline.txt \u548c \/etc\/fstab \u7684\u6302\u8f7d\u8bbe\u5907\u540d\u5373\u53ef\uff0c\u7531\u4e8e\u7b97\u662f\u5d4c\u5165\u5f0f\u8bbe\u5907\uff0croot=\/dev\/mmcblk0pX \u7b49\u53c2\u6570\u53ef\u4ee5\u5199\u6b7b\uff0c\u6ca1\u95ee\u9898\u7684\u3002<\/p>\n<p>rsync \u7b49\u5de5\u5177\u771f\u63a5\u62f7\u8d1d\u7cfb\u7edf\u548c boot \u5206\u533a\u7684\u6587\u4ef6\u5373\u53ef\uff0c\u6ce8\u610f\u8c03\u6574\u597d\u4e86 &#8211;exclude \u7684\u8bdd\u53ef\u4ee5\u5c06\u6b63\u5728\u8dd1\u7684\u7cfb\u7edf\u62f7\u8d1d\uff0c\u4e0d\u8fc7\u4e00\u822c\u4e0d\u62f7\u8d1d\u6b63\u5728\u8dd1\u7684\u7cfb\u7edf\u3002<\/p>\n<p>\u6811\u8393\u6d3e\u5c31\u4e24\u4e09\u4e2a\u5206\u533a\uff1a<br \/>\/boot\/firmware \u4e00\u4e2a\u5206\u533a\uff0c256MB \u4ee5\u4e0a\u7684 FAT32 \u6587\u4ef6\u7cfb\u7edf\uff0c\u5185\u542b\u6811\u8393\u6d3e\u7684\u95ed\u6e90\u542f\u52a8\u4ee3\u7801\uff0c\u5185\u6838\u7b49\uff0c\u76f4\u63a5\u62f7\u8d1d\u5c31\u884c\uff0c\u6ca1\u5565\u8981\u6c42\u3002<br \/> \/ \u4e00\u4e2a\u5206\u533a\uff0c\u4e00\u822c ext4 \u76f4\u63a5\u62f7\u3002<br \/>swap \u5206\u533a\uff0c\u53ef\u9009\u7684\u3002<\/p>\n<p>\u4e0d\u63a8\u8350 dd \u662f\u56e0\u4e3a\uff1a<br \/>dd \u5168\u76d8\u62f7\u8d1d\u4f1a\u6d6a\u8d39\u8f83\u957f\u65f6\u95f4\uff0c\u65e0\u610f\u4e49\u7684\u90a3\u79cd\uff0c\u73b0\u5728\u7684 SD \u5361\u5bb9\u91cf\u5927\u4f46\u901f\u5ea6\u5374\u4e0d\u5feb\uff0c\u7a33\u5b9a\u6027\u4e5f\u6349\u6025\uff0c\u6709\u8f83\u4f4e\u7684\u6982\u7387\u62f7\u6302\u3002\u3002\u3002<\/p>\n<p>\u8fd8\u6709\u5c31\u662f dd \u7684\u76ee\u6807\u76d8\u5927\u5c0f\u548c\u6e90\u76d8\u5982\u679c\u4e0d\u4e00\u81f4\u4f1a\u662f\u4e2a\u95ee\u9898\uff0c\u5927\u4e86\u8fd8\u597d\u8bf4\uff0c\u5c0f\u4e86\u641e\u4e0d\u597d\u62f7\u8fc7\u53bb\u7684\u4f1a\u70b8\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4569671\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : fxrocks <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @xiaket <\/p>\n<p>\u5176\u5b9e\u771f\u6b63\u4f7f\u7528\u5c31 8G\uff0c\u5728\u627e\u65b9\u6cd5\u5982\u4f55\u5907\u4efd\u8fd9 8G \u4e00\u4e2a\u955c\u50cf\uff0c\u5361\u662f\u6574\u4e2a\u590d\u5236\u7684\u3002\u627e\u5230\u65b9\u6cd5\u518d\u641e\u6210\u6bcf\u5929\u81ea\u52a8\u5907\u4efd\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4569672\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : fxrocks <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Osk\uff0c \u611f\u8c22\u6307\u5bfc\uff0c\u6211\u7b49\u4f1a\u513f\u8bd5\u8bd5\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4569673\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : spcharc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3a\u4ec0\u4e48\u662f dd \uff1f cp -ax \u4e0d\u597d\u5417\uff1f\u800c\u4e14 dd \u8fd8\u7528\u9519\u4e86\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4569674\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : fxrocks <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @spcharc\uff0c\u6211\u6ca1\u600e\u4e48\u63a5\u89e6\u8fc7 linux\uff0c\u83dc\u9e1f\u4e00\u679a\uff0c\u8bf7\u6559 dd \u662f\u54ea\u91cc\u7528\u9519\u4e86\uff0c\u8c22\u8c22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4569675\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lh900519 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u53c2\u8003\u8fd9\u4e2a\u9879\u76ee\uff0c\u81ea\u5df1\u8c03\u6574\u4e00\u4e0b<\/p>\n<p>https:\/\/github.com\/nanhantianyi\/rpi-backup                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4569676\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : fxrocks <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lh900519 <br \/>\u8fd9\u4e2a\u597d\uff0c\u6211\u7814\u7a76\u4e00\u4e0b\u3002\u8c22\u8c22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4569677\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Hardrain <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             rsync<\/p>\n<p>\u53c2\u8003:<br \/>https:\/\/wiki.archlinux.org\/index.php\/Rsync#Full_system_backup<\/p>\n<p>rsync -aAXHv &#8211;exclude={&#8220;\/dev\/*&#8221;,&#8221;\/proc\/*&#8221;,&#8221;\/sys\/*&#8221;,&#8221;\/tmp\/*&#8221;,&#8221;\/run\/*&#8221;,&#8221;\/mnt\/*&#8221;,&#8221;\/media\/*&#8221;,&#8221;\/lost+found&#8221;} \/ \/path\/to\/backup<\/p>\n<p>\/path\/to\/backup \u6539\u4f5c\u65b0 TF \u5361\u4e0a rootfs \u5206\u533a\u7684\u6302\u8f7d\u70b9                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Pi4 \u88c5\u4e86 ubuntu ser&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\/225680"}],"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=225680"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/225680\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=225680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=225680"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=225680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}