{"id":294464,"date":"2024-11-20T20:09:20","date_gmt":"2024-11-20T12:09:20","guid":{"rendered":"https:\/\/lrxjmw.cn\/lxtfqczznqdx.html"},"modified":"2024-11-20T20:09:20","modified_gmt":"2024-11-20T12:09:20","slug":"lxtfqczznqdx","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/lxtfqczznqdx.html","title":{"rendered":"Linux \u7cfb\u7edf\u5206\u533a\u64cd\u4f5c\u6307\u5357\uff1a\u786e\u5b9a\u9700\u6c42\u3001\u9009\u62e9\u5de5\u5177\u3001\u67e5\u770b\u7a7a\u95f4\u5e76\u8fdb\u884c\u5206\u533a"},"content":{"rendered":"

\u5728Linux<\/a>\u7cfb\u7edf\u4e2d\u8fdb\u884c\u5206\u533alinux\u5206\u533a\u5728\u90a3<\/strong>\uff0c\u53ef\u4ee5\u6839\u636e\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\u64cd\u4f5c\uff1a<\/p>\n

\uff08\u56fe\u7247\u6765\u6e90\u7f51\u8def\uff0c\u4fb5\u5220\uff09<\/p>\n

1\u3001\u786e\u5b9a\u5206\u533a\u9700\u6c42\uff1a<\/p>\n

\u786e\u5b9a\u7cfb\u7edf\u7528\u9014\u548c\u6570\u636e\u50a8\u5b58\u9700\u6c42\uff0c\u6309\u7167\u9700\u6c42\u786e\u5b9a\u6240\u9700\u7684\u5206\u533a\u6570\u76ee\u548c\u5927\u5c0f\u3002<\/p>\n

\u5e38\u89c1\u7684\u5206\u533a\u7c7b\u578b\u5305\u62ec\u6839\u5206\u533a\uff08\/\uff09\u3001\u4ea4\u6362\u5206\u533a\uff08swap\uff09\u3001\/home\u5206\u533a\u7b49\u3002<\/p>\n

2\u3001\u4f7f\u7528\u5de5\u5177\u8fdb\u884c\u5206\u533a\uff1a<\/p>\n

\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u5de5\u5177\u8fdb\u884c\u5206\u533a\u64cd\u4f5c\uff0c\u5982fdisk\u3001parted\u3001cfdisk\u7b49\u3002<\/p>\n

\u8fd9\u513f\u4ee5fdisk\u4e3a\u4f8b\u8fdb\u884c\u8bf4\u660e\u3002<\/p>\n

3\u3001\u67e5\u770b\u5f53\u524dc\u76d8\u7a7a\u95f4\uff1a<\/p>\n

\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4<\/a>\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u4e2d\u7684c\u76d8\u4fe1\u606f\uff1a<\/p>\n

linux\u5206\u533a\u5de5\u5177_linux\u5206\u533a\u5728\u90a3_linux\u5206\u533a\u683c\u5f0f<\/p>\n

\u201c`shell<\/p>\n

sudofdiskl<\/p>\n

\u201c`<\/p>\n

\u8be5\u547d\u4ee4\u4f1a\u5217\u4e3e\u6240\u6709\u53ef\u7528\u7684c\u76d8\u8bbe\u5907\u53ca\u5176\u5206\u533a\u60c5\u51b5\u3002<\/p>\n

4\u3001\u9009\u62e9\u8981\u5206\u533a\u7684c\u76d8\uff1a<\/p>\n

\u6309\u7167\u4e0a\u4e00\u6b65\u7684\u8f93\u51fa\u7ed3\u679c\uff0c\u627e\u5230\u8981\u8fdb\u884c\u5206\u533a\u7684c\u76d8\u8bbe\u5907\u540d\u79f0\uff08\u5982\/dev\/sda\uff09\u3002<\/p>\n

\u786e\u4fdd\u8be5c\u76d8\u6ca1\u6709\u91cd\u8981\u6570\u636e\uff0c\u7531\u4e8e\u5206\u533a\u64cd\u4f5c\u4f1a\u9020\u6210\u6570\u636e\u9057\u5931\u3002<\/p>\n

5\u3001\u5378\u8f7dc\u76d8\uff1a<\/p>\n

\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5378\u8f7d\u8981\u5206\u533a\u7684c\u76d8\uff08\u5047\u5b9ac\u76d8\u8bbe\u5907\u540d\u79f0\u4e3a\/dev\/sda\uff09\uff1a<\/p>\n

\u201c`shell<\/p>\n

linux\u5206\u533a\u683c\u5f0f_linux\u5206\u533a\u5de5\u5177_linux\u5206\u533a\u5728\u90a3<\/p>\n

sudoumount\/dev\/sda1<\/p>\n

\u201c`<\/p>\n

\u5047\u5982\u5b58\u5728\u5176\u4ed6\u5206\u533a\uff0c\u987b\u8981\u5148\u5378\u8f7d\u5b83\u4eec\uff0c\u4ee5\u9632\u6b62\u6570\u636e\u53d7\u635f\u3002<\/p>\n

6\u3001\u4f7f\u7528fdisk\u8fdb\u884c\u5206\u533a\uff1a<\/p>\n

\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6b65\u5165fdisk\u4ea4\u4e92\u6a21\u5f0f\uff1a<\/p>\n

\u201c`shell<\/p>\n

sudofdisk\/dev\/sda<\/p>\n

\u201c`<\/p>\n

\u5728fdisk\u4ea4\u4e92\u6a21\u5f0f\u4e0b\uff0c\u6839\u636e\u63d0\u793a\u8fdb\u884c\u5206\u533a\u64cd\u4f5c\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u547d\u4ee4\uff1a<\/p>\n

n\uff1a\u521b\u5efa\u65b0\u5206\u533a\u3002<\/p>\n

linux\u5206\u533a\u5de5\u5177_linux\u5206\u533a\u5728\u90a3_linux\u5206\u533a\u683c\u5f0f<\/p>\n

p\uff1a\u590d\u5370\u5206\u533a\u8868\u3002<\/p>\n

d\uff1a\u5220\u6389\u5206\u533a\u3002<\/p>\n

w\uff1a\u4fdd\u5b58\u5e76\u9000\u51fa\u3002<\/p>\n

q\uff1a\u4e0d\u4fdd\u5b58\u5e76\u9000\u51fa\u3002<\/p>\n

7\u3001\u521b\u5efa\u6839\u5206\u533a\uff08\/\uff09\uff1a<\/p>\n

\u5728fdisk\u4ea4\u4e92\u6a21\u5f0f\u4e0b\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u65b0\u5206\u533a\uff1a<\/p>\n

\u201c`shell<\/p>\n

\u201c`<\/p>\n

\u6839\u636e\u63d0\u793a\u8bbe\u7f6e\u5206\u533a\u7c7b\u578b\u3001\u8d77\u59cb\u78c1\u9053\u3001\u7ed3\u675f\u78c1\u9053\u548c\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u7b49\u53c2\u6570\uff0c\u4e00\u822c\u60c5\u51b5\u4e0blinux\u5206\u533a\u5728\u90a3<\/strong>\uff0c\u6839\u5206\u533a\u7684\u5927\u5c0f\u53d6\u51b3\u4e8e\u5b9e\u9645\u9700\u6c42\u3002<\/p>\n

8\u3001\u521b\u5efa\u4ea4\u6362\u5206\u533a\uff08swap\uff09\uff1a<\/p>\n

linux\u5206\u533a\u683c\u5f0f_linux\u5206\u533a\u5de5\u5177_linux\u5206\u533a\u5728\u90a3<\/p>\n

\u5047\u5982\u987b\u8981\u521b\u5efa\u4ea4\u6362\u5206\u533alinux site:infoq.cn\uff0c\u53ef\u4ee5\u6839\u636e\u4e0a\u8ff0\u6b65\u9aa4\u521b\u5efa\u4e00\u4e2a\u65b0\u5206\u533a\uff0c\u5e76\u5c06\u5176\u8bbe\u7f6e\u4e3a\u4ea4\u6362\u5206\u533a\uff0c\u8bbe\u7f6e\u65f6\u987b\u8981\u6ce8\u610f\u8d77\u59cb\u78c1\u9053\u548c\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578blinux\u5d4c\u5165\u5f0f\u5f00\u53d1\uff0c\u4e00\u822c\u4ea4\u6362\u5206\u533a\u5927\u5c0f\u4e3a\u5316\u5b66\u663e\u5b58\u7684\u4e24\u500d\u3002<\/p>\n

9\u3001\u521b\u5efa\/home\u5206\u533a\uff08\u53ef\u9009\uff09\uff1a<\/p>\n

\u5047\u5982\u987b\u8981\u5355\u72ec\u754c\u5b9a\u4e00\u4e2a\/home\u5206\u533a\uff0c\u53ef\u4ee5\u6839\u636e\u4e0a\u8ff0\u6b65\u9aa4\u521b\u5efa\u4e00\u4e2a\u65b0\u5206\u533a\uff0c\u5e76\u5c06\u5176\u8bbe\u7f6e\u4e3a\/home\u5206\u533a\uff0c\u8bbe\u7f6e\u65f6\u987b\u8981\u6ce8\u610f\u8d77\u59cb\u78c1\u9053\u548c\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\u3002\/home\u5206\u533a\u7684\u5927\u5c0f\u53ef\u4ee5\u6309\u7167\u4e2a\u4eba\u9700\u6c42\u8fdb\u884c\u8c03\u6574\u3002<\/p>\n

10\u3001\u4fdd\u5b58\u5e76\u9000\u51fa\uff1a<\/p>\n

\u5728fdisk\u4ea4\u4e92\u6a21\u5f0f\u4e0b\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4fdd\u5b58\u5e76\u9000\u51fa\uff1a<\/p>\n

\u201c`shell<\/p>\n

\u201c`<\/p>\n

\u5047\u5982\u4e4b\u524d\u6709\u66f4\u6539\u8fc7\u5206\u533a\u8868\uff0c\u4f1a\u63d0\u793a\u662f\u5426\u786e\u8ba4\u4fdd\u5b58\uff0c\u8f93\u5165\u201cyes\u201d\u786e\u8ba4\u4fdd\u5b58\u5373\u53ef\u3002<\/p>\n

11\u3001\u683c\u5f0f\u5316\u5206\u533a\uff1a<\/p>\n

\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5bf9\u6bcf\u4f4d\u65b0\u521b\u5efa\u7684\u5206\u533a\u8fdb\u884c\u4f4e\u683c\uff08\u5047\u5b9a\u65b0\u521b\u5efa\u7684\u5206\u533a\u5206\u522b\u4e3a\/dev\/sda1\u3001\/dev\/sda2\u3001\/dev\/sda3\uff09\uff1a<\/p>\n

linux\u5206\u533a\u683c\u5f0f_linux\u5206\u533a\u5de5\u5177_linux\u5206\u533a\u5728\u90a3<\/p>\n

\u201c`shell<\/p>\n

sudomkfstext4\/dev\/sda1#\u4f4e\u683c\u6839\u5206\u533a\u4e3aext4\u6587\u4ef6\u7cfb\u7edf<\/p>\n

sudomkswap\/dev\/sda2#\u4f4e\u683c\u4ea4\u6362\u5206\u533a\u4e3aswap\u6587\u4ef6\u7cfb\u7edf<\/p>\n

sudomkfstext4\/dev\/sda3#\u4f4e\u683c\/home\u5206\u533a\u4e3aext4\u6587\u4ef6\u7cfb\u7edf\uff08\u5047\u5982\u5b58\u5728\uff09<\/p>\n

\u201c`<\/p>\n

\u6309\u7167\u5b9e\u9645\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\uff0c\u8fd9\u513f\u4f7f\u7528\u4e86ext4\u6587\u4ef6\u7cfb\u7edf\u4f5c\u4e3a\u793a\u4f8b\u3002<\/p>\n

12\u3001\u6302\u8f7d\u5206\u533a\uff1a<\/p>\n

\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5c06\u6bcf\u4f4d\u65b0\u521b\u5efa\u7684\u5206\u533a\u6302\u8f7d\u5230\u76f8\u5e94\u7684\u76ee\u5f55\u4e2d\uff08\u5047\u5b9a\u65b0\u521b\u5efa\u7684\u5206\u533a\u5206\u522b\u4e3a\/dev\/sda1\u3001\/dev\/sda2\u3001\/dev\/sda3\uff09\uff1a<\/p>\n

\u201c`shell<\/p>\n

sudomount\/dev\/sda1\/mnt#\u6302\u8f7d\u6839\u5206\u533a\u5230\/mnt\u76ee\u5f55\u4e2d\uff08\u6309\u7167\u5b9e\u9645\u60c5\u51b5\u8c03\u6574\uff09<\/p>\n

sudoswapon\/dev\/sda2#\u542f\u7528\u4ea4\u6362\u5206\u533a\uff08\u6309\u7167\u5b9e\u9645\u60c5\u51b5\u8c03\u6574\uff09<\/p>\n

sudomount\/dev\/sda3\/home#\u6302\u8f7d\/home\u5206\u533a\u5230\/home\u76ee\u5f55\u4e2d\uff08\u6309\u7167\u5b9e\u9645\u60c5\u51b5\u8c03\u6574\uff09<\/p>\n

\u201c`<\/p>\n","protected":false},"excerpt":{"rendered":"

2\u3001\u4f7f\u7528\u5de5\u5177\u8fdb\u884c\u5206\u533a\uff1a6\u3001\u4f7f\u7528fdisk\u8fdb\u884c\u5206\u533a\uff1a\u5728fdisk\u4ea4\u4e92\u6a21\u5f0f\u4e0b\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u65b0\u5206\u533a\uff1a\u683c\u5f0f\u5316\u6839\u5206\u533a\u4e3aext4\u6587\u4ef6\u7cfb\u7edf\u683c\u5f0f\u5316\u4ea4\u6362\u5206\u533a\u4e3aswap\u6587\u4ef6\u7cfb\u7edf\u683c\u5f0f\u5316\/home\u5206\u533a\u4e3aext4\u6587\u4ef6\u7cfb\u7edf\uff08\u5982\u679c\u5b58\u5728\uff09<\/p>\n","protected":false},"author":1,"featured_media":294465,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[2469,4367,4370,4368,4369],"class_list":["post-294464","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-f-14","tag-fqxq","tag-xzcp-2","tag-zkcpkj","tag-xzcp"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/294464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=294464"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/294464\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/294465"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=294464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=294464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=294464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}