{"id":1254,"date":"2017-08-20T10:41:05","date_gmt":"2017-08-20T02:41:05","guid":{"rendered":"http:\/\/www.kumouse.com\/?p=1254"},"modified":"2017-08-20T10:41:05","modified_gmt":"2017-08-20T02:41:05","slug":"openwrt-%e5%8a%a0%e8%bd%bdusb%e8%bf%87%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.kumouse.com\/?p=1254","title":{"rendered":"openwrt \u52a0\u8f7dusb\u8fc7\u7a0b"},"content":{"rendered":"<p>opkg update<\/p>\n<p>opkg install kmod-usb-core<\/p>\n<p>opkg install kmod-usb-ohci #\u5b89\u88c5usb ohci\u63a7\u5236\u5668\u9a71\u52a8<br \/>\n#opkg install kmod-usb-uhci \u3000#UHCI\u3000USB\u63a7\u5236\u5668<br \/>\nopkg install kmod-usb2 #\u5b89\u88c5usb2.0<br \/>\nopkg install kmod-usb-storage #\u5b89\u88c5usb\u5b58\u50a8\u8bbe\u5907\u9a71\u52a8<br \/>\nopkg install kmod-fs-ext3 #\u5b89\u88c5ext3\u5206\u533a\u683c\u5f0f\u652f\u6301\u7ec4\u4ef6<br \/>\nopkg install mount-utils #\u6302\u8f7d\u5378\u8f7d\u5de5\u5177<br \/>\nopkg install ntfs-3g #\u6302\u8f7dNTFS<br \/>\nopkg install kmod-fs-vfat #\u6302\u8f7dFAT<br \/>\nopkg install block-mount<br \/>\nopkg install fdisk<\/p>\n<p>opkg install usbutils #\u5b89\u88c5\u4e86\u8fd9\u4e2a\u540e\u53ef\u4ee5\u7528 lsusb<\/p>\n<p><strong>\u6302\u8f7dSwap\u5206\u533a<\/strong><br \/>\n\uff03\uff03\uff03\u5728\/mnt\/sda1\/\u4e0b\u521b\u5efa\u4e00\u4e2a64M\u7684\u4ea4\u6362\u6587\u4ef6<br \/>\ndd if=\/dev\/zero of=\/mnt\/sda1\/swapfile bs=1024 count=62142<br \/>\n\uff03\uff03\uff03\u5c06\u8fd9\u4e2a\u4ea4\u6362\u6587\u4ef6\u7528\u4f5cSwap\u5206\u533a<br \/>\nmkswap \/mnt\/sda1\/swapfile<br \/>\n\uff03\uff03\uff03\u542f\u7528\u6d3b\u52a8\u5206\u533a<br \/>\nswapon \/mnt\/sda1\/swapfile<\/p>\n<p>\uff03\uff03\uff03\u505c\u6b62<br \/>\nswapoff \/mnt\/sda1\/swapfile<\/p>\n<p>&nbsp;<\/p>\n<p><strong>openwrt \u683c\u76d8<\/strong><\/p>\n<p>opkg update<\/p>\n<p>opkg install e2fsprogs\u00a0\u00a0\u00a0 #\u5b89\u88c5\u683c\u76d8\u8f6f\u4ef6<\/p>\n<p>mkfs.ext4 \/dev\/sda1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #\u683cetx4<\/p>\n<p>mkfs.ext3 \/dev\/sda1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #\u683cetx3<\/p>\n<p>mkfs.ext2 \/dev\/sda1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #\u683cetx2<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u6302\u8f7dwindows\u5171\u4eab\u6587\u4ef6 cifs\u3000<\/strong><\/p>\n<p>opkg install kmod-nls-utf8<br \/>\nopkg install kmod-fs-cifs<\/p>\n<p>mkdir \/mnt\/share<br \/>\nmount -t cifs \/\/192.168.1.2\/tool \/mnt\/share -o username=administrator,password=123456,,nounix,noserverino,iocharset=utf8<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>opkg update opkg install kmod-usb-core opkg install kmo [&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-1254","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/posts\/1254","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=1254"}],"version-history":[{"count":1,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/posts\/1254\/revisions"}],"predecessor-version":[{"id":1255,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/posts\/1254\/revisions\/1255"}],"wp:attachment":[{"href":"https:\/\/www.kumouse.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}