{"id":2229,"date":"2018-11-15T10:35:04","date_gmt":"2018-11-15T02:35:04","guid":{"rendered":"https:\/\/damogame.cn:15443\/wordpress\/?p=2229"},"modified":"2018-11-15T10:35:04","modified_gmt":"2018-11-15T02:35:04","slug":"linux%e6%b7%bb%e5%8a%a0%e6%96%b0%e7%a1%ac%e7%9b%98%e5%88%86%e5%8c%ba","status":"publish","type":"post","link":"https:\/\/i007.cc\/wordpress\/archives\/2229","title":{"rendered":"linux\u6dfb\u52a0\u65b0\u786c\u76d8\u5206\u533a"},"content":{"rendered":"<div class=\"clear\"><strong>\u4e00\u3001\u6dfb\u52a0\u786c\u76d8<\/strong><\/div>\n<div class=\"postBody\">\n<div id=\"cnblogs_post_body\" class=\"blogpost-body\">\n<div><strong>1\u3001\u9009\u62e9\u201cVM\u201d&#8212;-\u201csetting\u201d\u5e76\u6253\u5f00\uff0c\u5c06\u5149\u6807\u5b9a\u4f4d\u5728hard Disk\u8fd9\u4e00\u9009\u9879\uff0c\u7136\u540e\u70b9\u51fb\u4e0b\u65b9\u7684Add\u6309\u94ae<\/strong><\/div>\n<div><strong><img decoding=\"async\" src=\"https:\/\/images2017.cnblogs.com\/blog\/1098160\/201710\/1098160-20171018103735209-514303855.png\" alt=\"\" \/><\/strong>&nbsp;<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong>2\u3001\u70b9\u51fbnext\uff0c\u6267\u884c\u4e0b\u4e00\u4e2a\u6b65\u9aa4<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/my.csdn.net\/uploads\/201204\/21\/1334942092_4228.PNG\" alt=\"\" \/><\/p>\n<p><strong>3\u3001\u6839\u636e\u63d0\u793a\uff0c\u521b\u5efa\u4e00\u4e2a\u865a\u62df\u7684\u78c1\u76d8\uff0c\u5e76\u70b9\u51fb\u4e0b\u4e00\u6b65<\/strong><\/p>\n<p><strong>\u00a0<img decoding=\"async\" src=\"http:\/\/my.csdn.net\/uploads\/201204\/21\/1334942139_1872.PNG\" alt=\"\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u00a04\u3001\u6309\u7167\u9ed8\u8ba4\u7684\uff0c\u9009\u62e9SCSI\u683c\u5f0f\u7684\u78c1\u76d8\u5373\u53ef\uff0c\u70b9\u51fbnext\u6267\u884c\u4e0b\u4e00\u6b65<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/my.csdn.net\/uploads\/201204\/21\/1334942157_1491.PNG\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>5\u3001\u6309\u7167\u9ed8\u8ba4\u7684\u70b9\u51fb\u4e0b\u4e00\u6b65\u5373\u53ef\u5b8c\u6210\u865a\u62df\u78c1\u76d8\u7684\u6dfb\u52a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/my.csdn.net\/uploads\/201204\/21\/1334942191_4106.PNG\" alt=\"\" \/><\/p>\n<p>\u4e4b\u540e\u4f7f\u7528 fdisk -l\u547d\u4ee4\u4f1a\u67e5\u8be2\u4e0d\u5230\u65b0\u589e\u52a0\u7684\u8bbe\u5907\uff0c\u9700\u8981\u624b\u52a8\u626b\u63cf\u6216\u8005\u91cd\u65b0\u542f\u52a8\u865a\u62df\u673a<\/p>\n<p>1.\u8fdb\u5165\/sys\/class\/scsi_host\/\u76ee\u5f55\uff0c\u8f93\u5165ls\u67e5\u770b\u6240\u542b\u6587\u4ef6<\/p>\n<p>2.\u6267\u884cecho &#8220;- &#8211; -&#8221; &gt; \u00a0\/sys\/class\/scsi_host\/host0\/scan \u00a0\u547d\u4ee4\u4f7f\u4e3b\u673a\u8bc6\u522b\u65b0\u589e\u7684\u786c\u76d8\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/images2017.cnblogs.com\/blog\/1098160\/201710\/1098160-20171018103942443-1903075048.png\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<p align=\"justify\">\u00a0\u00a0\u00a0\u7ea2\u8272\u90e8\u5206\u4f9d\u6b21\u6539\u6210\u7b2c2\u6b65\u65f6\u770b\u5230\u7684\u6587\u4ef6\u540d\u3002<\/p>\n<p align=\"justify\">\u4e8c\u3001\u5bf9\u6dfb\u52a0\u7684\u786c\u76d8\u8fdb\u884c\u5206\u533a<\/p>\n<div>\u6302\u8f7d\u597d\u65b0\u786c\u76d8\u540e\u8f93\u5165fdisk -l\u547d\u4ee4\u770b\u5f53\u524d\u78c1\u76d8\u4fe1\u606f<\/div>\n<div><img decoding=\"async\" src=\"http:\/\/blog.51cto.com\/attachment\/200811\/200811221227366545284.jpg\" alt=\"\" border=\"0\" \/><\/div>\n<div>\u53ef\u4ee5\u770b\u5230\u9664\u4e86\u5f53\u524d\u7684\u7b2c\u4e00\u5757\u786c\u76d8\u5916\u8fd8\u6709\u4e00\u5757sdb\u7684\u7b2c\u4e8c\u5757\u786c\u76d8\uff0c\u7136\u540e\u7528fdisk \/dev\/sdb \u8fdb\u884c\u5206\u533a<\/div>\n<div><img decoding=\"async\" src=\"http:\/\/blog.51cto.com\/attachment\/200811\/200811221227366641881.jpg\" alt=\"\" border=\"0\" \/><\/div>\n<div>\u8fdb\u5165fdisk\u547d\u4ee4\uff0c\u8f93\u5165h\u53ef\u4ee5\u770b\u5230\u8be5\u547d\u4ee4\u7684\u5e2e\u52a9\uff0c\u6309n\u8fdb\u884c\u5206\u533a<\/div>\n<div><img decoding=\"async\" src=\"http:\/\/blog.51cto.com\/attachment\/200811\/200811221227366718341.jpg\" alt=\"\" border=\"0\" \/><\/div>\n<div>\u8fd9\u91cc\u8f93\u5165e\u5373\u5206\u4e3a\u903b\u8f91\u5206\u533a\uff0c\u6309p\u5373\u5206\u4e3a\u4e3b\u5206\u533a\uff0c\u6211\u4eec\u8981\u5c06\u8fd9\u5757\u76d8\u5206\u4e3a\u4e3b\u5206\u533a\u5373\u8f93\u5165p<\/div>\n<div><img decoding=\"async\" src=\"http:\/\/blog.51cto.com\/attachment\/200811\/200811221227366772225.jpg\" alt=\"\" border=\"0\" \/><\/div>\n<div>\u5230\u8fd9\u91cc\u8f93\u5165\u8be5\u4e3b\u5206\u533a\u4e3a\u7b2c\u51e0\u4e2a\u4e3b\u5206\u533a\uff0c\u7531\u4e8e\u662f\u65b0\u76d8\u6211\u4eec\u8f93\u51651\u6765\u5206\u7b2c\u4e00\u4e2a\u4e3b\u5206\u533a<\/div>\n<div><img decoding=\"async\" src=\"http:\/\/blog.51cto.com\/attachment\/200811\/200811221227366848997.jpg\" alt=\"\" border=\"0\" \/><\/div>\n<div>First Cylinder\u662f\u9009\u62e9\u8be5\u5206\u533a\u7684\u8d77\u59cb\u78c1\u76d8\u6570\uff0c\u8fd9\u91cc\u53ef\u81ea\u5b9a\u4e49\u4e5f\u53ef\u4e0d\u505a\u9009\u62e9\uff0c\u9ed8\u8ba4\u662f1\uff0c\u5982\u65e0\u7279\u6b8a\u9700\u6c42\u5f3a\u70c8\u5efa\u8bae\u9009\u62e9\u9ed8\u8ba4\uff0c\u4e5f\u5c31\u662f1\u6765\u5206\u533a\uff08\u76f4\u63a5\u6309\u56de\u8f66\uff09<\/div>\n<div><img decoding=\"async\" src=\"http:\/\/blog.51cto.com\/attachment\/200811\/200811221227366906209.jpg\" alt=\"\" border=\"0\" \/><\/div>\n<div>\u63a5\u4e0b\u6765\u662f\u5b9a\u4e49\u8be5\u5206\u533a\u7684\u5927\u5c0f\uff0c\u5982\u679c\u6309\u9ed8\u8ba4\uff08\u6309\u56de\u8f66\uff09\u5373\u662f\u4f7f\u7528\u5168\u90e8\u53ef\u7528\u5b58\u50a8\u989d\uff0c\u4e5f\u53ef\u4ee5\u662f\u7528M\u6216m\u5355\u4f4d\u7ed3\u5c3e\u7684\u6570\u5b57(\u5927\u5199M\u662f\u5927B\u7684\u610f\u601d\uff0c\u5982\u679c\u8f93\u51651M\u5b9e\u9645\u4e0a\u662fX8\u4e5f\u5c31\u662f8m\u7684\u7a7a\u95f4)\uff0c\u8fd9\u91cc\u6211\u4eec\u5148\u5206\u4e00\u4e2a1G\u7684\u7a7a\u95f4\uff0c\u6240\u4ee5\u8f93\u5165+1024m<\/div>\n<div><img decoding=\"async\" src=\"http:\/\/blog.51cto.com\/attachment\/200811\/200811221227366953843.jpg\" alt=\"\" border=\"0\" \/><\/div>\n<div>\u4e4b\u540e\u8f93\u5165w\u5199\u5165\u5206\u533a\uff0c\u7b49\u5f85\u7ed3\u675f\u7686\u53ef<\/div>\n<div><img decoding=\"async\" src=\"http:\/\/blog.51cto.com\/attachment\/200811\/200811221227367048972.jpg\" alt=\"\" border=\"0\" \/><\/div>\n<div>\u518d\u8f93\u5165fdisk -l \u53ef\u4ee5\u770b\u5230\u6211\u4eec\u521a\u624d\u5206\u7684\u4e00\u4e2a\u5206\u533a\uff0c\u4e4b\u540e\u7528mkfs -t ext3\u00a0 \/dev\/sdb1\u8fdb\u884c\u683c\u5f0f\u5316\uff0c\u5982\u6709\u591a\u4e2a\u5206\u533a\u53ef\u628asdb1\u6539\u6210sdb2 sdb3&#8230;\u4ee5\u6b64\u7c7b\u63a8\uff0c\u5177\u4f53\u53ef\u7528fdisk -l\u770b\u5230\u6bcf\u4e2a\u5206\u533a\u7684\u540d\u5b57<\/div>\n<div><img decoding=\"async\" src=\"http:\/\/blog.51cto.com\/attachment\/200811\/200811221227367365971.jpg\" alt=\"\" border=\"0\" \/><\/div>\n<div>\u4e0a\u56fe\u84dd\u8272\u90e8\u5206\u662f\u5199\u786c\u76d8\u5377\u6807\u7684\uff0c\u5982\u4e0d\u60f3\u8981\u5377\u6807\u53ef\u76f4\u63a5\u6309\u56de\u8f66\uff0c\u73b0\u5728\u5206\u533a\u597d\u4e86\u6211\u4eec\u7528mount \u6302\u8f7d\u4e00\u4e0b\u8be5\u5206\u533a\u5373\u53ef\u4f7f\u7528\u4e86\uff0c\u8fd9\u91cc\u6211\u628a\u5b83\u6302\u8f7d\u5230mnt\u76ee\u5f55\u4e0b\uff0c\u4e5f\u53ef\u4ee5\u81ea\u5efa\u4e00\u4e2a\u76ee\u5f55\u6302\u8f7d<\/div>\n<div><img decoding=\"async\" src=\"http:\/\/blog.51cto.com\/attachment\/200811\/200811221227367426106.jpg\" alt=\"\" border=\"0\" \/><\/div>\n<div>\u6765\u770b\u4e00\u4e0b\u5206\u533a\u5927\u5c0f\u662f\u5426\u548c\u9884\u5b9a\u7684\u4e00\u6837\uff0c\u4f7f\u7528df -TH\u547d\u4ee4\u770b\u4e00\u4e0b\u5f53\u524d\u6302\u8f7d\u7684\u5206\u533a\u548c\u5927\u5c0f\uff0c\u770b\u5230\u6211\u4eec\u521a\u5206\u7684\u5206\u533a\u4e86\u5427<\/div>\n<div><img decoding=\"async\" src=\"http:\/\/blog.51cto.com\/attachment\/200811\/200811221227367491115.jpg\" alt=\"\" border=\"0\" \/><\/div>\n<p align=\"justify\">\n<p align=\"justify\"><strong>\u6ce8\u610f\u4e8b\u9879\uff1a<\/strong><\/p>\n<p align=\"justify\"><strong>1.linux\u6587\u4ef6\u7cfb\u7edf\u8bf4\u660e\uff1a<\/strong><\/p>\n<p>\u5728linux\u91cc\u53ef\u4f7f\u7528\u7684\u6587\u4ef6\u7cfb\u7edf\u6709:<\/p>\n<p>Ext2:\u65e9\u671f\u7684\u683c\u5f0f\uff0c\u4e0d\u652f\u6301\u65e5\u5fd7\u529f\u80fd<\/p>\n<p>Ext3:ext2\u6539\u826f\u7248\uff0c\u589e\u52a0\u4e86\u65e5\u5fd7\u529f\u80fd\uff0c\u662f\u6700\u57fa\u672c\u4e14\u6700\u5e38\u7528\u7684\u4f7f\u7528\u683c\u5f0f\u4e86<\/p>\n<p>Ext4:\u9488\u5bf9ext3\u7cfb\u7edf\u7684\u6269\u5c55\u65e5\u5fd7\u5f0f\u6587\u4ef6\u7cfb\u7edf\uff0c\u662fext3\u6587\u4ef6\u7cfb\u7edf\u7684\u540e\u7ee7\u7248\u672c<\/p>\n<p>ReiserFS:\u4e5f\u6709\u65e5\u5fd7\u529f\u80fd\uff0c\u5176\u7279\u70b9\u662f\u5904\u7406\u5c0f\u6863\u6848\u65f6\u901f\u5ea6\u5feb\u3002<\/p>\n<p>XFS:\u7a33\u5b9a\u4e0e\u9ad8\u6548\uff0c\u5728\u5927\u5c0f\u6863\u6848\u6df7\u5408\u7684\u7cfb\u7edf\u91cc\u6709\u4f18\u8d8a\u7684\u8868\u73b0\u3002<\/p>\n<p>JFS:\u7279\u8272\u662f\u6700\u4e0d\u5360\u7528CPU\u8d44\u6e90\uff0c\u5982\u679c\u4f60\u7684\u7535\u8111\u8001\u65e7\u90a3\u4e48\u8fd9\u662f\u6700\u597d\u7684\u9009\u62e9\u3002<\/p>\n<p><strong>2.linux\u548cwindows\u6587\u4ef6\u7cfb\u7edf\u7684\u4e0d\u540c\u4e4b\u5904<\/strong><\/p>\n<p>Linux\u91c7\u7528\u7684\u662f\u6811\u578b\u7ed3\u6784\u3002\u6700\u4e0a\u5c42\u662f\u6839\u76ee\u5f55\uff0c\u5176\u4ed6\u7684\u6240\u6709\u76ee\u5f55\u90fd\u662f\u4ece\u6839\u76ee\u5f55\u51fa\u53d1\u800c\u751f\u6210\u7684\u3002\u5fae\u8f6f\u7684DOS\u548cwindows\u4e5f\u662f\u91c7\u7528\u6811\u578b\u7ed3\u6784\uff0c\u4f46\u662f\u5728DOS\u548c windows\u4e2d\u8fd9\u6837\u7684\u6811\u578b\u7ed3\u6784\u7684\u6839\u662f\u78c1\u76d8\u5206\u533a\u7684\u76d8\u7b26\uff0c\u6709\u51e0\u4e2a\u5206\u533a\u5c31\u6709\u51e0\u4e2a\u6811\u578b\u7ed3\u6784\uff0c\u4ed6\u4eec\u4e4b\u95f4\u7684\u5173\u7cfb\u662f\u5e76\u5217\u7684\u3002\u4f46\u662f\u5728linux\u4e2d\uff0c\u65e0\u8bba\u64cd\u4f5c\u7cfb\u7edf\u7ba1\u7406\u51e0\u4e2a\u78c1\u76d8\u5206\u533a\uff0c\u8fd9\u6837\u7684\u76ee\u5f55\u6811\u53ea\u6709\u4e00\u4e2a\u3002\u4ece\u7ed3\u6784\u4e0a\u8bb2\uff0c\u5404\u4e2a\u78c1\u76d8\u5206\u533a\u4e0a\u7684\u6811\u578b\u76ee\u5f55\u4e0d\u4e00\u5b9a\u662f\u5e76\u5217\u7684\u3002<\/p>\n<p><strong>3.linux\u6587\u4ef6\u5b58\u50a8\u7ed3\u6784<\/strong><\/p>\n<p>Linux\u6b63\u7edf\u7684\u6587\u4ef6\u7cfb\u7edf(\u5982ext2\u3001ext3)\u4e00\u4e2a\u6587\u4ef6\u7531\u76ee\u5f55\u9879\u3001inode\u548c\u6570\u636e\u5757\u7ec4\u6210\u3002<\/p>\n<p><strong>\u76ee\u5f55\u9879<\/strong>:\u5305\u62ec\u6587\u4ef6\u540d\u548cinode\u8282\u70b9\u53f7\u3002<\/p>\n<p><strong>Inode<\/strong>\uff1a\u53c8\u79f0\u6587\u4ef6\u7d22\u5f15\u8282\u70b9\uff0c\u662f\u6587\u4ef6\u57fa\u672c\u4fe1\u606f\u7684\u5b58\u653e\u5730\u548c\u6570\u636e\u5757\u6307\u9488\u5b58\u653e\u5730\u3002<\/p>\n<p><strong>\u6570\u636e\u5757<\/strong>\uff1a\u6587\u4ef6\u7684\u5177\u4f53\u5185\u5bb9\u5b58\u653e\u5730\u3002<\/p>\n<p>\u5f53\u67e5\u770b\u67d0\u4e2a\u6587\u4ef6\u65f6\uff0c\u4f1a\u5148\u4eceinode table\u4e2d\u67e5\u51fa\u6587\u4ef6\u5c5e\u6027\u53ca\u6570\u636e\u5b58\u653e\u70b9\uff0c\u518d\u4ece\u6570\u636e\u5757\u4e2d\u8bfb\u53d6\u6570\u636e\u3002<\/p>\n<p><strong>4.\u81ea\u52a8\u6302\u8f7d\u548c\u624b\u52a8\u6302\u8f7d<\/strong><\/p>\n<p>4.1\u624b\u52a8\u6302\u8f7d\uff1a\u4f7f\u7528mount \/dev\/sdb1\u00a0 \/\u8981\u6302\u8f7d\u7684\u76ee\u5f55\uff08\u81ea\u5df1\u81ea\u5b9a\u4e49\uff09<\/p>\n<p>\u8bbf\u95ee\u65f6\uff1acd\u00a0 \/\u6302\u8f7d\u7684\u76ee\u5f55\u00a0\u00a0 \u5373\u53ef\u5bf9\u5176\u8fdb\u884c\u5b58\u50a8\u548c\u8bbf\u95ee<\/p>\n<p>&nbsp;<\/p>\n<p>4.2\u81ea\u52a8\u6302\u8f7d\uff1a\u4fee\u6539\/etc\/fstab\u5373\u53ef<\/p>\n<p>\u4f7f\u7528vim \/etc\/fstab\u6253\u5f00\u914d\u7f6e\u7684\u6587\u4ef6\uff0c\u7136\u540e\u5c06\u4e0b\u9762\u7684\u4e00\u884c\u6587\u5b57\u6dfb\u52a0\u5373\u53ef<\/p>\n<p>\/dev\/sdb1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/media\uff08\u8fd9\u4e2a\u6302\u8f7d\u7684\u76ee\u5f55\u4f60\u81ea\u5df1\u8bbe\u7f6e\u5373\u53ef\uff09\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ext3\u00a0\u00a0\u00a0\u00a0defaults\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a00\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a01<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u6dfb\u52a0\u786c\u76d8 1\u3001\u9009\u62e9\u201cVM\u201d&#038;#821<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[],"tags":[117],"class_list":["post-2229","post","type-post","status-publish","format-standard","hentry","tag-01-linux"],"_links":{"self":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/2229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/comments?post=2229"}],"version-history":[{"count":0,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/2229\/revisions"}],"wp:attachment":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/media?parent=2229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/categories?post=2229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/tags?post=2229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}