{"id":3533,"date":"2018-07-16T10:01:58","date_gmt":"2018-07-16T02:01:58","guid":{"rendered":"http:\/\/cn.hostease.com\/xueyuan\/?p=3533"},"modified":"2018-07-19T13:35:52","modified_gmt":"2018-07-19T05:35:52","slug":"linux%e4%b8%ad%e6%b7%bb%e5%8a%a0%e6%96%b0%e7%a1%ac%e7%9b%98%e5%90%8e%e5%af%b9%e7%a1%ac%e7%9b%98%e7%9a%84%e5%88%86%e5%8c%ba%e4%bb%a5%e5%8f%8a%e6%8c%82%e8%bd%bd","status":"publish","type":"post","link":"https:\/\/cn.hostease.com\/xueyuan\/jishu\/linux\/linux%e4%b8%ad%e6%b7%bb%e5%8a%a0%e6%96%b0%e7%a1%ac%e7%9b%98%e5%90%8e%e5%af%b9%e7%a1%ac%e7%9b%98%e7%9a%84%e5%88%86%e5%8c%ba%e4%bb%a5%e5%8f%8a%e6%8c%82%e8%bd%bd\/","title":{"rendered":"Linux\u4e2d\u6dfb\u52a0\u65b0\u786c\u76d8\u540e\u5bf9\u786c\u76d8\u7684\u5206\u533a\u4ee5\u53ca\u6302\u8f7d"},"content":{"rendered":"<p>\u6211\u5c06\u4f7f\u7528VM\u6765\u8fdb\u884c\u6a21\u62df<\/p>\n<p>\u5148\u4f7f\u7528df\u770b\u4e0b\u6211\u7684\u7535\u8111\u786c\u76d8\u4fe1\u606f\uff1a<\/p>\n<p>df -h<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/180624080027603.png\" alt=\"\" border=\"0\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u53ea\u6709\u4e00\u4e2asda1\u5206\u533a\u88c5\u8f7d\/boot,\u8fd8\u6709\u4e00\u4e2a\u6269\u5c55\u5206\u533a<\/p>\n<p>\u67e5\u770bdev\u4e0b\u7684\u786c\u76d8\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/180624080027601.png\" alt=\"\" border=\"0\" \/><\/p>\n<p>\u53ea\u6709\u4e00\u4e2a\u786c\u76d8\uff08\u4e24\u4e2a\u5206\u533a\uff09<\/p>\n<p>\u6ce8\u610f\uff1a<\/p>\n<p>\u5982\u679c\u4f60\u662fIDE \u63a5 \u53e3 \u786c \u76d8 :\/dev\/dh[a-z]\uff0c\u8fd9\u91cc\u7684\u786c\u76d8\u540d\u5b57\u5e94\u8be5\u662fdh[a-z]\u5f00\u5934<\/p>\n<p>\u5982\u679c\u4f60\u662fSCSI \u63a5 \u53e3 \u786c \u76d8 : \/ dev\/[ a -z ],\u8fd9\u91cc\u7684\u786c\u76d8\u540d\u5b57\u5e94\u8be5\u662fsd[a-z]\u5f00\u5934<\/p>\n<p>\u63a5\u4e0b\u6765\u5c06\u8fdb\u884c\u53e6\u4e00\u5757\u786c\u76d8\u7684\u5b89\u88c5\uff1a<\/p>\n<p>1.\u5c06\u786c\u76d8\u88c5\u5728\u7535\u8111\u4e0a\uff0c\u91cd\u542f\u7535\u8111\uff0c\u540e\u67e5\u770b\/dev\/ \u4e0b\u6709\u6ca1\u591a\u4e86\u4e00\u5757\u786c\u76d8<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/180624080027602.png\" alt=\"\" border=\"0\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/180624080027604.png\" alt=\"\" border=\"0\" \/><\/p>\n<p>2.\u7528fdisk\u5bf9\u8fd9\u5757\u786c\u76d8\u5206\u533a<\/p>\n<p>fdisk \/dev\/sdb<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/180624080027605.png\" alt=\"\" border=\"0\" \/><\/p>\n<p>\u6309\u4e0bm\u663e\u793a\u83dc\u5355\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/180624080027606.png\" alt=\"\" border=\"0\" \/><\/p>\n<p>\u56e0\u4e3a\u8981\u65b0\u5efa\u5206\u533a\u9009\u62e9n<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/180624080027607.png\" alt=\"\" border=\"0\" \/><\/p>\n<p>\u8fd9\u91cc\u662f\u95ee\u4f60\u662f\u8981\u5efa\u7acb\u4e3b\u5206\u533a\u8fd8\u662f\u6269\u5c55\u5206\u533a\uff0c\u8fd9\u91cc\u662f\u7b2c\u4e00\u6b21\u5efa\u7acb\u9009\u62e9\u4e3b\u5206\u533ap<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/180624080027608.png\" alt=\"\" border=\"0\" \/><\/p>\n<p>\u56e0\u4e3a\u662fMBR\u5206\u533a\u53ea\u80fd\u67094\u4e2a\u5206\u533a\uff0c\u8fd9\u91cc\u5efa\u7acb\u7b2c\u4e00\u4e2a\u5206\u533a\uff0c\u8f93\u51651<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/180624080027609.png\" alt=\"\" border=\"0\" \/><\/p>\n<p>\u8fd9\u91cc\u95ee\u4f60\u4e2a\u5206\u533a\u7684\u8d77\u59cb\u6247\u533a\uff0c\u8fd9\u91cc\u76f4\u63a5\u56de\u8f66\uff08\u9ed8\u8ba4\uff09\uff0c\u76f8\u5f53\u4e8e\u8f93\u5165\u4e862048<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/1806240800276010.png\" alt=\"\" border=\"0\" \/><\/p>\n<p>\u8fd9\u91cc\u95ee\u4f60\u7684\u7ed3\u675f\u6247\u533a\uff0c\u8fd9\u91cc\u4e0d\u9700\u8981\u8ba1\u7b97\uff0c\u76f4\u63a5\u8f93\u5165+1G \u52a0\u53f7\u540e\u9762\u4e3a\u8fd9\u4e2a\u5206\u533a\u7684\u5927\u5c0f<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/1806240800276011.png\" alt=\"\" border=\"0\" \/><\/p>\n<p>\u6b64\u65f6\u7b2c\u4e00\u4e2a\u5206\u533a\u5df2\u7ecf\u5efa\u7acb\uff0c\u4f46\u8fd8\u662f\u5728\u5185\u5b58\u4e2d\u5e76\u6ca1\u6709\u5199\u5230\u786c\u76d8sdb\u4e2d\uff0c\u6240\u4ee5\u76f4\u63a5\u8f93\u5165w<\/p>\n<p>\u6ce8\u610f\u8fd9\u91cc\u53ef\u4ee5\u7ee7\u7eed\u521b\u5efa\u5206\u533a\uff0c\u5b8c\u4e86\u518d\u8f93\u5165w\uff0c\u6211\u8fd9\u91cc\u53ea\u5efa\u7acb\u4e00\u4e2a\u5206\u533a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/1806240800276012.png\" alt=\"\" border=\"0\" \/><\/p>\n<p>\u7ecf\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\u540e\u5206\u533a\u7684\u5efa\u7acb\u5df2\u7ecf\u5b8c\u6210\uff0c\u4f46\u662f\u6b64\u65f6\u7cfb\u7edf\u8fd8\u65e0\u6cd5\u8bc6\u522b\u5206\u533a\u8868<\/p>\n<p>3.\u5185\u6838\u91cd\u65b0\u8bfb\u53d6\u5206\u533a\u8868<\/p>\n<p>partprobe \/dev\/sdb<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/1806240800276013.png\" alt=\"\" border=\"0\" \/><\/p>\n<p>\u6ce8\u610f\uff1a\u8fd9\u91cc\u662f\u6574\u4e2a\u78c1\u76d8sdb\uff0c\u4e0d\u662f\u78c1\u76d8\u5206\u533asdb1<\/p>\n<p>4.\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf\uff08\u683c\u5f0f\u5316\u5206\u533a\uff09<\/p>\n<p>Linux \u4e2d\u7684\u4e3b\u6d41\u7684\u6587\u4ef6\u7cfb\u7edf\u6709\uff1aext4\u548cxfsd\u7b49<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/1806240800276014.png\" alt=\"\" border=\"0\" \/><\/p>\n<p>\u8fd9\u91cc\u6211\u5efa\u7acbext4\u6587\u4ef6\u7cfb\u7edf<\/p>\n<p>mkfs.ext4 \/dev\/sdb1<\/p>\n<p>\u6ce8\u610f\uff1a\u8fd9\u91cc\u662f\u78c1\u76d8\u5206\u533asdb1\uff0c\u4e0d\u662f\u6574\u4e2a\u78c1\u76d8sdb<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/1806240800276015.png\" alt=\"\" border=\"0\" \/><\/p>\n<p>5.\u6302\u8f7d<\/p>\n<p>\u5728\u6302\u8f7d\u4e4b\u524d\u4f60\u9700\u8981\u786e\u5b9a\u6302\u8f7d\u7684\u76ee\u5f55\uff0c\u6211\u8fd9\u91cc\u662f\/mnt\/sdb1-zhi\u3000\u3000,\u6ca1\u6709\u76ee\u5f55\u7684\u81ea\u5df1mkdir,\u8fd9\u91cc\u76ee\u5f55\u6700\u597d\u5efa\u7acb\u5728\/mnt\u4e0b\uff0c\u8fd9\u4e2a\u76ee\u5f55\u662f\u4e13\u95e8\u6302\u8f7d\u7684\uff0c\u53ef\u4ee5\u4efb\u610f\u3002<\/p>\n<p>\u5c06\u6765\u8fd9\u4e2a\u5206\u533a\u5c31\u4f1a\u4e0e\u8fd9\u4e2a\/mnt\/sdb1-zhi\u76ee\u5f55\u5efa\u7acb\u8054\u7cfb<\/p>\n<p>\u624b\u52a8\u6302\u8f7d<\/p>\n<p>mount \/dev\/sdb1 \/mnt\/sdb1-zhi\/<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/1806240800276016.png\" alt=\"\" border=\"0\" \/><\/p>\n<p>df\u4e00\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/1806240800276017.png\" alt=\"\" width=\"706\" border=\"0\" vspace=\"5\" \/><\/p>\n<p>\u8fd9\u91cc\u5df2\u7ecf\u6302\u8f7d\u6210\u529f\uff0c\u4f46\u662f\u8fd9\u53ea\u662f\u4e00\u6b21\u6027\u7684\uff0c\u91cd\u542f\u540e\u5c31\u4f1a\u6d88\u5931<\/p>\n<p>\u6c38\u4e45\u6302\u8f7d\uff1a<\/p>\n<p>\u8981\u5bf9\/etc\/fstab\u6587\u4ef6\u7f16\u8f91<\/p>\n<p>vim \/etc\/fstab<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/1806240800276018.png\" alt=\"\" width=\"706\" border=\"0\" vspace=\"5\" \/><\/p>\n<p>\u6bd4\u5982\u7b2c\u4e00\u884c\u4e2d<\/p>\n<div>\n<div><code>\u3000\u786c\u76d8\u8def\u5f84\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u6587\u4ef6\u8def\u5f84\uff08\u6302\u8f7d\u70b9\uff09\u3000\u3000\u3000\u3000\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u3000\u3000\u3000\u3000\u8bbe\u5907\u7684\u81ea\u5b9a\u4e49\u9009\u9879\u3000\u3000\u662f\u5426\u8f6c\u5b58\u3000\u3000fsck\u7684\u987a\u5e8f<\/code><\/div>\n<div><\/div>\n<div><code>\u3000\/dev\/mapper\/CentOS-root\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000 \/\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u3000xfs\u00a0 \u3000\u3000\u3000\u3000\u3000\u3000 \u3000defaults\u00a0 \u00a0 \u00a0 \u00a0 0 \u3000\u3000\u3000\u3000\u30000<\/code><\/div>\n<div><\/div>\n<div><code>\u3000UUID=e4ef36e1-0840-4a58-a4f7-c26f52ead6f1 \u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\/boot\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000xfs \u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000defaults \u3000\u3000\u3000 0\u3000\u3000\u3000\u3000\u3000 0<\/code><\/div>\n<div><\/div>\n<div><code>\u6211\u4eec\u8981\u5728\u6700\u540e\u4e00\u884c\u5199\u5165\u81ea\u5df1\u7684\u5206\u533a\u4e0e\u6587\u4ef6\u8def\u5f84\uff0c\u53ef\u4ee5\u4eff\u7167\u4e0a\u9762\u7684\u5199<\/code><\/div>\n<div><\/div>\n<div>\n<p><code>\u3000\u3000\/dev\/sdb1 \u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\/mnt\/sdb1-zhi \u3000\u3000\u3000\u3000\u3000ext4 \u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000defaults \u3000\u3000\u3000\u30000\u3000\u3000\u3000\u3000\u3000 0<\/code><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/1806240800276019.png\" alt=\"\" width=\"706\" border=\"0\" vspace=\"5\" \/><\/p>\n<p>\u8fd9\u91cc\u7b2c\u4e00\u5217\u4e5f\u53ef\u4ee5\u5199\u5165UUID<\/p>\n<p>UUID\u7684\u67e5\u8be2\uff1a<\/p>\n<p>blkid<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/1806240800276020.png\" alt=\"\" width=\"706\" border=\"0\" vspace=\"5\" \/><\/p>\n<p>\u8f6c\u5b58\uff1a0 \u4e0d\u8f6c\u5b58\uff0c\u4e0d\u5907\u4efd\u3000\u30001\u8f6c\u5b58\uff0c\u5907\u4efd<\/p>\n<p>fsck\uff1a\u5f00\u673a\u68c0\u67e5\u78c1\u76d8\u7684\u987a\u5e8f\u3000\u30000\u8868\u793a\u4e0d\u68c0\u67e5\u3000\u30001234&#8230;.\u4e3a\u68c0\u67e5\u987a\u5e8f<\/p>\n<p>\u4ee5\u4e0a\u6b65\u9aa4\u5b8c\u6210\u540e\uff0c\u8fd8\u9700\u8981\u5224\u65ad\u662f\u5426\u6b63\u786e<\/p>\n<p>mount -a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/1806240800276021.png\" alt=\"\" border=\"0\" \/><\/p>\n<p>\u5982\u679c\u6ca1\u6709\u5176\u4ed6\u4fe1\u606f\u51fa\u73b0\uff0c\u8868\u793a\u4f60\u63d2\u5165\u7684\u6b63\u786e\uff0c\u5426\u5219\u9519\u8bef\u3002<\/p>\n<p>\u5982\u679c\u9519\u8bef\u4e14\u6ca1\u6709\u68c0\u67e5\uff0c\u5f00\u673a\u540e\u5c06\u8fdb\u5165\u7d27\u6025\u6a21\u5f0f\uff0c\u65e0\u6cd5\u5f00\u673a<\/p>\n<p>\u6700\u540e\u5f00\u673a\u91cd\u542f\u540edf\u4e00\u4e0b\uff0c\u770b\u770b\u662f\u5426\u6b63\u5e38<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.linuxidc.com\/upload\/2018_06\/1806240800276022.png\" alt=\"\" width=\"706\" border=\"0\" vspace=\"5\" \/><\/p>\n<p>\u6700\u540e\u603b\u7ed3\u4e00\u4e0b<\/p>\n<p>1.fdisk \/dev\/sdb<\/p>\n<p>2.partprobe\u3000\u3000\/dev\/sdb<\/p>\n<p>3. mkfs.ext4\u3000\u3000 \/dev\/sdb1<\/p>\n<p>4.\u6302\u8f7d\u3000\u3000mount \u3000\u3000\/dev\/sdb1\u3000\u3000\/mnt\/sdb1-zhi<\/p>\n<p>vim \/etc\/fstab<\/p>\n<p>5.mount -a<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u5c06\u4f7f\u7528VM\u6765\u8fdb\u884c\u6a21\u62df \u5148\u4f7f\u7528df\u770b\u4e0b\u6211\u7684\u7535\u8111\u786c\u76d8\u4fe1\u606f\uff1a df -h \u53ef\u4ee5\u770b\u5230\u53ea\u6709\u4e00\u4e2asda1\u5206\u533a\u88c5\u8f7d\/boo &#8230; <a title=\"Linux\u4e2d\u6dfb\u52a0\u65b0\u786c\u76d8\u540e\u5bf9\u786c\u76d8\u7684\u5206\u533a\u4ee5\u53ca\u6302\u8f7d\" class=\"read-more\" href=\"https:\/\/cn.hostease.com\/xueyuan\/jishu\/linux\/linux%e4%b8%ad%e6%b7%bb%e5%8a%a0%e6%96%b0%e7%a1%ac%e7%9b%98%e5%90%8e%e5%af%b9%e7%a1%ac%e7%9b%98%e7%9a%84%e5%88%86%e5%8c%ba%e4%bb%a5%e5%8f%8a%e6%8c%82%e8%bd%bd\/\" aria-label=\"\u9605\u8bfb Linux\u4e2d\u6dfb\u52a0\u65b0\u786c\u76d8\u540e\u5bf9\u786c\u76d8\u7684\u5206\u533a\u4ee5\u53ca\u6302\u8f7d\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[49],"tags":[],"class_list":["post-3533","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/3533","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/comments?post=3533"}],"version-history":[{"count":2,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/3533\/revisions"}],"predecessor-version":[{"id":3603,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/3533\/revisions\/3603"}],"wp:attachment":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/media?parent=3533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/categories?post=3533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/tags?post=3533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}