{"id":206,"date":"2017-01-22T16:34:09","date_gmt":"2017-01-22T07:34:09","guid":{"rendered":"https:\/\/blog.chanha.me\/?p=206"},"modified":"2017-01-31T23:41:11","modified_gmt":"2017-01-31T14:41:11","slug":"hdd-or-usb-%ec%9e%90%eb%8f%99-%eb%a7%88%ec%9a%b4%ed%8a%b8%ed%95%98%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/blog.chanha.kr\/?p=206","title":{"rendered":"HDD or USB \uc790\ub3d9 \ub9c8\uc6b4\ud2b8\ud558\uae30"},"content":{"rendered":"<p>NAS\ub97c \uc0ac\uc6a9\ud55c\ub2e4\uba74 \uae30\ubcf8\uc801\uc778 \uc6b4\uc601\uccb4\uc81c\uac00 \ub3cc\uc544\uac00\ub294 SSD\ub97c \uc81c\uc678\ud558\uace0 \ub300\uc6a9\ub7c9\uc758 \uc800\uc7a5\uacf5\uac04\uc744 \uc5bb\uae30\uc704\ud55c HDD\uc640 \uc8fc\uae30\uc801\uc778 \uc11c\ubc84\uc640 \ub370\uc774\ud130 \ubc31\uc5c5\uc744 \uc704\ud55c USB\ub97c \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \ub300\ubd80\ubd84\uc774\ub2e4.<\/p>\n<p>\uc790\ub3d9\uc801\uc73c\ub85c \ub9c8\uc6b4\ud2b8\ub418\ub294 \uc124\uc815\uc744 \ud574\uc8fc\uc9c0 \uc54a\ub294\ub2e4\uba74 \uc774\ub7ec\ud55c \uc678\ubd80\uc7a5\uce58\ub4e4\uc744 NAS\uac00 \uc758\ub3c4\uce58\uc54a\uac8c \uc7ac\ubd80\ud305\ub418\ub294 \uacbd\uc6b0\ub098 \uc124\uc815\uc744 \uc704\ud574 \uc7ac\ubd80\ud305\uc744 \ud558\ub294 \uacbd\uc6b0\uc5d0 \ub9e4\ubc88 \uc0c8\ub85c \ub9c8\uc6b4\ud2b8\ub97c \ud574\uc918\uc57c\ud55c\ub2e4\ub294 \ubd88\ud3b8\ud568\uc774 \uc788\ub2e4.<\/p>\n<blockquote><p>USB\ub97c \uc77c\uc2dc\uc801\uc73c\ub85c \ub9c8\uc6b4\ud2b8\ud558\uace0 \uc2f6\ub2e4\uba74<\/p>\n<pre class=\"lang:sh decode:true\">mount -t \/dev\/sd~~ &lt;\ub9c8\uc6b4\ud2b8\ud560 \ub514\ub809\ud1a0\ub9ac&gt;<\/pre>\n<p>\uba85\ub839\uc5b4\ub97c \ud1b5\ud574 \ub9c8\uc6b4\ud2b8\ud560 \uc218 \uc788\ub2e4. \u00a0\/dev\/sd~~\ub294 \uc544\ub798 fdisk -l\ub85c \ud655\uc778 \ud55c \ud30c\ud2f0\uc158 \uc815\ubcf4\ub97c \uc785\ub825\ud558\uba74 \ub41c\ub2e4.<\/p><\/blockquote>\n<p>\uadf8\ub798\uc11c \uc774\ubc88\uc5d4 \uc678\ubd80\uc7a5\uce58\ub4e4\uc744 \uc790\ub3d9\uc801\uc73c\ub85c \ub9c8\uc6b4\ud2b8\uc124\uc815\uc744 \ud574\uc8fc\ub294 \ubc29\ubc95\uc744 \uc54c\uc544\ubcf4\ub3c4\ub85d \ud558\uaca0\ub2e4.<\/p>\n<p>SSH\ub97c \ud1b5\ud574 NAS\uc5d0 \uc811\uc18d\ud55c\ub4a4 \uc6d0\ud558\ub294 \uc704\uce58\uc5d0<\/p>\n<pre class=\"lang:sh decode:true\">mkdir &lt;\uc6d0\ud558\ub294 \ub514\ub809\ud1a0\ub9ac \uc774\ub984&gt;<\/pre>\n<p>\uc744 \ud1b5\ud574 \ub9c8\uc6b4\ud2b8\ud560 \ub514\ub809\ud1a0\ub9ac\ub97c \ub9cc\ub4e0\ub2e4.<\/p>\n<p>\uadf8 \ud6c4<\/p>\n<pre class=\"lang:sh decode:true\"># \ud30c\ud2f0\uc158 \uc815\ubcf4 \ud655\uc778\r\nsudo fdisk -l\r\n\r\n# \uc804\uccb4 \ub514\uc2a4\ud06c\uc758 UUID \ud655\uc778\r\nls -l \/dev\/disk\/by-uuid<\/pre>\n<p>\uba85\ub839\uc5b4\ub97c \ud1b5\ud574 \uc544\ub798\uc640 \uac19\uc774 \ud30c\ud2f0\uc158 \uc815\ubcf4\uc640 \ub514\uc2a4\ud06c\uc758 UUID\ub97c \ud655\uc778 \ud560 \uc218 \uc788\ub2e4.<\/p>\n<p>sd*\ub85c \ub514\uc2a4\ud06c\uac00 \uad6c\ubd84\ub418\uace0 \uadf8 \ub4a4\uc758 \uc22b\uc790\ub85c \ud30c\ud2f0\uc158\uc774 \uad6c\ubd84\ub418\ub294 \uac83\uc744 \ud655\uc778\ud560 \uc218 \uc788\uace0 \uac01\uac01\uc758 \uc6a9\ub7c9\uacfc \ud0c0\uc785\ub4f1\uc758 \uc815\ubcf4\ub97c \uc5bb\uc744 \uc218 \uc788\ub2e4.<\/p>\n<figure id=\"attachment_213\" aria-describedby=\"caption-attachment-213\" style=\"width: 522px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blog.chanha.me\/wp-content\/uploads\/2017\/01\/fdisk.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-213 size-full\" src=\"https:\/\/blog.chanha.me\/wp-content\/uploads\/2017\/01\/fdisk.png\" width=\"522\" height=\"599\" srcset=\"https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/fdisk.png 522w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/fdisk-261x300.png 261w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/fdisk-520x597.png 520w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/fdisk-360x413.png 360w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/fdisk-250x287.png 250w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/fdisk-100x115.png 100w\" sizes=\"auto, (max-width: 522px) 100vw, 522px\" \/><\/a><figcaption id=\"caption-attachment-213\" class=\"wp-caption-text\">fdisk -l<\/figcaption><\/figure>\n<figure id=\"attachment_214\" aria-describedby=\"caption-attachment-214\" style=\"width: 729px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/blog.chanha.me\/wp-content\/uploads\/2017\/01\/uuid.png\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-214 size-full\" src=\"https:\/\/blog.chanha.me\/wp-content\/uploads\/2017\/01\/uuid.png\" width=\"729\" height=\"108\" srcset=\"https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/uuid.png 729w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/uuid-300x44.png 300w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/uuid-700x104.png 700w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/uuid-520x77.png 520w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/uuid-360x53.png 360w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/uuid-250x37.png 250w, https:\/\/blog.chanha.kr\/wp-content\/uploads\/2017\/01\/uuid-100x15.png 100w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/a><figcaption id=\"caption-attachment-214\" class=\"wp-caption-text\">ls -l \/dev\/disk\/byuuid<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>\uc704\uc758 \uc54c\uc544\ub0b8 UUID\ub97c\u00a0\/etc\/fstab\uc5d0 \ucd94\uac00\ud574\uc8fc\uba74 \uc790\ub3d9\uc801\uc73c\ub85c \ubd80\ud305\uc2dc\uc5d0 \ub9c8\uc6b4\ud305\uc774 \ub41c\ub2e4.<\/p>\n<pre class=\"lang:sh decode:true \">sudo vim \/etc\/fstab\r\n\r\nUUID=&lt;\uc704\uc5d0\uc11c \ud655\uc778\ud55c UUID&gt; &lt;\ub9c8\uc6b4\ud2b8\ud560 \ub514\ub809\ud1a0\ub9ac&gt; &lt;\ud30c\uc77c\uc2dc\uc2a4\ud15c\ud0c0\uc785&gt; &lt;\uc635\uc158&gt; &lt;dump&gt; &lt;pass&gt;<\/pre>\n<p>UUID\uc640 \ub9c8\uc6b4\ud2b8\ud560 \ub514\ub809\ud1a0\ub9ac\ub294 \uc704\uc5d0\uc11c \ud655\uc778\/\uc0dd\uc131\ud55c \uac12\uc73c\ub85c \uc9c0\uc815\ud558\uba74 \ub418\uace0,<\/p>\n<p>\ud30c\uc77c \uc2dc\uc2a4\ud15c \ud0c0\uc785\uc758 \uacbd\uc6b0 NTFS\uc77c \uacbd\uc6b0 ntfs-3g<br \/>\nexfat\uc77c \uacbd\uc6b0 exfat-fuse<br \/>\next4\uc77c \uacbd\uc6b0 ext4\ub85c \uc9c0\uc815\ud55c\ub2e4.<\/p>\n<blockquote><p>ntfs\uc640 exfat\uc758 \uacbd\uc6b0 \uac01\uac01 ntfs-3g\uc640 exfat-fuse\uac00 \uc124\uce58\ub418\uc5b4 \uc788\uc5b4\uc57c \ud558\uace0<\/p>\n<pre class=\"lang:sh decode:true\">#ntfs-3g \uc124\uce58\r\nsudo add-apt-repository ppa:gezakovacs\/ntfs-3g\r\nsudo apt-get update\r\nsudo apt-get install ntfs-3g\r\n\r\n#exfat-fuse\uc124\uce58\r\nsudo add-apt-repository ppa:relan\/exfat\r\nsudo apt-get update\r\nsudo apt-get install exfat-fuse exfat-utils<\/pre>\n<p>\uba85\ub839\uc5b4\ub97c \ud1b5\ud574 \uc124\uce58 \ud560 \uc218 \uc788\ub2e4.<\/p>\n<p>\uadf8\ub9ac\uace0 \ud639\uc5ec\ub098 \ud3ec\ub9f7\uc774 \ub418\uc5b4 \uc788\uc9c0 \uc54a\ub294 \uc0c1\ud0dc\ub77c\uba74<\/p>\n<pre class=\"lang:sh decode:true \">#ntfs\ub85c \ud3ec\ub9f7\r\nsudo mkntfs -f \/dev\/sd~~\r\n\r\n#exfat\ub85c \ud3ec\ub9f7\r\nsudo mkfs.exfat \/dev\/sd~~<\/pre>\n<p>sd~~\uc704\uc5d0\uc11c fdisk -l\ub85c \ud655\uc778\ud55c \ubd80\ubd84\uc744 \uc785\ub825\ud55c\ub2e4.<\/p>\n<pre class=\"lang:sh decode:true\">auto,users,permissions<\/pre>\n<p>\uc635\uc158\uc744 \uc8fc\uba74 NTFS\uc5d0 permission\ubd80\uc5ec\uac00 \uac00\ub2a5\ud574\uc9c4\ub2e4. (umask\uc640 \uac19\uc774 \uc0ac\uc6a9\ud574 \uad8c\ud55c \uc870\uc808\uac00\ub2a5)<\/p><\/blockquote>\n<p>\uc635\uc158\uc758 \uacbd\uc6b0 \uc544\ub798\uc640 \uac19\uc740 \uc635\uc158\uc774 \uc788\uc73c\uba70,<\/p>\n<blockquote>\n<ul>\n<li>default &#8211;\u00a0 \u00a0 rw, nouser, auto, exec, suid\uc18d\uc131\uc744 \ubaa8\ub450 \uc124\uc815<\/li>\n<li>auto\u00a0 \u00a0 &#8211;\u00a0 \u00a0 \ubd80\ud305\uc2dc \uc790\ub3d9\ub9c8\uc6b4\ud2b8<\/li>\n<li>noauto\u00a0 \u00a0 &#8211;\u00a0 \u00a0 \ubd80\ud305\uc2dc \uc790\ub3d9\ub9c8\uc6b4\ud2b8\ub97c \ud558\uc9c0\uc54a\uc74c<\/li>\n<li>exec\u00a0 \u00a0 &#8211;\u00a0 \u00a0 \uc2e4\ud589\ud30c\uc77c\uc774 \uc2e4\ud589\ub418\ub294\uac83\uc744 \ud5c8\uc6a9<\/li>\n<li>noexec\u00a0 \u00a0 &#8211;\u00a0 \u00a0 \uc2e4\ud589\ud30c\uc77c\uc774 \uc2e4\ud589\ub418\ub294\uac83\uc744 \ubd88\ud5c8\uc6a9<\/li>\n<li>suid\u00a0 \u00a0 &#8211;\u00a0 \u00a0 SetUID, SetGID \uc0ac\uc6a9\uc744 \ud5c8\uc6a9<\/li>\n<li>nosuid\u00a0 \u00a0 &#8211;\u00a0 \u00a0 SetUID, SetGID \uc0ac\uc6a9\uc744 \ubd88\ud5c8\uc6a9<\/li>\n<li>ro\u00a0 \u00a0 &#8211;\u00a0 \u00a0 \uc77d\uae30\uc804\uc6a9\uc758 \ud30c\uc77c\uc2dc\uc2a4\ud15c\uc73c\ub85c \uc124\uc815<\/li>\n<li>rw\u00a0 \u00a0 &#8211;\u00a0 \u00a0 \uc77d\uc2dc\/\uc4f0\uae30\uc804\uc6a9\uc758 \ud30c\uc77c\uc2dc\uc2a4\ud15c\uc73c\ub85c \uc124\uc815<\/li>\n<li>user\u00a0 \u00a0 &#8211;\u00a0 \u00a0 \uc77c\ubc18\uc0ac\uc6a9\uc790\u00a0\ub9c8\uc6b4\ud2b8 \uac00\ub2a5<\/li>\n<li>nouser\u00a0 \u00a0 &#8211;\u00a0 \u00a0 \uc77c\ubc18\uc0ac\uc6a9\uc790 \ub9c8\uc6b4\ud2b8\ubd88\uac00\ub2a5, root\ub9cc \uac00\ub2a5<\/li>\n<li>quota\u00a0 \u00a0 &#8211;\u00a0 \u00a0 Quota\uc124\uc815\uc774 \uac00\ub2a5<\/li>\n<li>noquota\u00a0 \u00a0 &#8211;\u00a0 \u00a0 Quota\uc124\uc815\uc774 \ubd88\uac00\ub2a5<\/li>\n<li>errors=remount-ro \u00a0 \u00a0&#8211; \u00a0 \u00a0rw\ub9c8\uc6b4\ud2b8 \uc2e4\ud328 \ub4f1\uc758 \uc5d0\ub7ec\uc2dc \uc77d\uae30\uc804\uc6a9\uc73c\ub85c \ub9c8\uc6b4\ud2b8<\/li>\n<li>umask &#8211; \ub9c8\uc6b4\ud2b8\uc2dc permission umask \uae30\ub2a5\uc744 \uc801\uc6a9<\/li>\n<\/ul>\n<\/blockquote>\n<p>dump\ub294\u00a0\ub364\ud504(\ubc31\uc5c5)\uac00 \ub418\uc5b4\uc57c \ud558\ub294\uc9c0 \uc124\uc815\ud558\ub294 \ud544\ub4dc\uc774\uace0,<\/p>\n<blockquote><p>0\u00a0 \u00a0 &#8211;\u00a0\u00a0\u00a0\u00a0\ub364\ud504\uac00 \ubd88\uac00\ub2a5\ud558\uac8c\u00a0\uc124\uc815<\/p>\n<p>1\u00a0 \u00a0 &#8211;\u00a0 \u00a0 \ub364\ud504\uac00\u00a0\uac00\ub2a5\ud558\uac8c \uc124\uc815<\/p><\/blockquote>\n<p>pass\ub294\ubb34\uacb0\uc131 \uac80\uc0ac \uc6b0\uc120\uc21c\uc704\ub97c \uc815\ud558\ub294 \uc635\uc158\uc774\ub2e4.<\/p>\n<blockquote><p>0\u00a0 \u00a0 &#8211;\u00a0 \u00a0 \ubb34\uacb0\uc131 \uac80\uc0ac X<\/p>\n<p>1\u00a0 \u00a0 &#8211;\u00a0 \u00a0 \uc6b0\uc120\uc21c\uc704 1\uc704\ub97c \ub73b\ud558\uba70, \ub300\ubd80\ubd84 \ub8e8\ud2b8\ubd80\ubd84\uc5d0 \uc124\uc815<\/p>\n<p>2\u00a0 \u00a0 &#8211;\u00a0 \u00a0 \uc6b0\uc120\uc21c\uc704 2\uc704\ub97c \ub73b\ud558\uba70, 1\uc704\ub97c \uac80\uc0ac\ud55c\ud6c4 2\uc704\ub97c \uac80\uc0ac<\/p>\n<p>\ub300\ubd80\ubd84 \ub8e8\ud2b8\ubd80\ubd84\uc774 1\uc774\uae30\ub54c\ubb38\uc5d0 \ub8e8\ud2b8\ubd80\ubd84 \uac80\uc0ac\ud6c4 \uac80\uc0ac<\/p><\/blockquote>\n<p>\uc800\uc7a5 \ud6c4 \uc7ac\ubd80\ud305\ud574\ubcf4\uba74 \uc815\uc0c1\uc801\uc73c\ub85c \ub9c8\uc6b4\ud305\ub418\ub294 \uac83\uc744 \ud655\uc778 \ud560 \uc218 \uc788\ub2e4.<\/p>\n<div class='ez_cc_license_block'><a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\"><img decoding=\"async\" alt=\"Creative Commons License\" style=\"border-width:0\" src=\"http:\/\/i.creativecommons.org\/l\/by-nc-sa\/4.0\/88x31.png\"\/><\/a><br\/>This work is licensed under a <a rel=\"license\" href=\"http:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License<\/a>.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>NAS\ub97c \uc0ac\uc6a9\ud55c\ub2e4\uba74 \uae30\ubcf8\uc801\uc778 \uc6b4\uc601\uccb4\uc81c\uac00 \ub3cc\uc544\uac00\ub294 SSD\ub97c \uc81c\uc678\ud558\uace0 \ub300\uc6a9\ub7c9\uc758 \uc800\uc7a5\uacf5\uac04\uc744 \uc5bb\uae30\uc704\ud55c HDD\uc640 \uc8fc\uae30\uc801\uc778 \uc11c\ubc84\uc640 \ub370\uc774\ud130 \ubc31\uc5c5\uc744 \uc704\ud55c USB\ub97c \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \ub300\ubd80\ubd84\uc774\ub2e4. \uc790\ub3d9\uc801\uc73c\ub85c \ub9c8\uc6b4\ud2b8\ub418\ub294 \uc124\uc815\uc744 \ud574\uc8fc\uc9c0 \uc54a\ub294\ub2e4\uba74 \uc774\ub7ec\ud55c \uc678\ubd80\uc7a5\uce58\ub4e4\uc744 NAS\uac00 \uc758\ub3c4\uce58\uc54a\uac8c \uc7ac\ubd80\ud305\ub418\ub294 \uacbd\uc6b0\ub098 \uc124\uc815\uc744 \uc704\ud574 \uc7ac\ubd80\ud305\uc744 \ud558\ub294 \uacbd\uc6b0\uc5d0 \ub9e4\ubc88 \uc0c8\ub85c \ub9c8\uc6b4\ud2b8\ub97c \ud574\uc918\uc57c\ud55c\ub2e4\ub294 \ubd88\ud3b8\ud568\uc774 \uc788\ub2e4. USB\ub97c \uc77c\uc2dc\uc801\uc73c\ub85c \ub9c8\uc6b4\ud2b8\ud558\uace0 \uc2f6\ub2e4\uba74 mount -t \/dev\/sd~~ &lt;\ub9c8\uc6b4\ud2b8\ud560 \ub514\ub809\ud1a0\ub9ac&gt; \uba85\ub839\uc5b4\ub97c \ud1b5\ud574 \ub9c8\uc6b4\ud2b8\ud560 \uc218 \uc788\ub2e4. \u00a0\/dev\/sd~~\ub294 \uc544\ub798 fdisk -l\ub85c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-206","post","type-post","status-publish","format-standard","hentry","category-nas","clearfix"],"_links":{"self":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts\/206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=206"}],"version-history":[{"count":12,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts\/206\/revisions"}],"predecessor-version":[{"id":442,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=\/wp\/v2\/posts\/206\/revisions\/442"}],"wp:attachment":[{"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.chanha.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}