{"id":660,"date":"2015-04-12T23:33:11","date_gmt":"2015-04-13T08:33:11","guid":{"rendered":"http:\/\/blog.box.kr\/?p=660"},"modified":"2015-04-12T23:33:11","modified_gmt":"2015-04-13T08:33:11","slug":"linux-devsdc1-is-apparently-in-use-by-the-system-will-not-make-a-filesystem-here","status":"publish","type":"post","link":"https:\/\/blog.box.kr\/?p=660","title":{"rendered":"[Linux] \/dev\/sdc1 is apparently in use by the system; will not make a filesystem here!"},"content":{"rendered":"<p>Centos \uc124\uce58 \ud558\uace0 HDD\ub97c \uc2e0\uaddc\ub85c INSTALL \ud560\ub54c fdisk \uae4c\uc9c0 \uc798 \ub410\ub294\ub370 \uc544\ub798\uc640 \uac19\uc740 \uc624\ub958 \ubc1c\uc0dd<\/p>\n<blockquote><p>[root@localhost ~]# mkfs.ext4 \/dev\/sdb1<br \/>\nmke2fs 1.42.9 (28-Dec-2013)<br \/>\n<strong>\/dev\/sdc1 is apparently in use by the system; will not make a filesystem here!<\/strong><\/blockquote>\n<p>\uc624\ub958 \ub0b4\uc6a9\uc744 \ubcf4\uba74 \ud574\ub2f9 \ub514\uc2a4\ud06c\uac00 \uc0ac\uc6a9\uc911\uc774\ub780\ub2e4.. \uc544.. ghost\uac00 \uc788\ub098?<br \/>\n\uc5f4\uc2ec\ud788 \ucc3e\uc544 \ubcf8 \uacb0\uacfc\u00a0 Disk Device\uc5d0 \ub300\ud55c Garbege\uc815\ubcf4\uac00 \uc788\uc5b4\uc11c \uadf8\ub807\ub2e8\ub2e4.<br \/>\n\uc0c1\ud0dc\ub97c \ud655\uc778 \ud558\uae30 \uc704\ud574\uc11c \ud574\ub2f9 \uba85\ub825\uc5b4 \uc2e4\ud589<\/p>\n<blockquote><p>\n[root@localhost ~]# dmsetup status<br \/>\n<span style=\"color: #ff0000;\">pdc_baghiehjhf1: 0 1048576000 linear <\/span><br \/>\n<span style=\"color: #ff0000;\">pdc_baghiehjhf: 0 3906898048 linear<\/span><br \/>\ncentos-swap: 0 37748736 linear<br \/>\ncentos-root: 0 451878912 linear<\/blockquote>\n<p>\ubcf4\uba74 \ubd89\uc740 \uc0c9\uc73c\ub85c Garbege\uac00 \uc874\uc7ac \ud55c\ub2e4 \uc774\ub97c clear \ud574\uc8fc\ub294 \uba85\ub839 \uc2e4\ud589 \ud6c4 \ub2e4\uc2dc \uc0c1\ud0dc \ud655\uc778<\/p>\n<blockquote><p>[root@localhost ~]# dmsetup remove_all<br \/>\n[root@localhost ~]# dmsetup status<br \/>\ncentos-swap: 0 37748736 linear<br \/>\ncentos-root: 0 451878912 linear<\/blockquote>\n<p>\uc774\uc81c \ub2e4\uc2dc \ubcf8 \uc791\uc5c5\uc778 \ud3ec\uba67\uc744 \ud574\ubcf4\uc790<\/p>\n<blockquote><p>[root@localhost ~]# mkfs.ext4 \/dev\/sdc1<br \/>\nmke2fs 1.42.9 (28-Dec-2013)<br \/>\nFilesystem label=<br \/>\nOS type: Linux<br \/>\nBlock size=4096 (log=2)<br \/>\nFragment size=4096 (log=2)<br \/>\nStride=0 blocks, Stripe width=0 blocks<br \/>\n122101760 inodes, 488378385 blocks<br \/>\n24418919 blocks (5.00%) reserved for the super user<br \/>\nFirst data block=0<br \/>\nMaximum filesystem blocks=2636120064<br \/>\n14905 block groups<br \/>\n32768 blocks per group, 32768 fragments per group<br \/>\n8192 inodes per group<br \/>\nSuperblock backups stored on blocks:<br \/>\n32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,<br \/>\n4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,<br \/>\n102400000, 214990848<\/p>\n<p>Allocating group tables: done<br \/>\nWriting inode tables: done<br \/>\nCreating journal (32768 blocks): done<br \/>\nWriting superblocks and filesystem accounting information:<\/blockquote>\n<p>\uc798\ub41c\ub2e4.. \uc774\uac70 \ub54c\ubb38\uc5d0 \uba87\uc77c \uace0\uc0dd \ud55c\ub4ef.. \uc544 \uc544\ub294\uac8c \ud798\uc774\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Centos \uc124\uce58 \ud558\uace0 HDD\ub97c \uc2e0\uaddc\ub85c INSTALL \ud560\ub54c fdisk \uae4c\uc9c0 \uc798 \ub410\ub294\ub370 \uc544\ub798\uc640 \uac19\uc740 \uc624\ub958 \ubc1c\uc0dd [root@localhost ~]# mkfs.ext4 \/dev\/sdb1 mke2fs 1.42.9 (28-Dec-2013) \/dev\/sdc1 is apparently in use by the system; will not make a filesystem here! \uc624\ub958 \ub0b4\uc6a9\uc744 \ubcf4\uba74 \ud574\ub2f9 \ub514\uc2a4\ud06c\uac00 \uc0ac\uc6a9\uc911\uc774\ub780\ub2e4.. \uc544.. ghost\uac00 \uc788\ub098? \uc5f4\uc2ec\ud788 \ucc3e\uc544 \ubcf8 \uacb0\uacfc\u00a0 Disk Device\uc5d0 \ub300\ud55c Garbege\uc815\ubcf4\uac00 \uc788\uc5b4\uc11c \uadf8\ub807\ub2e8\ub2e4. \uc0c1\ud0dc\ub97c \ud655\uc778 \ud558\uae30 \uc704\ud574\uc11c \ud574\ub2f9 \uba85\ub825\uc5b4 \uc2e4\ud589 [root@localhost ~]# dmsetup status pdc_baghiehjhf1: 0 1048576000 linear pdc_baghiehjhf: 0 3906898048 linear centos-swap: 0 37748736 linear centos-root: 0 451878912 linear \ubcf4\uba74 \ubd89\uc740 \uc0c9\uc73c\ub85c Garbege\uac00 \uc874\uc7ac \ud55c\ub2e4 \uc774\ub97c clear \ud574\uc8fc\ub294 \uba85\ub839 \uc2e4\ud589 \ud6c4 \ub2e4\uc2dc \uc0c1\ud0dc \ud655\uc778 [root@localhost ~]# dmsetup remove_all [root@localhost ~]# dmsetup status centos-swap: 0 37748736 linear centos-root: 0 451878912 linear \uc774\uc81c \ub2e4\uc2dc \ubcf8 \uc791\uc5c5\uc778 \ud3ec\uba67\uc744 \ud574\ubcf4\uc790 [root@localhost ~]# mkfs.ext4 \/dev\/sdc1 mke2fs 1.42.9 (28-Dec-2013) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 122101760 inodes, 488378385 blocks 24418919 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=2636120064 14905 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 102400000, 214990848 Allocating group [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"ngg_post_thumbnail":0,"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[5],"tags":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5q9Zn-aE","jetpack-related-posts":[{"id":662,"url":"https:\/\/blog.box.kr\/?p=662","url_meta":{"origin":660,"position":0},"title":"[Linux] disk mount","date":"2015-04-12","format":false,"excerpt":"mount \u2013t ext4 \/dev\/sdc1 \/desk mount \u2013t <\ud30c\uc77c\uc2dc\uc2a4\ud15c\ud615\uc2dd> <\ud30c\ud2f0\uc158\uba85> <\ub9c8\uc6b4\ud2b8\ud560\uc704\uce58> \u00a0 \ubd80\ud305\uc2dc\uc5d0 \uc790\ub3d9\uc73c\ub85c \ub9c8\uc6b4\ud2b8\ub97c \ub418\uac8c \ud558\uae30 \uc704\ud574\uc11c\ub294 \/etc\/fstab\u00a0\uc744 \uc218\uc815\ud574\ud568. Centos 6.3\ubd80\ud130\ub294 fstab \ub9c8\uc6b4\ud2b8\uc5d0 UUID\ub97c \uc774\uc6a9\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. UUID\ub97c \ud655\uc778\ud558\uae30 \uc704\ud574\uc11c\ub294 blkid \uba85\ub839\uc5b4\ub97c \uc774\uc6a9\ud558\uac70\ub098 ls \u2013l \/dev\/disk\/by-uuid \ub97c \ud1b5\ud574\uc11c \ud655\uc778 \ud558\uc2e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4. [root@localhost bin]# ls -lals \u2013l \/dev\/disk\/by-uuid ls: cannot access\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":675,"url":"https:\/\/blog.box.kr\/?p=675","url_meta":{"origin":660,"position":1},"title":"[Linux] CentOS 7 \/ RHEL 7\uc5d0 redis \uc124\uce58 \ud558\uae30","date":"2015-04-13","format":false,"excerpt":"Project URL : http:\/\/redis.io\/ CentOS 7 and Red Hat Enterprise Linux 7\uc5d0\uc11c Redis\ub97c \uc124\uce58 \ud558\ub294 \ubc29\ubc95 EPEL \uc800\uc7a5\uc18c \ub4f1\ub85d \ud558\uae30 EPEL \uc800\uc7a5\uc18c\ub97c \uba3c\uc800 \ub4f1\ub85d\ud55c\ub2e4. wget -r --no-parent -A 'epel-release-*.rpm' http:\/\/dl.fedoraproject.org\/pub\/epel\/7\/x86_64\/e\/ rpm -Uvh dl.fedoraproject.org\/pub\/epel\/7\/x86_64\/e\/epel-release-*.rpm \/etc\/yum.repos.d\u00a0 \ud558\uc704 \ub514\ub809\ud1a0\ub9ac\uc5d0 \uc544\ub798\uc640 \uac19\uc774 2\uac1c\uc758 epel \uc800\uc7a5\uc18c\uac00 \ub4f1\ub85d\ub41c\ub2e4. 1. epel.repo 2.epel-testing.repo [root@localhost ~]# ls -l \/etc\/yum.repos.d\/\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":657,"url":"https:\/\/blog.box.kr\/?p=657","url_meta":{"origin":660,"position":2},"title":"RAID\ub85c \uc0ac\uc6a9\ud558\ub358 HDD\ub97c LINUX\uc5d0\uc11c \uc0ac\uc6a9\ud558\uae30.","date":"2015-04-12","format":false,"excerpt":"RAID\ub85c \ubb36\uc5b4 \uc4f0\ub358 ( RAID-1 ) HDD\uc5d0 CENTOS 7 \ub97c \uc124\uce58 \ud558\ub824\ub2e4\ubcf4\ub2c8 \ud3ec\uba67\uc774 \uc548\ub41c\ub2e4. \ubb54\uac00 \uc790\uafb8 \uc5d0\ub7ec\uac00 \ub098\uba74\uc11c \ub098\ub97c \uad34\ub86d\ud614\ub2e4. \uadf8\ub798\uc11c \uc5f4\uc2ec\ud788 \ucc3e\uc544 \ubcf4\ub2c8.. RAID\ub85c \ubb36\uc73c\uba74, \uc774 HDD\uac00 RAID\uc758 \uad6c\uc131\uc6d0\uc774 \uc5c8\ub2e4\ub294 \ub099\uc778?? \uc815\ubcf4\ub97c HDD\uc758 \ud2b9\uc815 \uc601\uc5ed\uc5d0 \uc801\uc5b4\ub194\uc11c \uc774\ub97c \ub2e4\ub978 OS\ub098 Utility's\uc5d0\uc11c \uc798\ubabb\ub41c \uc0ac\uc6a9\uc744 \ub9c9\ub294 \uae30\ub2a5\uc774 \uc788\ub098\ubcf4\ub2e4.. \ub098\ub294 \uc774 HDD\uac00 RAID\uc5d0\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":853,"url":"https:\/\/blog.box.kr\/?p=853","url_meta":{"origin":660,"position":3},"title":"[scrap]\ub9ac\ub205\uc2a4\uc5d0\uc11c vsftp\uc124\uc815(530\uc5d0\ub7ec, 500\uc5d0\ub7ec, root \ub85c\uadf8\uc778 \uc2e4\ud328 \ud3ec\ud568)","date":"2015-05-20","format":false,"excerpt":"http:\/\/dryad.kr\/bbs\/board.php?bo_table=rboard01&wr_id=200 \u00a0 \ub9ac\ub205\uc2a4 :\u00a0CentOS 5.6 vsFTPD\u00a0: Very Secure FTPD vsftpd FTP \uc11c\ubc84\uc5d0 \ub300\ud574 vsftpd\ub294 UNIX \uc2dc\uc2a4\ud15c\uc5d0\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 free FTP \uc11c\ubc84(\ub77c\uc774\uc13c\uc2a4\ub294 GPL)\uc774\ub2e4. vsftpd\uac00 \ub0b4\uc138\uc6b0\uace0 \uc788\ub294 \uac83\uc740 \ubcf4\uc548, \uc131\ub2a5, \uc548\uc815\uc131\uc774\ub2e4. \uc9c0\uae08\uae4c\uc9c0 vsftpd\uc758 \uc790\uccb4 \ubcf4\uc548 \ubb38\uc81c\uac00 \uc788\uc5b4 \ubcf4\uc548\uad8c\uace0\uac00 \ub098\uc628 \uc801\uc740 \uc5c6\ub2e4.(Redhat\uc758 rpm \ud328\ud0a4\uc9c0\uc911\uc5d0 tcp_wrappers \uc9c0\uc6d0\uc5c6\uc774 \ub9cc\ub4e4\uc5b4\uc838\uc11c \uc5c5\ub370\uc774\ud2b8 rpm\uc740 \ub098\uc628 \uc801 \uc788\uc74c)\u2026","rel":"","context":"In &quot;\uae30\uc220&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":775,"url":"https:\/\/blog.box.kr\/?p=775","url_meta":{"origin":660,"position":4},"title":"Setup mail server on centos 7","date":"2015-05-12","format":false,"excerpt":"This article helps you to install and configure basic mail server on Centos 7. Here i have used Postfix for SMTP, Dovecot for POP\/IMAP and Dovecot SASL for SMTP AUTH. Before proceeding please make sure you have assigned static IP for the server and have internet connectivity for installing packages.\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"Setup mail server on centos 7","src":"https:\/\/i0.wp.com\/1-ps.googleusercontent.com\/hk\/AwAJwg9ecIBNxEHGg0w8SfePD8\/www.krizna.com\/wp-content\/uploads\/2015\/01\/Setup_mail_server_centos_7.png.pagespeed.ce._so1uJb5qKCs4NSN7OOP.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":729,"url":"https:\/\/blog.box.kr\/?p=729","url_meta":{"origin":660,"position":5},"title":"install PostgreSQL on CentOS7","date":"2015-04-21","format":false,"excerpt":"1.\u00a0Install ( \u00a02015-04-21 > \ucd5c\uc2e0 \ubc84\uc804\uc740 9.4\u00a0 ) [root@localhost ~]# rpm -Uvh http:\/\/yum.postgresql.org\/9.4\/redhat\/rhel-7-x86_64\/pgdg-centos94-9.4-1.noarch.rpm http:\/\/yum.postgresql.org\/9.4\/redhat\/rhel-7-x86_64\/pgdg-centos94-9.4-1.noarch.rpm(\uc744)\ub97c \ubcf5\uad6c\ud569\ub2c8\ub2e4 \uacbd\uace0: \/var\/tmp\/rpm-tmp.z0BMz8: Header V4 DSA\/SHA1 Signature, key ID 442df0f8: NOKEY \uc900\ube44 \uc911...\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ################################# [100%] Updating \/ installing... 1:pgdg-centos94-9.4-1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ################################# [100%] [root@localhost ~]# yum install postgresql94 postgresql94-server postgresql94-libs postgresql94-contrib postgresql94 Loaded plugins: fastestmirror, langpacks http:\/\/linuxdownload.adobe.com\/linux\/x86_64\/repodata\/repomd.xml: [Errno\u2026","rel":"","context":"In &quot;\uae30\uc220&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/660"}],"collection":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=660"}],"version-history":[{"count":0,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/660\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}