{"id":6988,"date":"2020-04-26T19:11:10","date_gmt":"2020-04-26T11:11:10","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6988"},"modified":"2020-05-05T20:30:14","modified_gmt":"2020-05-05T12:30:14","slug":"partx","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/partx","title":{"rendered":"partx\u547d\u4ee4 – \u663e\u793a\u5185\u6838\u78c1\u76d8\u4e0a\u5206\u533a\u60c5\u51b5"},"content":{"rendered":"\n

partx\u547d\u4ee4\u7528\u6765\u544a\u8bc9\u5185\u6838\u5f53\u524d\u78c1\u76d8\u7684\u5206\u533a\u60c5\u51b5\uff0c\u5bf9\u4e00\u4e2a\u78c1\u76d8\u6216\u8005\u5206\u533a\u8868\u7c7b\u578b\uff0c\u5c1d\u8bd5\u89e3\u6790\u5206\u533a\u8868\u3002\u53ef\u4ee5\u589e\u52a0\u6216\u5220\u9664\u5206\u533a\u3002\u4f46\u4e0d\u662ffdisk\uff0c\u589e\u52a0\uff0c\u5220\u9664\u5206\u533a\u5bf9\u78c1\u76d8\u9020\u6210\u6539\u53d8\uff0c\u53ea\u662f\u544a\u8bc9\u5185\u6838\u5f53\u524d\u78c1\u76d8\u7684\u5206\u533a\u60c5\u51b5\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>partx [\u53c2\u6570] [\u8bbe\u5907]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-a         <\/td>\u589e\u52a0\u5236\u5b9a\u7684\u5206\u533a\u6216\u8bfb\u78c1\u76d8\u65b0\u589e\u7684\u5206\u533a<\/td><\/tr>
-d         <\/td>\u5220\u9664\u5236\u5b9a\u6216\u6240\u6709\u7684\u5206\u533a<\/td><\/tr>
-l         <\/td>\u5217\u51fa\u5206\u533a<\/td><\/tr>
--type     <\/td>\u6307\u5b9a\u5206\u533a\u7c7b\u578b<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u5217\u51fa\u78c1\u76d8\u7684\u5206\u533a\u8868\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# partx --show \/dev\/sda5<\/pre>\n\n\n\n

\u6307\u5b9a\u8981\u663e\u793a\u7684\u5206\u533a\u8303\u56f4\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# partx -a \/dev\/sdb<\/pre>\n\n\n\n

\u5217\u51fa\u652f\u6301\u7684\u5206\u533a\u7c7b\u578b\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# partx --list-types<\/pre>\n","protected":false},"excerpt":{"rendered":"

partx\u547d\u4ee4\u7528\u6765\u544a\u8bc9\u5185\u6838\u5f53\u524d\u78c1\u76d8\u7684\u5206\u533a\u60c5\u51b5\uff0c\u5bf9\u4e00\u4e2a\u78c1\u76d8\u6216\u8005\u5206\u533a\u8868\u7c7b\u578b\uff0c\u5c1d\u8bd5\u89e3\u6790\u5206\u533a\u8868\u3002\u53ef\u4ee5\u589e\u52a0\u6216\u5220\u9664\u5206\u533a\u3002\u4f46 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6988"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=6988"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6988\/revisions"}],"predecessor-version":[{"id":7510,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6988\/revisions\/7510"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6988"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6988"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}