{"id":8928,"date":"2017-10-09T23:12:19","date_gmt":"2017-10-09T14:12:19","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=8928"},"modified":"2017-10-09T23:14:09","modified_gmt":"2017-10-09T14:14:09","slug":"%e3%83%a9%e3%82%ba%e3%83%91%e3%82%a42%e3%81%a7nas%e3%82%92%e4%bd%9c%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www.moonmile.net\/blog\/archives\/8928","title":{"rendered":"\u30e9\u30ba\u30d1\u30a42\u3067NAS\u3092\u4f5c\u308b"},"content":{"rendered":"<p>\u4ee5\u524d\u304b\u3089\u3001\u696d\u52d9PC\u5185\u3067\u52d5\u3044\u3066\u3044\u305f\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u306a\u306e\u3067\u3059\u304c\u3001\u53bb\u5e74\u3042\u305f\u308a\u304b\u3089\u5225\u306ePC\u304b\u3089\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u30fc\u304c\u898b\u308c\u306a\u304f\u306a\u3063\u3066\uff08\u696d\u52d9PC\u304b\u3089\u5bb6\u5ead\u7528PC\u306f\u898b\u308c\u308b\uff09\u3001\u5171\u6709\u81ea\u4f53\u304c\u5909\u306a\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u3053\u3053\u6570\u65e5\u3042\u308c\u3053\u308c\u3068\u5f04\u3063\u3066\u60a9\u3093\u3067\u306f\u3044\u305f\u3093\u3067\u3059\u304c\u3001\u9762\u5012\u306a\u306e\u3067 NAS \u306b\u3057\u3066\u3057\u307e\u304a\u3046\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30e9\u30ba\u30d1\u30a4\u3067NAS\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<p>NAS \u3068\u306f\u3044\u3048\u3001\u7c21\u5358\u306a\u30d5\u30a1\u30a4\u30eb\u7f6e\u304d\u5834\u3067\u3059\u3002\u4e3b\u306b\u52d5\u753b\u30d5\u30a1\u30a4\u30eb\u304c\u7f6e\u3044\u3066\u3042\u308b\u308f\u3051\u3067\u3001Windows PC \u304b\u3089\u30d5\u30a9\u30eb\u30c0\u304c\u898b\u308c\u308c\u3070ok\u3002\u3068\u3044\u3046\u3053\u3068\u306f\u3001Linux + Samba \u3067\u8a2d\u5b9a\u3059\u308b\u3060\u3051\u3067\u5341\u5206\u306a\u306e\u3067\u3001\u4ed5\u7d44\u307f\u306f\u7c21\u5358\u3067\u3059\u3002<\/p>\n<h2>\u6e96\u5099\u3057\u305f\u3082\u306e<\/h2>\n<p>HDD \u306f\u5bb6\u5ead\u7528\u306a\u306e\u3067 RAID \u306a\u3069\u306f\u7d44\u307e\u305a\u3001\u3061\u3087\u3063\u3068\u4e0d\u8abf\u6c17\u5473\u3060\u3063\u305f PC \u304b\u3089 2TB \u306e 3.5 \u30a4\u30f3\u30c1 HDD \u3092\u53d6\u308a\u5916\u3057\u3066\u4f7f\u3044\u307e\u3057\u305f\u3002\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u304c\u4e0d\u8abf\u3060\u3063\u305f\u306e\u3067\u3001\u696d\u52d9\/\u5bb6\u5ead\u7528PC\u306b\u4e8c\u91cd\u5316\u3055\u308c\u3066\u3057\u307e\u3063\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u3072\u3068\u3064\u306b\u307e\u3068\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u30c8\u30fc\u30bf\u30eb\u306e\u5bb9\u91cf\u304c\u6e1b\u308a\u307e\u3059\u3002\u3042\u3068\u3001\u30e9\u30ba\u30d1\u30a4\u306f\u4f59\u3063\u3066\u3044\u305f Raspberry Pi 2 \u3092\u4f7f\u3044\u307e\u3059\u3002\u8ee2\u9001\u30b9\u30d4\u30fc\u30c9\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001\u6709\u7dda LAN \u3092\u4f7f\u3046\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u8d77\u52d5\u3059\u308b\u3060\u3051\u306a\u306e\u3067\u30e2\u30cb\u30bf\u3084\u30ad\u30fc\u30dc\u30fc\u30c9\u3082\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<ul>\n<li>Raspberry Pi 2<\/li>\n<li>HDD 2TB 3.5 \u30a4\u30f3\u30c1<\/li>\n<li><a href=\"https:\/\/www.amazon.co.jp\/gp\/product\/B016HVBQ3K\/ref=oh_aui_detailpage_o02_s00?ie=UTF8&amp;psc=1\">UGREEN SATA USB2.0 \u5909\u63db\u30a2\u30c0\u30d7\u30bf<\/a><\/li>\n<li>LAN \u30b1\u30fc\u30d6\u30eb<\/li>\n<li>micro USB \u30b1\u30fc\u30d6\u30eb<\/li>\n<\/ul>\n<p>\u8cb7\u3063\u305f\u306e\u306f\u3001\u5909\u63db\u30a2\u30c0\u30d7\u30bf 1,700\u5186\u4e5f\u306e\u307f\u3067\u3059\u3002\u5f8c\u8ff0\u3057\u307e\u3059\u304c\u3001\u30d7\u30e9\u30e2\u30c7\u30eb\u306e\u7a7a\u304d\u7bb1\u3067\u4ee3\u7528\u3067\u3059\u3002<\/p>\n<p>3.5 \u30a4\u30f3\u30c1\u306e HDD \u306f\u3001\u99c6\u52d5\u306b 5V\u306812V \u304c\u5fc5\u8981\u3068\u306a\u308b\u305f\u3081\u3001\u30a2\u30c0\u30d7\u30bf\u4ed8\u304d\u306e\u5909\u63db\u30b1\u30fc\u30d6\u30eb\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u30ce\u30fc\u30c8\u30d6\u30c3\u30af\u3067\u4f7f\u308f\u308c\u308b 2.5 \u30a4\u30f3\u30c1\u306e HDD \u3042\u308b\u3044\u306f SSD \u306f 5V \u306e\u307f\u3067\u52d5\u304f\u306e\u3067 PC \u306e\u7d66\u96fb\u306e\u307f\u3067\u99c6\u52d5\u3057\u307e\u3059\uff08\u30d6\u30fc\u30c8\u30c7\u30a3\u30b9\u30af\u306f\u96fb\u529b\u304c\u5fc5\u8981\u3068\u306a\u308b\u306e\u3067\u3001\u7121\u7406\u306a\u306e\u3067\u3059\u304c\u3001\u5f8c\u304b\u3089\u30de\u30a6\u30f3\u30c8\u3059\u308b\u3060\u3051\u306a\u3089\u3070\u7d66\u96fb\u306e5V\u3060\u3051\u3067\u5341\u5206\u3067\u3059\uff09\u3002\u3053\u308c\u306f Raspberry Pi \u306e USB \u3067\u3082\u554f\u984c\u306a\u304f\u52d5\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>Raspbian \u3067\u6e96\u5099\u3059\u308b<\/h2>\n<p>Raspbian \u3092 micro SD \u306b\u713c\u3044\u3066\u3001\u30de\u30a6\u30f3\u30c8\u3067\u304d\u308b\u6e96\u5099\u3092\u3057\u307e\u3059\u3002\u30e9\u30ba\u30d1\u30a4\u3067\u4f5c\u308b\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u306f\u3001Linux \u3067\u8aad\u307f\u8fbc\u3081\u308b\u3088\u3046\u306b\u518d\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304c\u5fc5\u8981\u3060\u3063\u305f\u306e\u3067\u3059\u304c\u3001ntfs-3g \u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5165\u308c\u308b\u3068 NTFS \u3067\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3057\u305f\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u3081\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u3001\u7c21\u5358\u306a\u624b\u9806\u3067\u3059\u3002<\/p>\n<ul>\n<li>PC \u3067 HDD \u3092 NTFS \u5f62\u5f0f\u3067\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\n<ul>\n<li>\u30dc\u30ea\u30e5\u30fc\u30e0\u540d\u3092\u300chdd1\u300d\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u304a\u304f\u3002<\/li>\n<\/ul>\n<\/li>\n<li>micro SD \u306b Raspbian \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n<ul>\n<li>boot \u30c9\u30e9\u30a4\u30d6\u306b \u201cssh\u201d \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u304f\uff08ssh\u304c\u6709\u52b9\u306b\u306a\u308b\uff09<\/li>\n<\/ul>\n<\/li>\n<li>\u30e9\u30ba\u30d1\u30a4\u3067\u8d77\u52d5\n<ul>\n<li>passwd \u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4\u3002\u7de9\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u4f7f\u3044\u305f\u3044\u3068\u304d\u306f raspi-config \u3092\u4f7f\u3063\u3066\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3059\u308c\u3070 ok.<\/li>\n<li>raspi-config \u3067\u30db\u30b9\u30c8\u540d\u3092 \u201craspberry\u201d \u304b\u3089 \u201cnaspi\u201d \u5909\u3048\u3066\u304a\u304f<\/li>\n<li>sudo apt-get update<\/li>\n<li>sudo apt-get upgrade<\/li>\n<li>sudo apt-get avahi-daemon \uff08\u65e2\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u304b\u3082\uff09<\/li>\n<li>reboot<\/li>\n<\/ul>\n<\/li>\n<li>HDD \u3092\u5909\u63db\u30a2\u30c0\u30d7\u30bf\u3067\u30e9\u30ba\u30d1\u30a4\u306b\u7e4b\u3052\u308b\n<ul>\n<li>\/media\/pi\/hdd1 \u306e\u3088\u3046\u306b\u81ea\u52d5\u3067\u30de\u30a6\u30f3\u30c8\u3055\u308c\u308b\u3002<\/li>\n<\/ul>\n<\/li>\n<li>sudo apt-get install samba\n<ul>\n<li>\/etc\/samba\/smb.conf \u3092\u7de8\u96c6\u3059\u308b<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>[hdd1]<br \/>\npath\u00a0\u00a0\u00a0\u00a0\u00a0 = \/media\/pi\/hdd1<br \/>\nread only = No<br \/>\nguest ok\u00a0 = Yes<br \/>\nforce user= pi<\/p>\n<ul>\n<li>reboot \u3059\u308b\u304b\u3001sudo \/etc\/init.d\/samba restart \u3059\u308b\u3002<\/li>\n<\/ul>\n<p>\u3053\u3046\u3059\u308b\u3068\u3001Windows \u306e pc \u304b\u3089\u3001<a href=\"file:\/\/\\\\naspi.local\\hdd1\">\\\\naspi.local\\hdd1<\/a> \u3067\u30a2\u30af\u30bb\u30b9\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30b1\u30fc\u30b9\u3092\u4f5c\u308b<\/h2>\n<p>\u307b\u3069\u3088\u304f\u52d5\u4f5c\u78ba\u8a8d\u304c\u3067\u304d\u305f\u3089\u3001\u81ea\u524d\u306e\u30b1\u30fc\u30b9\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/10\/image-9.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/10\/image_thumb-9.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"479\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/10\/image-10.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/10\/image_thumb-10.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"480\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<p>\u4f5c\u308b\u3068\u3044\u3046\u307b\u3069\u3067\u3082\u3042\u308a\u307e\u305b\u3093\u3002\u5358\u306b\u7a7a\u304d\u7bb1\u306b\u5165\u308c\u3066\u3044\u308b\u3060\u3051\u3067\u3059\u306d\u3002<\/p>\n<h2>\u304a\u307e\u3051<\/h2>\n<p>\u3053\u306e\u6620\u50cf\u306aNAS\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306e\u306b\u3001\u3044\u3061\u3044\u3061 <a href=\"file:\/\/\\\\nasipi.local\\hdd1\">\\\\nasipi.local\\hdd1<\/a> \u306a\u3093\u3066\u306e\u3092\u63a2\u3063\u3066\u3044\u3066\u306f\u9762\u5012\u306a\u306e\u3067\u3001Windows 10 \u3067\u6a19\u6e96\u306b\u3064\u3044\u3066\u3044\u308b\u300c\u6620\u753b&amp;\u30c6\u30ec\u30d3\u300d\u306e\u30a2\u30d7\u30ea\u3067\u3001\u30d5\u30a9\u30eb\u30c0\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/10\/image-11.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/10\/image_thumb-11.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"448\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<p>\u305d\u3046\u3059\u308b\u3068\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u300c\u30d3\u30c7\u30aa\u300d\u30d5\u30a9\u30eb\u30c0\u306b\u8ffd\u52a0\u3055\u308c\u3066\u3001\u5404\u52d5\u753b\u30d5\u30a1\u30a4\u30eb\u3092\u30b5\u30e0\u30cd\u30fc\u30eb\u4ed8\u304d\u3067\u53c2\u7167\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/10\/image-12.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2017\/10\/image_thumb-12.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"392\" style=\"margin: 0px; border: 0px currentcolor; display: inline; background-image: none;\" \/><\/a><\/p>\n<p>\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30d3\u30c7\u30aa\u30d5\u30a9\u30eb\u30c0\u306f\u3001UWP \u30a2\u30d7\u30ea\u304b\u3089\u76f4\u63a5\u53c2\u7167\u3067\u304d\u308b\u3001Windows.Storage.KnownFolders.VideosLibrary \u304b\u3089\u5b89\u5168\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u2026\u3068\u3044\u3046\u30c8\u30ea\u30c3\u30af\u304c\u3042\u3063\u3066\u3067\u3059\u306d\u3002\u3053\u308c\u306f\u5f8c\u65e5\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u6d88\u8cbb\u96fb\u529b\u3068\u3057\u3066\u306f\u3001\u30e9\u30ba\u30d1\u30a4+HDD\u306e\u307f\u306a\u306e\u3067\u304b\u306a\u308a\u4f4e\u304f\u306a\u308a\u307e\u3059\u3002\u901a\u5e38\u6642\u3067 6.0W \u6620\u50cf\u914d\u4fe1\u6642\u306b 6.9W \u3050\u3089\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u524d\u304b\u3089\u3001\u696d\u52d9PC\u5185\u3067\u52d5\u3044\u3066\u3044\u305f\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u30fc\u306a\u306e\u3067\u3059\u304c\u3001\u53bb\u5e74\u3042\u305f\u308a\u304b\u3089\u5225\u306ePC\u304b\u3089\u5171\u6709\u30d5\u30a9\u30eb\u30c0\u30fc\u304c\u898b\u308c\u306a\u304f\u306a\u3063\u3066\uff08\u696d\u52d9PC\u304b\u3089\u5bb6\u5ead\u7528PC\u306f\u898b\u308c\u308b\uff09\u3001\u5171\u6709\u81ea\u4f53\u304c\u5909\u306a\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u3053\u3053\u6570\u65e5\u3042\u308c\u3053\u308c\u3068\u5f04\u3063\u3066\u60a9\u3093\u3067\u306f &hellip; <a href=\"https:\/\/www.moonmile.net\/blog\/archives\/8928\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[67],"tags":[],"class_list":["post-8928","post","type-post","status-publish","format-standard","hentry","category-raspberrypi"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/8928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=8928"}],"version-history":[{"count":3,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/8928\/revisions"}],"predecessor-version":[{"id":8931,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/8928\/revisions\/8931"}],"wp:attachment":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=8928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=8928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=8928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}