{"id":1123,"date":"2025-08-30T09:54:13","date_gmt":"2025-08-30T01:54:13","guid":{"rendered":"https:\/\/www.vcidc.net\/blog\/?p=1123"},"modified":"2025-08-30T09:54:13","modified_gmt":"2025-08-30T01:54:13","slug":"%e6%b7%b1%e5%85%a5%e4%ba%86%e8%a7%a3fdisk","status":"publish","type":"post","link":"https:\/\/www.vcidc.net\/blog\/1123.html","title":{"rendered":"\u6df1\u5165\u4e86\u89e3fdisk"},"content":{"rendered":"<p><h3>\u4ec0\u4e48\u662ffdisk\uff1f<\/h3>\n<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/www.vcidc.net\/blog\/wp-content\/uploads\/2025\/07\/3470f0.jpg\" alt=\"\u6df1\u5165\u4e86\u89e3fdisk\" title=\"\u6df1\u5165\u4e86\u89e3fdisk\"><\/p>\n<p><p>fdisk\u662f\u4e00\u4e2a\u5728Linux\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u7528\u4e8e\u521b\u5efa\u3001\u7f16\u8f91\u548c\u5220\u9664\u78c1\u76d8\u5206\u533a\u7684\u57fa\u672c\u5de5\u5177\u3002\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u5305\u62ec\u521b\u5efa\u4e3b\u5206\u533a\u3001\u6269\u5c55\u5206\u533a\u3001\u903b\u8f91\u5206\u533a\u7b49\uff0c\u662f\u7ba1\u7406\u78c1\u76d8\u5206\u533a\u7684\u91cd\u8981\u5de5\u5177\u4e4b\u4e00\u3002<\/p>\n<\/p>\n<p><h3>fdisk\u5305\u542b\u54ea\u4e9b\u529f\u80fd\uff1f<\/h3>\n<\/p>\n<p><p>fdisk\u7684\u4e3b\u8981\u529f\u80fd\u5305\u62ec\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u521b\u5efa\u65b0\u5206\u533a\uff1a\u4f7f\u7528<code>mkpart<\/code>\u547d\u4ee4\u521b\u5efa\u4e3b\u5206\u533a\u3001\u6269\u5c55\u5206\u533a\u6216\u903b\u8f91\u5206\u533a\u3002<\/li>\n<li>\u7f16\u8f91\u5206\u533a\u8868\uff1a\u4f7f\u7528<code>resize<\/code>\u3001<code>move<\/code>\u7b49\u547d\u4ee4\u8c03\u6574\u5206\u533a\u5927\u5c0f\u6216\u4f4d\u7f6e\u3002<\/li>\n<li>\u5220\u9664\u5206\u533a\uff1a\u4f7f\u7528<code>delete<\/code>\u547d\u4ee4\u5220\u9664\u4e0d\u9700\u8981\u7684\u5206\u533a\u3002<\/li>\n<li>\u663e\u793a\u5206\u533a\u4fe1\u606f\uff1a\u4f7f\u7528<code>list<\/code>\u547d\u4ee4\u67e5\u770b\u78c1\u76d8\u5206\u533a\u60c5\u51b5\u3002<\/li>\n<li>\u8bbe\u7f6e\u542f\u52a8\u6807\u5fd7\uff1a\u4f7f\u7528<code>set boot<\/code>\u547d\u4ee4\u8bbe\u7f6e\u542f\u52a8\u5206\u533a\u3002<\/li>\n<\/ul>\n<p><h3>\u5982\u4f55\u4f7f\u7528fdisk\uff1f<\/h3>\n<\/p>\n<p><p>\u8981\u4f7f\u7528fdisk\uff0c\u9996\u5148\u9700\u8981\u6253\u5f00\u7ec8\u7aef\uff0c\u7136\u540e\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code>sudo fdisk \/dev\/sdX<\/code><\/pre>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c<code>\/dev\/sdX<\/code>\u4ee3\u8868\u4f60\u8981\u64cd\u4f5c\u7684\u78c1\u76d8\u8bbe\u5907\u3002\u8fdb\u5165fdisk\u540e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e0a\u8ff0\u529f\u80fd\u5bf9\u5e94\u7684\u547d\u4ee4\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h3>\u63a8\u8350\u4f7f\u7528fdisk\u7684\u539f\u56e0\uff1f<\/h3>\n<\/p>\n<p><p>\u63a8\u8350\u4f7f\u7528fdisk\u7684\u539f\u56e0\u6709\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u514d\u8d39\u5f00\u6e90\uff1afdisk\u662fLinux\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u81ea\u5e26\u7684\u5de5\u5177\uff0c\u65e0\u9700\u989d\u5916\u5b89\u88c5\u3002<\/li>\n<li>\u529f\u80fd\u5f3a\u5927\uff1afdisk\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5206\u533a\u7ba1\u7406\u529f\u80fd\uff0c\u6ee1\u8db3\u5927\u90e8\u5206\u7528\u6237\u7684\u9700\u6c42\u3002<\/li>\n<li>\u64cd\u4f5c\u7b80\u5355\uff1a\u867d\u7136fdisk\u7684\u547d\u4ee4\u884c\u754c\u9762\u53ef\u80fd\u5bf9\u521d\u5b66\u8005\u6765\u8bf4\u6709\u4e9b\u590d\u6742\uff0c\u4f46\u901a\u8fc7\u67e5\u9605\u76f8\u5173\u6587\u6863\uff0c\u53ef\u4ee5\u8f7b\u677e\u4e0a\u624b\u3002<\/li>\n<\/ul>\n<p><h3>fdisk\u5e38\u89c1\u95ee\u9898\u89e3\u7b54<\/h3>\n<\/p>\n<p><h4><b>\u95ee\u98981\uff1a\u5982\u4f55\u67e5\u770b\u78c1\u76d8\u5206\u533a\u4fe1\u606f\uff1f<\/b><\/h4>\n<\/p>\n<p><p>\u5728fdisk\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>list<\/code>\u547d\u4ee4\u67e5\u770b\u78c1\u76d8\u5206\u533a\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><h4><b>\u95ee\u98982\uff1a\u5982\u4f55\u5220\u9664\u5206\u533a\uff1f<\/b><\/h4>\n<\/p>\n<p><p>\u5728fdisk\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>delete<\/code>\u547d\u4ee4\u5220\u9664\u5206\u533a\u3002\u4f8b\u5982\uff0c\u5220\u9664\u7b2c\u4e00\u4e2a\u5206\u533a\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code>delete 1<\/code><\/pre>\n<\/p>\n<p><h4><b>\u95ee\u98983\uff1a\u5982\u4f55\u8c03\u6574\u5206\u533a\u5927\u5c0f\uff1f<\/b><\/h4>\n<\/p>\n<p><p>\u5728fdisk\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>resize<\/code>\u547d\u4ee4\u8c03\u6574\u5206\u533a\u5927\u5c0f\u3002\u4f8b\u5982\uff0c\u8c03\u6574\u7b2c\u4e00\u4e2a\u5206\u533a\u7684\u5927\u5c0f\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code>resize 1<\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u6309\u7167\u63d0\u793a\u8f93\u5165\u65b0\u7684\u5206\u533a\u5927\u5c0f\u3002<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ec0\u4e48\u662ffdisk\uff1f fdisk\u662f\u4e00\u4e2a\u5728Linux\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u7528\u4e8e\u521b\u5efa\u3001\u7f16\u8f91\u548c\u5220\u9664\u78c1\u76d8\u5206\u533a\u7684\u57fa\u672c\u5de5\u5177\u3002\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u5305\u62ec\u521b\u5efa\u4e3b\u5206\u533a\u3001\u6269\u5c55\u5206\u533a\u3001\u903b\u8f91\u5206\u533a\u7b49\uff0c\u662f\u7ba1\u7406\u78c1\u76d8\u5206\u533a\u7684\u91cd\u8981\u5de5\u5177\u4e4b\u4e00\u3002 fdisk\u5305\u542b\u54ea\u4e9b\u529f\u80fd\uff1f fdisk\u7684\u4e3b\u8981\u529f\u80fd\u5305\u62ec\uff1a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1124,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[422,252,423],"topic":[],"class_list":["post-1123","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-game-server","tag-fdisk","tag-252","tag-423"],"_links":{"self":[{"href":"https:\/\/www.vcidc.net\/blog\/wp-json\/wp\/v2\/posts\/1123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vcidc.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vcidc.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vcidc.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vcidc.net\/blog\/wp-json\/wp\/v2\/comments?post=1123"}],"version-history":[{"count":1,"href":"https:\/\/www.vcidc.net\/blog\/wp-json\/wp\/v2\/posts\/1123\/revisions"}],"predecessor-version":[{"id":1126,"href":"https:\/\/www.vcidc.net\/blog\/wp-json\/wp\/v2\/posts\/1123\/revisions\/1126"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.vcidc.net\/blog\/wp-json\/wp\/v2\/media\/1124"}],"wp:attachment":[{"href":"https:\/\/www.vcidc.net\/blog\/wp-json\/wp\/v2\/media?parent=1123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vcidc.net\/blog\/wp-json\/wp\/v2\/categories?post=1123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vcidc.net\/blog\/wp-json\/wp\/v2\/tags?post=1123"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.vcidc.net\/blog\/wp-json\/wp\/v2\/topic?post=1123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}