{"id":1145,"date":"2017-04-25T16:02:06","date_gmt":"2017-04-25T08:02:06","guid":{"rendered":"http:\/\/www.kumouse.com\/?p=1145"},"modified":"2017-04-25T16:02:06","modified_gmt":"2017-04-25T08:02:06","slug":"openwrt%e6%8c%82%e8%bd%bdu%e7%9b%98%ef%bc%8c%e5%b9%b6%e5%b0%86%e7%b3%bb%e7%bb%9f%e8%bd%ac%e7%a7%bb%e5%88%b0u%e7%9b%98%e4%b8%ad","status":"publish","type":"post","link":"https:\/\/www.kumouse.com\/?p=1145","title":{"rendered":"openwrt\u6302\u8f7du\u76d8\uff0c\u5e76\u5c06\u7cfb\u7edf\u8f6c\u79fb\u5230u\u76d8\u4e2d"},"content":{"rendered":"<pre><code>1 \u5b89\u88c5\u7cfb\u7edf\u5fc5\u987b\u7684\u8f6f\u4ef6\u5305\uff1a\r\nopkg update\r\nopkg install kmod-usb-storage block-mount kmod-fs-ext4\r\n<\/code><\/pre>\n<p>2 \u5b89\u88c5\u5b8c\u6210\u4ee5\u540e,\u6302\u8f7du\u76d8.\u5982\u4e0b\u547d\u4ee4\u5c06\u9ed8\u8ba4\u7684\u7cfb\u7edf\u76d8\u8f6c\u79fb\u5230u\u76d8\u4e2d.<\/p>\n<pre><code>mount \/dev\/sda1 \/mnt\r\nmkdir \/tmp\/root\r\nmount -o bind \/ \/tmp\/root\r\ncp \/tmp\/root\/* \/mnt -a\r\numount \/tmp\/root\r\n<\/code><\/pre>\n<p>3 \u4fee\u6539 \/etc\/config\/fstab \u6587\u4ef6,\u8ba9\u7cfb\u7edf\u542f\u52a8\u81ea\u52a8\u6302\u8f7d,\u4fee\u6539\u6210\u5982\u4e0b<\/p>\n<pre><code>config mount\r\n        option target   \/overlay\r\n        option device   \/dev\/sda1\r\n        option fstype   ext3\r\n        option options  rw,sync\r\n        option enabled  1\r\n        option enabled_fsck 0\r\n<\/code><\/pre>\n<p>4 \u6267\u884c\u5982\u4e0b\u547d\u4ee4\u8ba9\u5176\u751f\u6548<\/p>\n<pre><code>\/etc\/init.d\/fstab enable<\/code><\/pre>\n<p>5 \u91cd\u542f\u540e\uff0c\u6267\u884cdf -h\u540e\u5982\u679c\u53d1\u73b0\/overlay\u6302\u8f7d\u5728\/tmp\/overlay-disabled\u4e0a\u7684\u89e3\u51b3\u65b9\u6848\uff1a<br \/>\nrm \/tmp\/overlay-disabled\/etc\/extroot.md5sum<br \/>\n\u6216\u8005\u5220\u9664\/tmp\/overlay-disabled\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u7cfb\u7edf\u6587\u4ef6\uff0c\u6309\u7167\u7b2c2\u91cd\u65b0\u64cd\u4f5c\u91cd\u542f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1 \u5b89\u88c5\u7cfb\u7edf\u5fc5\u987b\u7684\u8f6f\u4ef6\u5305\uff1a opkg update opkg install kmod-usb-storage [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1145","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/posts\/1145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1145"}],"version-history":[{"count":1,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/posts\/1145\/revisions"}],"predecessor-version":[{"id":1146,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/posts\/1145\/revisions\/1146"}],"wp:attachment":[{"href":"https:\/\/www.kumouse.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}