{"id":2739,"date":"2022-04-11T01:03:12","date_gmt":"2022-04-10T17:03:12","guid":{"rendered":"http:\/\/blog.zengqq.com.cn\/?p=2739"},"modified":"2022-04-11T01:03:13","modified_gmt":"2022-04-10T17:03:13","slug":"openwrt-%e6%89%a9%e5%b1%95%e6%a0%b9%e5%88%86%e5%8c%ba","status":"publish","type":"post","link":"https:\/\/blog.zengqq.com.cn\/?p=2739","title":{"rendered":"Openwrt \u6269\u5c55\u6839\u5206\u533a"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Openwrt \u6269\u5c55\u6839\u5206\u533a<\/h2>\n\n\n\n<p>\u7531\u4e8e\u9879\u76ee\u9700\u8981\uff0c\u7528\u4e86\u4e2ax86\u7684\u5de5\u63a7\u673a\u5b89\u88c5openwrt\u7cfb\u7edf\uff0c\u4f46\u662f\u53d1\u73b0\u5237\u4e86\u7cfb\u7edf\u540e\u78c1\u76d8\u6ca1\u6709\u5168\u90e8\u4f7f\u7528\uff0c\u611f\u89c9\u5f88\u6d6a\u8d39\uff0c\u6700\u7ec8\u627e\u5230\u4e86openwrt\u6269\u5c55\u6839\u5206\u533a\u7684\u65b9\u6cd5<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a><a href=\"https:\/\/github.darkgod.online\/docs\/openwrt\/extend#%E7%AC%AC%E4%B8%80%E6%AD%A5-%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6\"><\/a>\u7b2c\u4e00\u6b65\uff1a\u5b89\u88c5\u8f6f\u4ef6<\/h2>\n\n\n\n<p>\u7528fdisk\u5bf9openwrt\u5206\u533a\uff0c\u4f46\u662f\u8c8c\u4f3c\u6709\u4eba\u8bf4\u8fd9\u4e2a\u5206\u533a\u6700\u5927\u53ea\u652f\u63014G\u4ee5\u4e0b\uff0c\u8d85\u8fc74G\u5c31\u65e0\u6cd5\u5206\u533a\u4e86\uff0c\u6700\u7ec8\u53d1\u73b0cfdisk\u662f\u53ef\u4ee5\u7684\uff0c\u6240\u4ee5\u7528\u4e86cfdisk\u8fdb\u884c\u78c1\u76d8\u6269\u5c55<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">opkg install fdisk\nopkg install cfdisk\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a><a href=\"https:\/\/github.darkgod.online\/docs\/openwrt\/extend#%E7%AC%AC%E4%BA%8C%E6%AD%A5-%E6%9F%A5%E6%89%BE%E6%A0%B9%E5%88%86%E5%8C%BA\"><\/a>\u7b2c\u4e8c\u6b65\uff1a\u67e5\u627e\u6839\u5206\u533a<\/h2>\n\n\n\n<p>\u4f7f\u7528\u547d\u4ee4\u67e5\u627e\u6839\u5206\u533a,\u901a\u8fc7df\u547d\u4ee4\u548cfdisk\u547d\u4ee4\u53ef\u4ee5\u5224\u65ad\u6839\u5206\u533a\u4e3asda2<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">root@OpenWrt:~# df -h\nFilesystem                Size      Used Available Use% Mounted on\n\/dev\/root                 5.8M      5.8M         0 100% \/rom\ntmpfs                     1.9G    912.0K      1.9G   0% \/tmp\n\/dev\/loop0              111.8G      2.2G    109.6G   2% \/overlay\noverlayfs:\/overlay      111.8G      2.2G    109.6G   2% \/\n\/dev\/sda1                15.7M      4.2M     11.2M  27% \/boot\n\/dev\/sda1                15.7M      4.2M     11.2M  27% \/boot\ntmpfs                   512.0K         0    512.0K   0% \/dev\n\nroot@OpenWrt:~# fdisk -l\nDisk \/dev\/loop0: 111.8 GiB, 120010399744 bytes, 234395312 sectors\nUnits: sectors of 1 * 512 = 512 bytes\nSector size (logical\/physical): 512 bytes \/ 512 bytes\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\n\nDisk \/dev\/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors\nUnits: sectors of 1 * 512 = 512 bytes\nSector size (logical\/physical): 512 bytes \/ 512 bytes\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\nDisklabel type: dos\nDisk identifier: 0x511541b3\n\nDevice     Boot Start       End   Sectors   Size Id Type\n\/dev\/sda1  *      512     33279     32768    16M 83 Linux\n\/dev\/sda2  *    33792 234440623 234406832 111.8G 83 Linux\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><a><\/a><a href=\"https:\/\/github.darkgod.online\/docs\/openwrt\/extend#%E7%AC%AC%E4%B8%89%E6%AD%A5-%E6%89%A9%E5%B1%95%E6%A0%B9%E5%88%86%E5%8C%BA\"><\/a>\u7b2c\u4e09\u6b65\uff1a\u6269\u5c55\u6839\u5206\u533a<\/h2>\n\n\n\n<p>\u6267\u884ccfdisk\u547d\u4ee4\uff0c\u53ef\u4ee5\u8fdb\u5165\u5206\u533a\u914d\u7f6e\u754c\u9762<img decoding=\"async\" src=\"https:\/\/github.darkgod.online\/docs\/assets\/disk.png\" alt=\"disk\"><\/p>\n\n\n\n<p>\u4e0a\u4e0b\u952e\u7136\u540e\u9009\u62e9sda2,\u5de6\u53f3\u952e\u9009\u62e9Resize\uff0c\u5728New Size\u7684\u5730\u65b9\u8f93\u5165\u60f3\u8981\u6269\u5c55\u7684\u5927\u5c0f\uff0c\u56de\u8f66\u786e\u8ba4\u540e\u518d\u5de6\u53f3\u952e\u9009\u62e9Write\u5373\u53ef\u5b8c\u6210\u5206\u533a\u6269\u5c55<img decoding=\"async\" src=\"https:\/\/github.darkgod.online\/docs\/assets\/diskover.png\" alt=\"diskover\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Openwrt \u6269\u5c55\u6839\u5206\u533a \u7531\u4e8e\u9879\u76ee\u9700\u8981\uff0c\u7528\u4e86\u4e2ax [&#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":[1693,1649,1557,1694],"class_list":["post-2739","post","type-post","status-publish","format-standard","hentry","category-fun","category-technology","tag-expend","tag-openwrt","tag-root","tag-sd"],"_links":{"self":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/2739","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=2739"}],"version-history":[{"count":1,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/2739\/revisions"}],"predecessor-version":[{"id":2741,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/2739\/revisions\/2741"}],"wp:attachment":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}