{"id":89546,"date":"2026-08-03T08:40:37","date_gmt":"2026-08-03T00:40:37","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/89546.html"},"modified":"2026-08-03T08:40:37","modified_gmt":"2026-08-03T00:40:37","slug":"linux-%e7%a1%ac%e7%9b%98%e5%88%86%e5%8c%ba%e7%ae%a1%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/89546.html","title":{"rendered":"Linux \u786c\u76d8\u5206\u533a\u7ba1\u7406"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>Linux \u786c\u76d8\u5206\u533a\u7ba1\u7406<\/li>\n<li>\n<ul>\n<li>MBR \u5206\u533a\u65b9\u6848<\/li>\n<li>fdisk \u5de5\u5177<\/li>\n<li>\n<ul>\n<li>fdisk \u547d\u4ee4\u8bed\u6cd5<\/li>\n<li>\u67e5\u770b\u5206\u533a<\/li>\n<li>\u521b\u5efa\u5206\u533a<\/li>\n<li>\u5220\u9664\u5206\u533a<\/li>\n<\/ul>\n<\/li>\n<li>GPT \u5206\u533a\u65b9\u6848<\/li>\n<li>gdisk \u5de5\u5177<\/li>\n<li>\n<ul>\n<li>gdisk\u547d\u4ee4\u8bed\u6cd5<\/li>\n<li>\u67e5\u770b\u5206\u533a\u8868<\/li>\n<li>\u521b\u5efa\u5206\u533a<\/li>\n<li>\u66f4\u6539\u5206\u533a\u540d\u79f0<\/li>\n<li>\u67e5\u770b\u5206\u533a\u8be6\u7ec6\u4fe1\u606f<\/li>\n<li>\u5220\u9664\u5206\u533a<\/li>\n<\/ul>\n<\/li>\n<li>wipefs \u5de5\u5177<\/li>\n<li>parted \u5de5\u5177<\/li>\n<li>\n<ul>\n<li>\u67e5\u770b\u5206\u533a\u8868<\/li>\n<li>\u8bbe\u7f6e\u5355\u4f4d<\/li>\n<li>\u7ba1\u7406 MBR \u78c1\u76d8<\/li>\n<li>\n<ul>\n<li>\u8bbe\u7f6e\u78c1\u76d8\u5206\u533a\u7ba1\u7406\u65b9\u6848<\/li>\n<li>\u521b\u5efa\u5206\u533a<\/li>\n<li>\u6269\u5c55\u5206\u533a\u5bb9\u91cf<\/li>\n<li>\u5220\u9664\u5206\u533a<\/li>\n<li>\u514d\u4ea4\u4e92\u64cd\u4f5c<\/li>\n<\/ul>\n<\/li>\n<li>\u7ba1\u7406 GPT \u78c1\u76d8<\/li>\n<li>\n<ul>\n<li>\u8bbe\u7f6e\u78c1\u76d8\u5206\u533a\u7ba1\u7406\u65b9\u6848<\/li>\n<li>\u521b\u5efa\u5206\u533a<\/li>\n<li>\u6269\u5c55\u5206\u533a<\/li>\n<li>\u5220\u9664\u5206\u533a<\/li>\n<li>\u514d\u4ea4\u4e92\u64cd\u4f5c<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u6587\u4ef6\u7cfb\u7edf\u6301\u4e45\u5316\u6302\u8f7d<\/li>\n<li>\n<ul>\n<li>\u6301\u4e45\u5316\u6302\u8f7d<\/li>\n<li>\u53d6\u6d88\u6301\u4e45\u5316\u6302\u8f7d<\/li>\n<\/ul>\n<\/li>\n<li>\u7efc\u5408\u6848\u4f8b&#xff1a;\u6587\u4ef6\u7cfb\u7edf\u7a7a\u95f4\u4e0d\u8db3<\/li>\n<li>\n<ul>\n<li>\u60c5\u51b51&#xff1a;\u5927\u91cf\u7684\u5927\u6587\u4ef6\u5360\u7528\u7a7a\u95f4<\/li>\n<li>\u60c5\u51b52&#xff1a;\u5220\u9664\u6587\u4ef6\u540e&#xff0c;\u7a7a\u95f4\u6ca1\u6709\u91ca\u653e<\/li>\n<li>\u60c5\u51b53&#xff1a;\u5927\u91cf\u7684\u5c0f\u6587\u4ef6\u5360\u7528\u7a7a\u95f4<\/li>\n<\/ul>\n<\/li>\n<li>\u5982\u4f55\u5f7b\u5e95\u64e6\u9664\u786c\u76d8\u4e0a\u6570\u636e<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Linux \u786c\u76d8\u5206\u533a\u7ba1\u7406<\/h2>\n<h3>MBR \u5206\u533a\u65b9\u6848<\/h3>\n<p>\u4e3b\u542f\u52a8\u8bb0\u5f55(MBR-Master Boot Record)\u5206\u533a\u65b9\u6848\u6307\u5b9a\u4e86\u5728\u8fd0\u884c BIOS \u56fa\u4ef6 \u7684\u7cfb\u7edf\u4e0a\u5982\u4f55\u5bf9\u78c1\u76d8\u8fdb\u884c\u5206\u533a&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260803004035-6a6fe383f3122.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>\u8be5\u65b9\u6848\u652f\u6301\u6700\u591a4\u4e2a\u4e3b\u5206\u533a\u3002<\/li>\n<li>\u5728 Linux\u7cfb\u7edf\u4e0a&#xff0c;\u7ba1\u7406\u5458\u53ef\u4ee5\u4f7f\u7528\u6269\u5c55\u5206\u533a\u548c\u903b\u8f91\u5206\u533a\u6765\u521b\u5efa\u6700\u591a 15\u4e2a\u5206\u533a\u3002<\/li>\n<\/ul>\n<p>\u903b\u8f91\u5206\u533a\u662f\u53ef\u4ee5\u683c\u5f0f\u5316&#xff08;format&#xff09;&#xff0c;\u6269\u5c55\u5206\u533a\u662f\u4e0d\u53ef\u4ee5\u683c\u5f0f\u5316\u3002<\/p>\n<ul>\n<li>MBR \u8bb0\u5f55\u75284\u4e2a\u5b57\u8282&#xff08;1byte&#061;8bit&#xff09;\u5b58\u50a8\u5206\u533a\u7684\u603b\u6247\u533a\u6570&#xff0c;\u6700\u5927\u80fd\u8868\u793a2\u768432\u6b21\u65b9\u7684\u6247\u533a\u4e2a\u6570&#xff0c;\u6309\u6bcf\u6247\u533a512\u5b57\u8282\u8ba1\u7b97&#xff0c;\u6bcf\u4e2a\u5206\u533a\u6700\u5927\u4e0d\u80fd\u8d85\u8fc7 2 TiB\u3002<\/li>\n<\/ul>\n<p>\u7c7b\u6bd4\u4e3a&#xff1a;\u7b14\u8bb0\u672c\u53ea\u67094\u4e2ausb\u63a5\u53e3&#xff0c;\u5982\u679c\u4e0d\u591f\u7528&#xff0c;\u5219\u5c06\u7b2c\u56db\u4e2ausb\u63a5\u53e3\u5916\u63a5\u6269\u5c55\u575e&#xff0c;\u7531\u6269\u5c55\u575e\u63d0\u4f9b\u591a\u4e2ausb\u63a5\u53e3\u3002<\/p>\n<p>\u901a\u5e38&#xff0c;\u6211\u4eec\u5c06\u78c1\u76d8\u7b2c\u4e00\u4e2a\u6247\u533a\u79f0\u4e3a\u4e3b\u5f15\u5bfc\u6247\u533a&#xff0c;\u4f4d\u4e8e\u786c\u76d8\u7684\u67f1\u97620\u3001\u78c1\u59340\u3001\u6247\u533a1\u7684\u4f4d\u7f6e&#xff0c;\u8fd9\u4e00\u6247\u533a\u5305\u542bMBR\u5f15\u5bfc\u4ee3\u7801&#xff0c;\u627f\u62c5\u7cfb\u7edf\u542f\u52a8\u804c\u80fd\u3002\u5b83\u4e0d\u5c5e\u4e8e\u78c1\u76d8\u4e0a\u4efb\u4f55\u5206\u533a&#xff0c;\u56e0\u800c\u5206\u533a\u7a7a\u95f4\u5185\u7684\u683c\u5f0f\u5316\u547d\u4ee4\u4e0d\u80fd\u6e05\u9664\u4e3b\u5f15\u5bfc\u8bb0\u5f55\u7684\u4efb\u4f55\u4fe1\u606f\u3002<\/p>\n<p>\u4e3b\u5f15\u5bfc\u6247\u533a\u7531\u4e09\u4e2a\u90e8\u5206\u7ec4\u6210&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260803004036-6a6fe3842050d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>\u5f15\u5bfc\u7a0b\u5e8f&#xff08;\u5360446\u4e2a\u5b57\u8282&#xff09;&#xff0c;\u786c\u76d8\u542f\u52a8\u65f6\u5c06\u7cfb\u7edf\u63a7\u5236\u6743\u8f6c\u7ed9\u5206\u533a\u8868\u4e2d\u7684\u67d0\u4e2a\u64cd\u4f5c\u7cfb\u7edf\u3002<\/li>\n<li>\u78c1\u76d8\u5206\u533a\u8868\u9879&#xff08;DPT&#xff0c;Disk Partition Table)&#xff0c;\u7531\u56db\u4e2a\u5206\u533a\u8868\u9879\u6784\u6210&#xff08;\u6bcf\u4e2a16\u4e2a\u5b57\u8282&#xff09;\u3002<\/li>\n<li>\u7ed3\u675f\u6807\u5fd7&#xff08;\u53602\u4e2a\u5b57\u8282&#xff09;&#xff0c;\u5176\u503c\u4e3aAA55&#xff08;\u5341\u516d\u8fdb\u5236&#xff09;\u3002<\/li>\n<\/ul>\n<h3>fdisk \u5de5\u5177<\/h3>\n<p>fdisk \u5de5\u5177\u53ef\u7528\u4e8e\u7ba1\u7406\u91c7\u7528 MBR \u5206\u533a\u65b9\u6848\u7684\u78c1\u76d8&#xff0c;\u7528\u6237\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8fdb\u884c\u5212\u5206\u5206\u533a\u3002<\/p>\n<h4>fdisk \u547d\u4ee4\u8bed\u6cd5<\/h4>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~ 08:59:35<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># fdisk -h<\/span><br \/>\n\u7528\u6cd5&#xff1a;<br \/>\n <span class=\"token function\">fdisk<\/span> <span class=\"token punctuation\">[<\/span>\u9009\u9879<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&lt;<\/span>\u78c1\u76d8<span class=\"token operator\">&gt;<\/span>    \u66f4\u6539\u5206\u533a\u8868<br \/>\n <span class=\"token function\">fdisk<\/span> <span class=\"token punctuation\">[<\/span>\u9009\u9879<span class=\"token punctuation\">]<\/span> <span class=\"token parameter variable\">-l<\/span> <span class=\"token operator\">&lt;<\/span>\u78c1\u76d8<span class=\"token operator\">&gt;<\/span> \u5217\u51fa\u5206\u533a\u8868<br \/>\n <span class=\"token function\">fdisk<\/span> <span class=\"token parameter variable\">-s<\/span> <span class=\"token operator\">&lt;<\/span>\u5206\u533a<span class=\"token operator\">&gt;<\/span>        \u7ed9\u51fa\u5206\u533a\u5927\u5c0f<span class=\"token punctuation\">(<\/span>\u5757\u6570<span class=\"token punctuation\">)<\/span><\/p>\n<p>\u9009\u9879&#xff1a;<br \/>\n <span class=\"token parameter variable\">-b<\/span> <span class=\"token operator\">&lt;<\/span>\u5927\u5c0f<span class=\"token operator\">&gt;<\/span>             \u6247\u533a\u5927\u5c0f<span class=\"token punctuation\">(<\/span><span class=\"token number\">512<\/span>\u30011024\u30012048\u62164096<span class=\"token punctuation\">)<\/span><br \/>\n -c<span class=\"token punctuation\">[<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token operator\">&lt;<\/span>\u6a21\u5f0f<span class=\"token operator\">&gt;<\/span><span class=\"token punctuation\">]<\/span>           \u517c\u5bb9\u6a21\u5f0f&#xff1a;\u201cdos\u201d\u6216\u201cnondos\u201d<span class=\"token punctuation\">(<\/span>\u9ed8\u8ba4<span class=\"token punctuation\">)<\/span><br \/>\n <span class=\"token parameter variable\">-h<\/span>                    \u6253\u5370\u6b64\u5e2e\u52a9\u6587\u672c<br \/>\n -u<span class=\"token punctuation\">[<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token operator\">&lt;<\/span>\u5355\u4f4d<span class=\"token operator\">&gt;<\/span><span class=\"token punctuation\">]<\/span>           \u663e\u793a\u5355\u4f4d&#xff1a;\u201ccylinders\u201d<span class=\"token punctuation\">(<\/span>\u67f1\u9762<span class=\"token punctuation\">)<\/span>\u6216\u201csectors\u201d<span class=\"token punctuation\">(<\/span>\u6247\u533a&#xff0c;\u9ed8\u8ba4<span class=\"token punctuation\">)<\/span><br \/>\n <span class=\"token parameter variable\">-v<\/span>                    \u6253\u5370\u7a0b\u5e8f\u7248\u672c<br \/>\n <span class=\"token parameter variable\">-C<\/span> <span class=\"token operator\">&lt;<\/span>\u6570\u5b57<span class=\"token operator\">&gt;<\/span>             \u6307\u5b9a\u67f1\u9762\u6570<br \/>\n <span class=\"token parameter variable\">-H<\/span> <span class=\"token operator\">&lt;<\/span>\u6570\u5b57<span class=\"token operator\">&gt;<\/span>             \u6307\u5b9a\u78c1\u5934\u6570<br \/>\n <span class=\"token parameter variable\">-S<\/span> <span class=\"token operator\">&lt;<\/span>\u6570\u5b57<span class=\"token operator\">&gt;<\/span>             \u6307\u5b9a\u6bcf\u4e2a\u78c1\u9053\u7684\u6247\u533a\u6570<\/p>\n<p>\u9664\u4e86\u4f7f\u7528-l\u9009\u9879\u67e5\u770b\u5206\u533a\u8868&#xff0c;\u5176\u4ed6\u9009\u9879\u6682\u65f6\u90fd\u4e0d\u7528\u3002<\/p>\n<h4>\u67e5\u770b\u5206\u533a<\/h4>\n<p>fdisk\u5de5\u5177\u5927\u90e8\u5206\u64cd\u4f5c\u901a\u8fc7\u4ea4\u4e92\u5f0f\u5b8c\u6210&#xff0c;\u51fa\u4e86\u67e5\u770b\u5206\u533a\u8868\u3002<\/p>\n<p>DOS disklabel \u6307\u7684\u786c\u76d8\u7ba1\u7406\u65b9\u5f0f\u662fMBR\u3002<\/p>\n<p><span class=\"token comment\"># \u51c6\u5907\u4e00\u5757\u786c\u76d8<\/span><br \/>\n<span class=\"token comment\"># \u65b9\u6cd51&#xff1a;<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># fdisk -l \/dev\/sdb<\/span><\/p>\n<p>Disk \/dev\/sdb: <span class=\"token number\">21.5<\/span> GB, <span class=\"token number\">21474836480<\/span> bytes, <span class=\"token number\">41943040<\/span> sectors<br \/>\nUnits <span class=\"token operator\">&#061;<\/span> sectors of <span class=\"token number\">1<\/span> * <span class=\"token number\">512<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">512<\/span> bytes<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: <span class=\"token number\">512<\/span> bytes \/ <span class=\"token number\">512<\/span> bytes<br \/>\nI\/O size <span class=\"token punctuation\">(<\/span>minimum\/optimal<span class=\"token punctuation\">)<\/span>: <span class=\"token number\">512<\/span> bytes \/ <span class=\"token number\">512<\/span> bytes<br \/>\nDisk label type: dos<br \/>\nDisk identifier: 0x78ceaffe<\/p>\n<p>   Device Boot      Start         End      Blocks   Id  System<br \/>\n\/dev\/sdb1            <span class=\"token number\">2048<\/span>    <span class=\"token number\">41943039<\/span>    <span class=\"token number\">20970496<\/span>   <span class=\"token number\">83<\/span>  Linux<\/p>\n<p><span class=\"token comment\"># \u65b9\u6cd52&#xff1a;<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># fdisk \/dev\/sdb<\/span><br \/>\nWelcome to <span class=\"token function\">fdisk<\/span> <span class=\"token punctuation\">(<\/span>util-linux <span class=\"token number\">2.23<\/span>.2<span class=\"token punctuation\">)<\/span>.<\/p>\n<p>Changes will remain <span class=\"token keyword\">in<\/span> memory only, <span class=\"token keyword\">until<\/span> you decide to <span class=\"token function\">write<\/span> them.<br \/>\nBe careful before using the <span class=\"token function\">write<\/span> command.<\/p>\n<p><span class=\"token comment\"># \u8f93\u5165m&#xff0c;\u67e5\u770b\u5e2e\u52a9\u4fe1\u606f<\/span><br \/>\nCommand <span class=\"token punctuation\">(<\/span>m <span class=\"token keyword\">for<\/span> <span class=\"token builtin class-name\">help<\/span><span class=\"token punctuation\">)<\/span>: <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>m<span class=\"token variable\">&#096;<\/span><\/span><br \/>\nCommand action<br \/>\n   a   toggle a bootable flag<br \/>\n   b   edit bsd disklabel<br \/>\n   c   toggle the dos compatibility flag<br \/>\n   d   delete a partition<br \/>\n   g   create a new empty GPT partition table<br \/>\n   G   create an IRIX <span class=\"token punctuation\">(<\/span>SGI<span class=\"token punctuation\">)<\/span> partition table<br \/>\n   l   list known partition types<br \/>\n   m   print this menu<br \/>\n   n   <span class=\"token function\">add<\/span> a new partition<br \/>\n   o   create a new empty DOS partition table<br \/>\n   p   print the partition table<br \/>\n   q   quit without saving changes<br \/>\n   s   create a new empty Sun disklabel<br \/>\n   t   change a partition&#039;s system <span class=\"token function\">id<\/span><br \/>\n   u   change display\/entry <span class=\"token function\">units<\/span><br \/>\n   <span class=\"token function\">v<\/span>   verify the partition table<br \/>\n   w   <span class=\"token function\">write<\/span> table to disk and <span class=\"token builtin class-name\">exit<\/span><br \/>\n   x   extra functionality <span class=\"token punctuation\">(<\/span>experts only<span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># \u8f93\u5165q&#xff0c;\u9000\u51fa\u7ba1\u7406<\/span><br \/>\nCommand <span class=\"token punctuation\">(<\/span>m <span class=\"token keyword\">for<\/span> <span class=\"token builtin class-name\">help<\/span><span class=\"token punctuation\">)<\/span>: q<\/p>\n<h4>\u521b\u5efa\u5206\u533a<\/h4>\n<p><span class=\"token comment\"># \u8f93\u5165n&#xff0c;\u521b\u5efa\u4e00\u4e2a\u65b0\u5206\u533a<\/span><br \/>\nCommand <span class=\"token punctuation\">(<\/span>m <span class=\"token keyword\">for<\/span> <span class=\"token builtin class-name\">help<\/span><span class=\"token punctuation\">)<\/span>: <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>n<span class=\"token variable\">&#096;<\/span><\/span><\/p>\n<p><span class=\"token comment\"># \u9009\u62e9\u5206\u533a\u7c7b\u578b<\/span><br \/>\nPartition type:<br \/>\n   p   primary <span class=\"token punctuation\">(<\/span><span class=\"token number\">0<\/span> primary, <span class=\"token number\">0<\/span> extended, <span class=\"token number\">4<\/span> <span class=\"token function\">free<\/span><span class=\"token punctuation\">)<\/span><br \/>\n   e   extended<br \/>\n<span class=\"token comment\"># \u76f4\u63a5\u56de\u8f66&#xff0c;\u9009\u62e9\u9ed8\u8ba4\u5206\u533a\u7c7b\u578b&#xff1a;primary<\/span><br \/>\nSelect <span class=\"token punctuation\">(<\/span>default p<span class=\"token punctuation\">)<\/span>: <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>\u56de\u8f66<span class=\"token variable\">&#096;<\/span><\/span><br \/>\nUsing default response p<\/p>\n<p><span class=\"token comment\"># \u76f4\u63a5\u56de\u8f66&#xff0c;\u5206\u533a\u53f7&#xff0c;\u4f7f\u7528\u9ed8\u8ba4\u503c1<\/span><br \/>\nPartition number <span class=\"token punctuation\">(<\/span><span class=\"token number\">1<\/span>-4, default <span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span>: <\/p>\n<p><span class=\"token comment\"># \u76f4\u63a5\u56de\u8f66&#xff0c;\u8bbe\u7f6e\u5206\u533a\u8d77\u59cb\u4f4d\u7f6e\u4e3a&#xff1a;\u9ed8\u8ba4\u503c2048\u6247\u533a&#xff0c;\u4e5f\u5c31\u662f1M\u4f4d\u7f6e\u3002<\/span><br \/>\nFirst sector <span class=\"token punctuation\">(<\/span><span class=\"token number\">2048<\/span>-41943039, default <span class=\"token number\">2048<\/span><span class=\"token punctuation\">)<\/span>:<br \/>\nUsing default value <span class=\"token number\">2048<\/span><\/p>\n<p><span class=\"token comment\"># \u8bbe\u7f6e\u5206\u533a\u7ed3\u675f\u4f4d\u7f6e&#xff0c;\u8f93\u5165&#043;2G&#xff0c;\u4e5f\u5c31\u662f\u8d77\u59cb\u4f4d\u7f6e\u4e4b\u540e2<\/span><br \/>\nLast sector, &#043;sectors or &#043;size<span class=\"token punctuation\">{<\/span>K,M,G<span class=\"token punctuation\">}<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token number\">2048<\/span>-41943039, default <span class=\"token number\">41943039<\/span><span class=\"token punctuation\">)<\/span>: &#043;2G<br \/>\nPartition <span class=\"token number\">1<\/span> of <span class=\"token builtin class-name\">type<\/span> Linux and of size <span class=\"token number\">2<\/span> GiB is <span class=\"token builtin class-name\">set<\/span><\/p>\n<p>Command <span class=\"token punctuation\">(<\/span>m <span class=\"token keyword\">for<\/span> <span class=\"token builtin class-name\">help<\/span><span class=\"token punctuation\">)<\/span>: p<\/p>\n<p>Disk \/dev\/sdb: <span class=\"token number\">21.5<\/span> GB, <span class=\"token number\">21474836480<\/span> bytes, <span class=\"token number\">41943040<\/span> sectors<br \/>\nUnits <span class=\"token operator\">&#061;<\/span> sectors of <span class=\"token number\">1<\/span> * <span class=\"token number\">512<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">512<\/span> bytes<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: <span class=\"token number\">512<\/span> bytes \/ <span class=\"token number\">512<\/span> bytes<br \/>\nI\/O size <span class=\"token punctuation\">(<\/span>minimum\/optimal<span class=\"token punctuation\">)<\/span>: <span class=\"token number\">512<\/span> bytes \/ <span class=\"token number\">512<\/span> bytes<br \/>\nDisk label type: dos<br \/>\nDisk identifier: 0x78ceaffe<\/p>\n<p>   Device Boot      Start         End      Blocks   Id  System<br \/>\n\/dev\/sdb1            <span class=\"token number\">2048<\/span>     <span class=\"token number\">4196351<\/span>     <span class=\"token number\">2097152<\/span>   <span class=\"token number\">83<\/span>  Linux<\/p>\n<p><span class=\"token comment\"># \u8f93\u5165w&#xff0c;\u4fdd\u5b58\u66f4\u6539\u5e76\u9000\u51fa<\/span><br \/>\n<span class=\"token comment\"># \u8f93\u5165q&#xff0c;\u4e0d\u4fdd\u5b58\u66f4\u6539\u5e76\u9000\u51fa<\/span><br \/>\nCommand <span class=\"token punctuation\">(<\/span>m <span class=\"token keyword\">for<\/span> <span class=\"token builtin class-name\">help<\/span><span class=\"token punctuation\">)<\/span>: w<br \/>\nThe partition table has been altered<span class=\"token operator\">!<\/span><\/p>\n<p>Calling ioctl<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> to re-read partition table.<br \/>\nSyncing disks.<\/p>\n<p><span class=\"token comment\"># \u518d\u6b21\u9a8c\u8bc1\u5206\u533a\u8868\u53d8\u5316<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># lsblk \/dev\/sdb<\/span><br \/>\nNAME   MAJ:MIN RM SIZE RO TYPE MOUNTPOINT<br \/>\nsdb      <span class=\"token number\">8<\/span>:16   <span class=\"token number\">0<\/span>  20G  <span class=\"token number\">0<\/span> disk<br \/>\n&#096;-sdb1   <span class=\"token number\">8<\/span>:17   <span class=\"token number\">0<\/span>   2G  <span class=\"token number\">0<\/span> part<\/p>\n<p>\u6ce8\u610f&#xff1a;\u5982\u679c\u6b64\u65f6\u5206\u533a\u8868\u672a\u751f\u6210&#xff0c;\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff0c;\u901a\u77e5kernel\u91cd\u65b0\u751f\u6210\u5206\u533a\u8868\u3002\u6709\u65f6\u5019\u91cd\u542f\u7cfb\u7edf\u624d\u4f1a\u751f\u6210\u6700\u65b0\u5206\u533a\u8868\u3002<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># partprobe<\/span><\/p>\n<h4>\u5220\u9664\u5206\u533a<\/h4>\n<p><span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># fdisk \/dev\/sdb<\/span><br \/>\nWelcome to <span class=\"token function\">fdisk<\/span> <span class=\"token punctuation\">(<\/span>util-linux <span class=\"token number\">2.23<\/span>.2<span class=\"token punctuation\">)<\/span>.<\/p>\n<p>Changes will remain <span class=\"token keyword\">in<\/span> memory only, <span class=\"token keyword\">until<\/span> you decide to <span class=\"token function\">write<\/span> them.<br \/>\nBe careful before using the <span class=\"token function\">write<\/span> command.<\/p>\n<p><span class=\"token comment\"># \u8f93\u5165p&#xff0c;\u6253\u5370\u5206\u533a\u8868<\/span><br \/>\nCommand <span class=\"token punctuation\">(<\/span>m <span class=\"token keyword\">for<\/span> <span class=\"token builtin class-name\">help<\/span><span class=\"token punctuation\">)<\/span>: p<\/p>\n<p>Disk \/dev\/sdb: <span class=\"token number\">21.5<\/span> GB, <span class=\"token number\">21474836480<\/span> bytes, <span class=\"token number\">41943040<\/span> sectors<br \/>\nUnits <span class=\"token operator\">&#061;<\/span> sectors of <span class=\"token number\">1<\/span> * <span class=\"token number\">512<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">512<\/span> bytes<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: <span class=\"token number\">512<\/span> bytes \/ <span class=\"token number\">512<\/span> bytes<br \/>\nI\/O size <span class=\"token punctuation\">(<\/span>minimum\/optimal<span class=\"token punctuation\">)<\/span>: <span class=\"token number\">512<\/span> bytes \/ <span class=\"token number\">512<\/span> bytes<br \/>\nDisk label type: dos<br \/>\nDisk identifier: 0x78ceaffe<\/p>\n<p>   Device Boot      Start         End      Blocks   Id  System<br \/>\n\/dev\/sdb1            <span class=\"token number\">2048<\/span>    <span class=\"token number\">41943039<\/span>    <span class=\"token number\">20970496<\/span>   <span class=\"token number\">83<\/span>  Linux<\/p>\n<p><span class=\"token comment\"># \u8f93\u5165d&#xff0c;\u5220\u9664\u5206\u533a&#xff0c;\u56e0\u4e3a\u53ea\u67091\u4e2a\u5206\u533a&#xff0c;\u6240\u4ee5\u81ea\u52a8\u5220\u9664\u4e86\u7b2c\u4e00\u4e2a\u5206\u533a<\/span><br \/>\nCommand <span class=\"token punctuation\">(<\/span>m <span class=\"token keyword\">for<\/span> <span class=\"token builtin class-name\">help<\/span><span class=\"token punctuation\">)<\/span>: <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>d<span class=\"token variable\">&#096;<\/span><\/span><br \/>\nSelected partition <span class=\"token number\">1<\/span><br \/>\nPartition <span class=\"token number\">1<\/span> is deleted<\/p>\n<p>Command <span class=\"token punctuation\">(<\/span>m <span class=\"token keyword\">for<\/span> <span class=\"token builtin class-name\">help<\/span><span class=\"token punctuation\">)<\/span>: p<\/p>\n<p>Disk \/dev\/sdb: <span class=\"token number\">21.5<\/span> GB, <span class=\"token number\">21474836480<\/span> bytes, <span class=\"token number\">41943040<\/span> sectors<br \/>\nUnits <span class=\"token operator\">&#061;<\/span> sectors of <span class=\"token number\">1<\/span> * <span class=\"token number\">512<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">512<\/span> bytes<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: <span class=\"token number\">512<\/span> bytes \/ <span class=\"token number\">512<\/span> bytes<br \/>\nI\/O size <span class=\"token punctuation\">(<\/span>minimum\/optimal<span class=\"token punctuation\">)<\/span>: <span class=\"token number\">512<\/span> bytes \/ <span class=\"token number\">512<\/span> bytes<br \/>\nDisk label type: dos<br \/>\nDisk identifier: 0x78ceaffe<\/p>\n<p>   Device Boot      Start         End      Blocks   Id  System<\/p>\n<p>\u5982\u679c\u786c\u76d8\u7a7a\u95f4\u6bd4\u8f83\u5927&#xff0c;\u9700\u8981\u7684\u6587\u4ef6\u7cfb\u7edf\u6570\u91cf\u8d85\u8fc74\u4e2a&#xff0c;\u90a3\u4e48\u5c31\u9700\u8981\u501f\u52a9\u6269\u5c55\u5206\u533a\u521b\u5efa\u903b\u8f91\u5206\u533a\u4e86\u3002<\/p>\n<h3>GPT \u5206\u533a\u65b9\u6848<\/h3>\n<p>GPT\u662f\u8fd0\u884c\u7edf\u4e00\u53ef\u6269\u5c55\u56fa\u4ef6\u63a5\u53e3(UEFI)\u56fa\u4ef6\u7cfb\u7edf\u4e0a\u786c\u76d8\u5206\u533a\u8868\u7684\u6807\u51c6\u3002<\/p>\n<ul>\n<li>MBR\u5206\u533a\u65b9\u6848\u53ea\u80fd\u7ba1\u7406\u6700\u59272TiB\u5206\u533a\u548c\u78c1\u76d8\u3002\u5168\u5c40\u552f\u4e00\u6807\u8bc6\u5206\u533a\u8868&#xff08;GPT&#xff0c;GUID Partition Table&#xff09;\u4f7f\u75288\u4e2a\u5b57\u8282&#xff08;1byte&#061;8bit&#xff09;\u5b58\u50a8\u5206\u533a\u7684\u603b\u6247\u533a\u6570&#xff0c;\u53ef\u652f\u6301\u6700\u591a18 ZiB(&#061;2<sup>64<\/sup>*512 Byte)&#xff0c;\u537318\u4ebf\u592a\u5b57\u8282\u7684\u5206\u533a\u548c\u78c1\u76d8\u3002<\/li>\n<li>MBR\u5206\u533a\u65b9\u6848\u652f\u6301\u6700\u591a15\u4e2a\u5206\u533a\u3002GPT\u5206\u533a\u65b9\u6848\u6700\u591a\u53ef\u63d0\u4f9b128\u4e2a\u5206\u533a\u3002<\/li>\n<li>GPT \u63d0\u4f9b\u5206\u533a\u8868\u4fe1\u606f\u7684\u5197\u4f59\u3002<\/li>\n<\/ul>\n<p>GPT\u5206\u533a\u8868\u7ed3\u6784\u5982\u4e0b&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260803004036-6a6fe3845454d.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>LBA0&#xff08;\u4fdd\u62a4\u6027MBR&#xff09;&#xff0c;\u5206\u4e3a\u4e24\u4e2a\u90e8\u5206&#xff1a;<\/li>\n<li>\u7b2c\u4e00\u90e8\u5206\u662f\u4e0eMBR\u4e2d446\u5b57\u8282\u76f8\u4f3c\u7684\u533a\u5757&#xff0c;\u7528\u4e8e\u5b58\u653e\u7b2c\u4e00\u9636\u6bb5\u7684\u542f\u52a8\u5f15\u5bfc\u7a0b\u5e8f\u3002<\/li>\n<li>\u7b2c\u4e8c\u90e8\u5206\u662f\u4e0eMBR\u5206\u533a\u8868\u8bb0\u5f55\u533a\u5bf9\u5e94&#xff0c;\u8be5\u533a\u57df\u5b58\u50a8\u4e00\u4e2a\u7279\u6b8a\u6807\u8bc6\u7b260xEE&#xff0c;\u7528\u4e8e\u8868\u793a\u8be5\u78c1\u76d8\u4e3aGPT\u683c\u5f0f\u3002\u82e5\u78c1\u76d8\u7ba1\u7406\u7a0b\u5e8f&#xff08;\u6bd4\u8f83\u8001\u7684\u8f6f\u4ef6&#xff09;\u65e0\u6cd5\u8bc6\u522b\u8be5\u78c1\u76d8&#xff0c;\u4e0d\u80fd\u4fee\u6539\u8fd9\u4e2a\u5206\u533a\u4fe1\u606f&#xff0c;\u8fdb\u4e00\u6b65\u4fdd\u62a4\u78c1\u76d8\u3002<\/li>\n<li>LBA1&#xff08;GPT\u8868\u5934\u8bb0\u5f55&#xff09;&#xff0c;\u8bb0\u5f55\u4e86\u5206\u533a\u8868\u81ea\u8eab\u7684\u4f4d\u7f6e\u548c\u5927\u5c0f&#xff0c;\u540c\u65f6\u4e5f\u8bb0\u5f55\u4e86\u524d\u9762\u63d0\u5230\u5907\u4efd\u7528\u7684GPT\u5206\u533a\u6240\u5728\u4f4d\u7f6e&#xff08;\u6700\u540e34\u4e2aLBA&#xff09;&#xff0c;\u8fd8\u653e\u7f6e\u4e86\u5206\u533a\u8868\u7684\u6821\u9a8c\u7801&#xff08;CRC32&#xff09;&#xff0c;\u6821\u9a8c\u7801\u7684\u4f5c\u7528\u662f\u8ba9\u64cd\u4f5c\u7cfb\u7edf\u5224\u65adGPT\u7684\u6b63\u786e\u4e0e\u5426&#xff0c;\u5018\u82e5\u53d1\u73b0\u9519\u8bef\u5219\u53ef\u4ee5\u4ece\u5907\u4efd\u7684GPT\u4e2d\u6062\u590d\u6b63\u5e38\u8fd0\u884c\u3002<\/li>\n<li>LBA2-33&#xff0c;\u8bb0\u5f55\u5206\u533a\u4fe1\u606f&#xff0c;\u6bcf\u4e2aLBA\u53ef\u4ee5\u63d0\u4f9b4\u7ec4\u7684\u5206\u533a\u8bb0\u5f55&#xff0c;\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u53ef\u4ee5\u67094\u00d732&#061;128\u7ec4\u5206\u533a\u8bb0\u5f55\u3002\u56e0\u4e3a\u6bcf\u4e2aLBA\u90fd\u6709512\u5b57\u8282&#xff0c;\u6240\u4ee5\u6bcf\u7ec4\u5206\u533a\u8bb0\u5f55\u6240\u5360128\u5b57\u8282&#xff0c;\u9664\u53bb\u6bcf\u7ec4\u8bb0\u5f55\u9700\u8981\u7684\u6807\u8bc6\u7b26\u548c\u76f8\u5173\u8bb0\u5f55\u4fe1\u606f\u5916&#xff0c;GPT\u5728\u6bcf\u7ec4\u8bb0\u5f55\u4e2d\u63d0\u4f9b\u4e8664\u4f4d\u8bb0\u8f7d\u5206\u533a\u7684\u6247\u533a\u603b\u6570\u3002<\/li>\n<li>\u867d\u7136GPT\u6700\u5927\u652f\u6301128\u4e2a\u5206\u533a&#xff0c;\u4f46\u662f\u5b9e\u9645\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u5206\u533a\u8d85\u8fc7\u7b2c120\u4e2a\u4f1a\u51fa\u73b0\u65e0\u6cd5\u683c\u5f0f\u5316\u4f7f\u7528\u7684\u60c5\u51b5\u3002<\/li>\n<\/ul>\n<h3>gdisk \u5de5\u5177<\/h3>\n<p>gdisk\u5de5\u5177\u7528\u4e8e\u7ba1\u7406\u91c7\u7528GPT\u5206\u533a\u65b9\u6848\u7684\u78c1\u76d8\u5206\u533a&#xff0c;\u4e3b\u8981\u7528\u4e8e\u7ba1\u7406\u78c1\u76d8\u5bb9\u91cf\u8d85\u8fc72T\u7684\u78c1\u76d8\u3002<\/p>\n<h4>gdisk\u547d\u4ee4\u8bed\u6cd5<\/h4>\n<p>gdisk <span class=\"token punctuation\">[<\/span> <span class=\"token parameter variable\">-l<\/span> <span class=\"token punctuation\">]<\/span> device<\/p>\n<h4>\u67e5\u770b\u5206\u533a\u8868<\/h4>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~ 09:19:46<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># gdisk -l \/dev\/sdb<\/span><br \/>\nGPT <span class=\"token function\">fdisk<\/span> <span class=\"token punctuation\">(<\/span>gdisk<span class=\"token punctuation\">)<\/span> version <span class=\"token number\">0.8<\/span>.10<br \/>\n<span class=\"token comment\"># \u8fd9\u91cc\u663e\u793a\u8bc6\u522b\u5230\u4e86MBR\u5206\u533a\u65b9\u6848<\/span><br \/>\nPartition table scan:<br \/>\n  MBR: MBR only<br \/>\n  BSD: not present<br \/>\n  APM: not present<br \/>\n  GPT: not present<\/p>\n<p>Found invalid GPT and valid MBR<span class=\"token punctuation\">;<\/span> converting MBR to GPT <span class=\"token function\">format<\/span><br \/>\n<span class=\"token keyword\">in<\/span> memory.<br \/>\nDisk \/dev\/sdb: <span class=\"token number\">209715200<\/span> sectors, <span class=\"token number\">100.0<\/span> GiB<br \/>\nLogical sector size: <span class=\"token number\">512<\/span> bytes<br \/>\nDisk identifier <span class=\"token punctuation\">(<\/span>GUID<span class=\"token punctuation\">)<\/span>: <span class=\"token number\">36002738<\/span>-6FDA-4433-8182-2720A000D7C5<br \/>\nPartition table holds up to <span class=\"token number\">128<\/span> entries<br \/>\nFirst usable sector is <span class=\"token number\">34<\/span>, last usable sector is <span class=\"token number\">209715166<\/span><br \/>\nPartitions will be aligned on <span class=\"token number\">2048<\/span>-sector boundaries<br \/>\nTotal <span class=\"token function\">free<\/span> space is <span class=\"token number\">209715133<\/span> sectors <span class=\"token punctuation\">(<\/span><span class=\"token number\">100.0<\/span> GiB<span class=\"token punctuation\">)<\/span><\/p>\n<p>Number  Start <span class=\"token punctuation\">(<\/span>sector<span class=\"token punctuation\">)<\/span>    End <span class=\"token punctuation\">(<\/span>sector<span class=\"token punctuation\">)<\/span>  Size       Code  Name<\/p>\n<h4>\u521b\u5efa\u5206\u533a<\/h4>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~ 09:19:46<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># gdisk -l \/dev\/sdb<\/span><br \/>\n<span class=\"token punctuation\">..<\/span><span class=\"token punctuation\">..<\/span><span class=\"token punctuation\">..<\/span><br \/>\n<span class=\"token comment\"># \u8fd9\u91cc\u8bc6\u522b\u5230\u4e86GPT\u5206\u533a\u65b9\u6848<\/span><br \/>\nPartition table scan:<br \/>\n  MBR: protective<br \/>\n  BSD: not present<br \/>\n  APM: not present<br \/>\n  GPT: present<br \/>\n  <span class=\"token punctuation\">..<\/span><span class=\"token punctuation\">..<\/span><span class=\"token punctuation\">..<\/span><br \/>\n  <span class=\"token comment\"># \u8f93\u5165n&#xff0c;\u521b\u5efa\u65b0\u5206\u533a<\/span><br \/>\nCommand <span class=\"token punctuation\">(<\/span>? <span class=\"token keyword\">for<\/span> <span class=\"token builtin class-name\">help<\/span><span class=\"token punctuation\">)<\/span>: <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>n<span class=\"token variable\">&#096;<\/span><\/span><br \/>\n<span class=\"token comment\"># \u8bbe\u7f6e\u5206\u533aID<\/span><br \/>\nPartition number <span class=\"token punctuation\">(<\/span><span class=\"token number\">1<\/span>-128, default <span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span>: <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>\u56de\u8f66<span class=\"token variable\">&#096;<\/span><\/span><br \/>\n<span class=\"token comment\"># \u8bbe\u7f6e\u5206\u533a\u8d77\u59cb\u4f4d\u7f6e<\/span><br \/>\nFirst sector <span class=\"token punctuation\">(<\/span><span class=\"token number\">34<\/span>-41943006, default <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">2048<\/span><span class=\"token punctuation\">)<\/span> or <span class=\"token punctuation\">{<\/span>&#043;-<span class=\"token punctuation\">}<\/span>size<span class=\"token punctuation\">{<\/span>KMGTP<span class=\"token punctuation\">}<\/span>: <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>\u56de\u8f66<span class=\"token variable\">&#096;<\/span><\/span><\/p>\n<p><span class=\"token comment\"># \u8bbe\u7f6e\u5206\u533a\u7ed3\u675f\u4f4d\u7f6e<\/span><br \/>\nLast sector <span class=\"token punctuation\">(<\/span><span class=\"token number\">2048<\/span>-41943006, default <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">41943006<\/span><span class=\"token punctuation\">)<\/span> or <span class=\"token punctuation\">{<\/span>&#043;-<span class=\"token punctuation\">}<\/span>size<span class=\"token punctuation\">{<\/span>KMGTP<span class=\"token punctuation\">}<\/span>: <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>&#043;2G<span class=\"token variable\">&#096;<\/span><\/span><br \/>\nCurrent <span class=\"token builtin class-name\">type<\/span> is <span class=\"token string\">&#039;Linux filesystem&#039;<\/span><\/p>\n<p><span class=\"token comment\"># \u8bbe\u7f6e\u5206\u533a\u7c7b\u578b&#xff0c;\u8f93\u5165L\u67e5\u770b\u6240\u6709\u5206\u533a\u7c7b\u578b<\/span><br \/>\nHex code or GUID <span class=\"token punctuation\">(<\/span>L to show codes, Enter <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">8300<\/span><span class=\"token punctuation\">)<\/span>: <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>L<span class=\"token variable\">&#096;<\/span><\/span><br \/>\n<span class=\"token comment\"># \u8f93\u5165\u56de\u8f66\u7ee7\u7eed\u67e5\u770b<\/span><br \/>\nPress the <span class=\"token operator\">&lt;<\/span>Enter<span class=\"token operator\">&gt;<\/span> key to see <span class=\"token function\">more<\/span> codes:<span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>\u56de\u8f66<span class=\"token variable\">&#096;<\/span><\/span><br \/>\n<span class=\"token comment\"># \u8f93\u5165\u56de\u8f66&#xff0c;\u9009\u62e9\u9ed8\u8ba4\u5206\u533a\u7c7b\u578b<\/span><br \/>\nHex code or GUID <span class=\"token punctuation\">(<\/span>L to show codes, Enter <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">8300<\/span><span class=\"token punctuation\">)<\/span>:<br \/>\nChanged <span class=\"token builtin class-name\">type<\/span> of partition to <span class=\"token string\">&#039;Linux filesystem&#039;<\/span><\/p>\n<p><span class=\"token comment\"># \u8f93\u5165p&#xff0c;\u67e5\u770b\u5206\u533a\u8868<\/span><br \/>\nNumber  Start <span class=\"token punctuation\">(<\/span>sector<span class=\"token punctuation\">)<\/span>    End <span class=\"token punctuation\">(<\/span>sector<span class=\"token punctuation\">)<\/span>  Size       Code  Name<br \/>\n   <span class=\"token number\">1<\/span>            <span class=\"token number\">2048<\/span>         <span class=\"token number\">4196351<\/span>   <span class=\"token number\">2.0<\/span> GiB     <span class=\"token number\">8300<\/span>  Linux filesystem<\/p>\n<h4>\u66f4\u6539\u5206\u533a\u540d\u79f0<\/h4>\n<p><span class=\"token comment\"># \u8f93\u5165c&#xff0c;\u4fee\u6539\u5206\u533aID\u4e3a1\u7684\u5206\u533a\u540d<\/span><br \/>\nCommand <span class=\"token punctuation\">(<\/span>? <span class=\"token keyword\">for<\/span> <span class=\"token builtin class-name\">help<\/span><span class=\"token punctuation\">)<\/span>: c<br \/>\nUsing <span class=\"token number\">1<\/span><br \/>\n<span class=\"token comment\"># \u8f93\u5165\u65b0\u540d\u79f0<\/span><br \/>\nEnter name: data01<br \/>\n<span class=\"token comment\"># \u67e5\u770b\u5206\u533a\u8868<\/span><br \/>\nCommand <span class=\"token punctuation\">(<\/span>? <span class=\"token keyword\">for<\/span> <span class=\"token builtin class-name\">help<\/span><span class=\"token punctuation\">)<\/span>: p<br \/>\nNumber  Start <span class=\"token punctuation\">(<\/span>sector<span class=\"token punctuation\">)<\/span>    End <span class=\"token punctuation\">(<\/span>sector<span class=\"token punctuation\">)<\/span>  Size       Code  Name<br \/>\n   <span class=\"token number\">1<\/span>            <span class=\"token number\">2048<\/span>         <span class=\"token number\">4196351<\/span>   <span class=\"token number\">2.0<\/span> GiB     <span class=\"token number\">8300<\/span>  data01<\/p>\n<h4>\u67e5\u770b\u5206\u533a\u8be6\u7ec6\u4fe1\u606f<\/h4>\n<p>Command <span class=\"token punctuation\">(<\/span>? <span class=\"token keyword\">for<\/span> <span class=\"token builtin class-name\">help<\/span><span class=\"token punctuation\">)<\/span>: i<\/p>\n<h4>\u5220\u9664\u5206\u533a<\/h4>\n<p><span class=\"token comment\"># \u8f93\u5165d&#xff0c;\u5220\u9664\u5206\u533aID\u4e3a1\u7684\u5206\u533a<\/span><br \/>\nCommand <span class=\"token punctuation\">(<\/span>? <span class=\"token keyword\">for<\/span> <span class=\"token builtin class-name\">help<\/span><span class=\"token punctuation\">)<\/span>: d<\/p>\n<h3>wipefs \u5de5\u5177<\/h3>\n<p>\u4f5c\u7528&#xff1a;\u67e5\u770b\u548c\u6e05\u9664\u78c1\u76d8\u7ba1\u7406\u4fe1\u606f\u3002<\/p>\n<p>\u6ce8\u610f&#xff1a;\u6570\u636e\u65e0\u4ef7&#xff0c;\u64cd\u4f5c\u9700\u8c28\u614e&#xff0c;\u6700\u597d\u63d0\u524d\u5907\u4efd\u3002<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u78c1\u76d8\u7ba1\u7406\u4fe1\u606f<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server ~ <span class=\"token number\">10<\/span>:13:49<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># wipefs \/dev\/sdb<\/span><\/p>\n<p><span class=\"token comment\"># \u6e05\u9664\u672a\u6302\u8f7d\u78c1\u76d8\u7684\u5206\u533a\u8868<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server ~ 09:46:30<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># wipefs -a \/dev\/sdb<\/span><br \/>\n\/dev\/sdb&#xff1a;8 \u4e2a\u5b57\u8282\u5df2\u64e6\u9664&#xff0c;\u4f4d\u7f6e\u504f\u79fb\u4e3a 0x00000200 <span class=\"token punctuation\">(<\/span>gpt<span class=\"token punctuation\">)<\/span>&#xff1a;45 <span class=\"token number\">46<\/span> <span class=\"token number\">49<\/span> <span class=\"token number\">20<\/span> <span class=\"token number\">50<\/span> <span class=\"token number\">41<\/span> <span class=\"token number\">52<\/span> <span class=\"token number\">54<\/span><br \/>\n\/dev\/sdb&#xff1a;8 \u4e2a\u5b57\u8282\u5df2\u64e6\u9664&#xff0c;\u4f4d\u7f6e\u504f\u79fb\u4e3a 0x18fffffe00 <span class=\"token punctuation\">(<\/span>gpt<span class=\"token punctuation\">)<\/span>&#xff1a;45 <span class=\"token number\">46<\/span> <span class=\"token number\">49<\/span> <span class=\"token number\">20<\/span> <span class=\"token number\">50<\/span> <span class=\"token number\">41<\/span> <span class=\"token number\">52<\/span> <span class=\"token number\">54<\/span><br \/>\n\/dev\/sdb&#xff1a;2 \u4e2a\u5b57\u8282\u5df2\u64e6\u9664&#xff0c;\u4f4d\u7f6e\u504f\u79fb\u4e3a 0x000001fe <span class=\"token punctuation\">(<\/span>PMBR<span class=\"token punctuation\">)<\/span>&#xff1a;55 aa<br \/>\n\/dev\/sdb: calling ioclt to re-read partition table: \u6210\u529f<\/p>\n<p><span class=\"token comment\"># \u7981\u6b62\u4f7f\u7528 -f \u5f3a\u5236\u6e05\u9664\u5206\u533a\u8868<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~ 09:46:42<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># wipefs -fa \/dev\/sdb<\/span><\/p>\n<h3>parted \u5de5\u5177<\/h3>\n<p>parted \u5de5\u5177\u65e2\u53ef\u4ee5\u7ba1\u7406\u91c7\u7528MBR\u5206\u533a\u65b9\u6848\u7684\u78c1\u76d8&#xff0c;\u53c8\u53ef\u4ee5\u7ba1\u7406\u91c7\u7528GPT\u5206\u533a\u65b9\u6848\u7684\u78c1\u76d8\u3002<\/p>\n<p>parted \u547d\u4ee4\u540c\u65f6\u652f\u6301\u4ea4\u4e92\u5f0f\u64cd\u4f5c\u548c\u975e\u4ea4\u4e92\u5f0f\u64cd\u4f5c&#xff08;\u7f16\u5199\u811a\u672c&#xff09;\u3002<\/p>\n<p>\u6211\u4eec\u5148\u6765\u770b\u770b\u4ea4\u4e92\u5f0f\u64cd\u4f5c\u3002<\/p>\n<p>\u64cd\u4f5c\u6d41\u7a0b&#xff1a;<\/p>\n<li>\u67e5\u770b\u5206\u533a\u8868\u3002\u5982\u679c\u662f\u672a\u521d\u59cb\u5316\u786c\u76d8&#xff0c;\u521b\u5efa\u5206\u533a\u3002<\/li>\n<li>\u8bbe\u7f6e\u5355\u4f4d&#xff08;MiB&#xff09;<\/li>\n<li>\u521b\u5efa\u5206\u533a<\/li>\n<li>\u8c03\u6574\u5206\u533a\u5927\u5c0f<\/li>\n<li>\u8c03\u6574\u5206\u533a\u7c7b\u578b<\/li>\n<li>\u5220\u9664\u5206\u533a<\/li>\n<h4>\u67e5\u770b\u5206\u533a\u8868<\/h4>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~ <span class=\"token number\">10<\/span>:39:13<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># parted \/dev\/sdb<\/span><br \/>\nGNU Parted <span class=\"token number\">3.1<\/span><br \/>\n\u4f7f\u7528 \/dev\/sdb<br \/>\nWelcome to GNU Parted<span class=\"token operator\">!<\/span> Type <span class=\"token string\">&#039;help&#039;<\/span> to view a list of commands.<br \/>\n<span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token comment\"># \u67e5\u770b\u5206\u533a\u8868&#xff0c;\u8f93\u5165 print<\/span><br \/>\n<span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span> print<br \/>\nModel: VMware, VMware Virtual S <span class=\"token punctuation\">(<\/span>scsi<span class=\"token punctuation\">)<\/span><br \/>\nDisk \/dev\/sdb: 107GB<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: 512B\/512B<br \/>\nPartition Table: msdos<br \/>\nDisk Flags: <\/p>\n<p>Number  Start   End     Size    Type     File system  \u6807\u5fd7<\/p>\n<h4>\u8bbe\u7f6e\u5355\u4f4d<\/h4>\n<p>parted\u5de5\u5177\u9ed8\u8ba4\u5355\u4f4d\u662fMB&#xff08;10<sup>3<\/sup>K&#xff09;&#xff0c;\u8bbe\u7f6e\u4e3aMiB&#xff08;2<sup>10<\/sup>KiB&#xff09;<\/p>\n<p><span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span> unit MiB<\/p>\n<h4>\u7ba1\u7406 MBR \u78c1\u76d8<\/h4>\n<h5>\u8bbe\u7f6e\u78c1\u76d8\u5206\u533a\u7ba1\u7406\u65b9\u6848<\/h5>\n<p><span class=\"token comment\"># \u8f93\u5165mklabel\u6216mktable\u8bbe\u7f6e\u78c1\u76d8\u5206\u533a\u7ba1\u7406\u65b9\u6848<\/span><br \/>\n<span class=\"token comment\"># \u8bbe\u7f6e\u5206\u533a\u65b9\u6848\u4e3amsdos&#xff0c;\u4e5f\u5c31\u662fMBR&#xff0c;\u8f93\u5165mklabel msdos<\/span><br \/>\n<span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span> <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>mklabel msdos<span class=\"token variable\">&#096;<\/span><\/span><br \/>\nWarning: The existing disk label on \/dev\/sdb will be destroyed and all data on this disk will<br \/>\nbe lost. Do you want to continue?<br \/>\n<span class=\"token comment\"># \u786e\u8ba4\u66f4\u6539&#xff0c;\u8f93\u5165y<\/span><br \/>\nYes\/No? <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>y<span class=\"token variable\">&#096;<\/span><\/span><br \/>\n<span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span> print<br \/>\nModel: VMware, VMware Virtual S <span class=\"token punctuation\">(<\/span>scsi<span class=\"token punctuation\">)<\/span><br \/>\nDisk \/dev\/sdb: <span class=\"token number\">21<\/span>.5GB<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: 512B\/512B<br \/>\n<span class=\"token comment\"># \u5206\u533a\u8868\u5df2\u6539\u6210msdos<\/span><br \/>\nPartition Table: <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>msdos<span class=\"token variable\">&#096;<\/span><\/span><br \/>\nDisk Flags: <\/p>\n<p>Number  Start  End  Size  Type  File system  Flags<\/p>\n<p>**\u6ce8\u610f&#xff1a;**parted\u547d\u4ee4\u6240\u505a\u66f4\u6539\u7acb\u523b\u751f\u6548\u3002<\/p>\n<h5>\u521b\u5efa\u5206\u533a<\/h5>\n<p><span class=\"token comment\"># \u521b\u5efa\u5206\u533a&#xff0c;\u8f93\u5165 mkpart<\/span><br \/>\n<span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span> <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>mkpart<span class=\"token variable\">&#096;<\/span><\/span><\/p>\n<p><span class=\"token comment\"># \u8bbe\u7f6e\u5206\u533a\u7c7b\u578b&#xff0c;\u8f93\u5165 primary<\/span><br \/>\nPartition type?  primary\/extended? <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>primary<span class=\"token variable\">&#096;<\/span><\/span>                     <\/p>\n<p><span class=\"token comment\"># \u8bbe\u7f6e\u5206\u533a\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b&#xff0c;\u8f93\u5165 xfs&#xff0c;\u5b9e\u9645\u4e0d\u751f\u6548&#xff0c;\u683c\u5f0f\u5316\u6587\u4ef6\u7cfb\u7edf\u4ecd\u9700\u624b\u52a8\u64cd\u4f5c<\/span><br \/>\nFile system type?  <span class=\"token punctuation\">[<\/span>ext2<span class=\"token punctuation\">]<\/span>? <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>xfs<span class=\"token variable\">&#096;<\/span><\/span>                                 <\/p>\n<p><span class=\"token comment\"># \u8bbe\u7f6e\u5206\u533a\u8d77\u59cb\u4f4d\u7f6e&#xff0c;\u8f93\u5165 1<\/span><br \/>\nStart? <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span><span class=\"token number\">1<\/span><span class=\"token variable\">&#096;<\/span><\/span> <\/p>\n<p><span class=\"token comment\"># \u8bbe\u7f6e\u5206\u533a\u7ed3\u675f\u4f4d\u7f6e&#xff0c;\u8f93\u5165 2049<\/span><br \/>\nEnd? <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span><span class=\"token number\">2049<\/span><span class=\"token variable\">&#096;<\/span><\/span><br \/>\n<span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span> <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>print<span class=\"token variable\">&#096;<\/span><\/span><br \/>\nModel: VMware, VMware Virtual S <span class=\"token punctuation\">(<\/span>scsi<span class=\"token punctuation\">)<\/span><br \/>\nDisk \/dev\/sdb: 2049MiB<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: 512B\/512B<br \/>\nPartition Table: msdos<br \/>\nDisk Flags: <\/p>\n<p>Number  Start    End      Size     Type     File system  Flags<br \/>\n <span class=\"token number\">1<\/span>      <span class=\"token number\">1<\/span>.00MiB  2049MiB  2048MiB  primary  ext4<\/p>\n<h5>\u6269\u5c55\u5206\u533a\u5bb9\u91cf<\/h5>\n<p><span class=\"token comment\"># 1 \u4ee3\u8868\u5206\u533a\u53f7&#xff0c;4097\u4ee3\u8868\u5206\u533a\u7ed3\u675f\u4f4d\u7f6e<\/span><br \/>\n<span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span> resizepart <span class=\"token number\">1<\/span> <span class=\"token number\">4097<\/span><br \/>\n<span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span> print<br \/>\nModel: VMware, VMware Virtual S <span class=\"token punctuation\">(<\/span>scsi<span class=\"token punctuation\">)<\/span><br \/>\nDisk \/dev\/sdb: 20480MiB<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: 512B\/512B<br \/>\nPartition Table: msdos<br \/>\nDisk Flags: <\/p>\n<p>Number  Start    End      Size     Type     File system  Flags<br \/>\n <span class=\"token number\">1<\/span>      <span class=\"token number\">1<\/span>.00MiB  4097MiB  4096MiB  primary  xfs<\/p>\n<h5>\u5220\u9664\u5206\u533a<\/h5>\n<p><span class=\"token comment\"># 1 \u4ee3\u8868\u5206\u533a\u53f7<\/span><br \/>\n<span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span> <span class=\"token function\">rm<\/span> <span class=\"token number\">1<\/span><br \/>\n<span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span> print<br \/>\nModel: VMware, VMware Virtual S <span class=\"token punctuation\">(<\/span>scsi<span class=\"token punctuation\">)<\/span><br \/>\nDisk \/dev\/sdb: 20480MiB<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: 512B\/512B<br \/>\nPartition Table: msdos<br \/>\nDisk Flags: <\/p>\n<p>Number  Start  End  Size  Type  File system  Flags<\/p>\n<h5>\u514d\u4ea4\u4e92\u64cd\u4f5c<\/h5>\n<p><span class=\"token comment\"># \u8bbe\u7f6e\u78c1\u76d8\u5206\u533a\u7ba1\u7406\u65b9\u6848<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server ~ <span class=\"token number\">10<\/span>:47:27<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># parted \/dev\/sdb mklabel msdos<\/span><br \/>\nWarning: The existing disk label on \/dev\/sdb will be destroyed and all data on this<br \/>\ndisk will be lost. Do you want to continue?<br \/>\nYes\/No? y<br \/>\nInformation: You may need to update \/etc\/fstab.<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u5206\u533a<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server ~ <span class=\"token number\">10<\/span>:47:37<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># parted \/dev\/sdb unit MiB print<\/span><br \/>\nModel: VMware, VMware Virtual S <span class=\"token punctuation\">(<\/span>scsi<span class=\"token punctuation\">)<\/span><br \/>\nDisk \/dev\/sdb: 20480MiB<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: 512B\/512B<br \/>\nPartition Table: msdos<br \/>\nDisk Flags: <\/p>\n<p>Number  Start  End  Size  Type  File system  Flags<\/p>\n<p><span class=\"token comment\"># \u521b\u5efa\u5206\u533a<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server ~ <span class=\"token number\">10<\/span>:47:46<span class=\"token punctuation\">]<\/span><span class=\"token comment\">#  parted \/dev\/sdb unit MiB mkpart primary 1 2049<\/span><br \/>\nInformation: You may need to update \/etc\/fstab.<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~ <span class=\"token number\">10<\/span>:47:55<span class=\"token punctuation\">]<\/span><span class=\"token comment\">#  parted \/dev\/sdb unit MiB print<\/span><br \/>\nModel: VMware, VMware Virtual S <span class=\"token punctuation\">(<\/span>scsi<span class=\"token punctuation\">)<\/span><br \/>\nDisk \/dev\/sdb: 20480MiB<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: 512B\/512B<br \/>\nPartition Table: msdos<br \/>\nDisk Flags: <\/p>\n<p>Number  Start    End      Size     Type     File system  Flags<br \/>\n <span class=\"token number\">1<\/span>      <span class=\"token number\">1<\/span>.00MiB  2049MiB  2048MiB  primary  xfs<\/p>\n<p><span class=\"token comment\"># \u6269\u5c55\u5206\u533a<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server ~ <span class=\"token number\">10<\/span>:48:14<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># parted \/dev\/sdb unit MiB resizepart 1 5121<\/span><br \/>\nInformation: You may need to update \/etc\/fstab.<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~ <span class=\"token number\">10<\/span>:48:23<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># parted \/dev\/sdb unit MiB print<\/span><br \/>\nModel: VMware, VMware Virtual S <span class=\"token punctuation\">(<\/span>scsi<span class=\"token punctuation\">)<\/span><br \/>\nDisk \/dev\/sdb: 20480MiB<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: 512B\/512B<br \/>\nPartition Table: msdos<br \/>\nDisk Flags: <\/p>\n<p>Number  Start    End      Size     Type     File system  Flags<br \/>\n <span class=\"token number\">1<\/span>      <span class=\"token number\">1<\/span>.00MiB  5121MiB  5120MiB  primary  xfs<\/p>\n<p><span class=\"token comment\"># \u5220\u9664\u5206\u533a<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server ~ <span class=\"token number\">10<\/span>:48:44<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># parted \/dev\/sdb rm 1<\/span><br \/>\nInformation: You may need to update \/etc\/fstab.<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~ <span class=\"token number\">10<\/span>:48:59<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># parted \/dev\/sdb unit MiB print                              <\/span><br \/>\nModel: VMware, VMware Virtual S <span class=\"token punctuation\">(<\/span>scsi<span class=\"token punctuation\">)<\/span><br \/>\nDisk \/dev\/sdb: 20480MiB<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: 512B\/512B<br \/>\nPartition Table: msdos<br \/>\nDisk Flags: <\/p>\n<p>Number  Start  End  Size  Type  File system  Flags<\/p>\n<h4>\u7ba1\u7406 GPT \u78c1\u76d8<\/h4>\n<p>\u7ba1\u7406GPT\u78c1\u76d8\u57fa\u672c\u4e0e\u7ba1\u7406MBR\u78c1\u76d8\u4e00\u81f4&#xff0c;\u9664\u4e86\u521b\u5efa\u5206\u533a\u3002<\/p>\n<h5>\u8bbe\u7f6e\u78c1\u76d8\u5206\u533a\u7ba1\u7406\u65b9\u6848<\/h5>\n<p><span class=\"token comment\"># \u8bbe\u7f6e\u5206\u533a\u65b9\u6848\u4e3agpt&#xff0c;\u8f93\u5165mklabel gpt<\/span><br \/>\n<span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span> <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>mklabel gpt<span class=\"token variable\">&#096;<\/span><\/span><br \/>\nWarning: The existing disk label on \/dev\/sdb will be destroyed and all data on this disk will<br \/>\nbe lost. Do you want to continue?<br \/>\nYes\/No? y<br \/>\n<span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span> print<br \/>\nModel: VMware, VMware Virtual S <span class=\"token punctuation\">(<\/span>scsi<span class=\"token punctuation\">)<\/span><br \/>\nDisk \/dev\/sdb: <span class=\"token number\">21<\/span>.5GB<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: 512B\/512B<br \/>\n<span class=\"token comment\"># \u5206\u533a\u8868\u5df2\u6539\u6210gpt<\/span><br \/>\nPartition Table: <span class=\"token variable\"><span class=\"token variable\">&#096;<\/span>gpt<span class=\"token variable\">&#096;<\/span><\/span><br \/>\nDisk Flags: <\/p>\n<p>Number  Start  End  Size  File system  Name  Flags<\/p>\n<h5>\u521b\u5efa\u5206\u533a<\/h5>\n<p><span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span> unit MiB<br \/>\n<span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span> mkpart                                                   <\/p>\n<p><span class=\"token comment\"># \u8bbe\u7f6e\u5206\u533a\u540d<\/span><br \/>\nPartition name?  <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span>? data01<br \/>\nFile system type?  <span class=\"token punctuation\">[<\/span>ext2<span class=\"token punctuation\">]<\/span>? xfs<br \/>\nStart? <span class=\"token number\">1<\/span><br \/>\nEnd? <span class=\"token number\">2049<\/span><br \/>\n<span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span> print<br \/>\nModel: VMware, VMware Virtual S <span class=\"token punctuation\">(<\/span>scsi<span class=\"token punctuation\">)<\/span><br \/>\nDisk \/dev\/sdb: 20480MiB<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: 512B\/512B<br \/>\nPartition Table: gpt<br \/>\nDisk Flags: <\/p>\n<p>Number  Start    End      Size     File system  Name    Flags<br \/>\n <span class=\"token number\">1<\/span>      <span class=\"token number\">1<\/span>.00MiB  2049MiB  2048MiB  xfs          data01<\/p>\n<h5>\u6269\u5c55\u5206\u533a<\/h5>\n<p><span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span> resizepart <span class=\"token number\">1<\/span> <span class=\"token number\">5121<\/span><br \/>\n<span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span> print<br \/>\nModel: VMware, VMware Virtual S <span class=\"token punctuation\">(<\/span>scsi<span class=\"token punctuation\">)<\/span><br \/>\nDisk \/dev\/sdb: 20480MiB<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: 512B\/512B<br \/>\nPartition Table: gpt<br \/>\nDisk Flags: <\/p>\n<p>Number  Start    End      Size     File system  Name    Flags<br \/>\n <span class=\"token number\">1<\/span>      <span class=\"token number\">1<\/span>.00MiB  5121MiB  5120MiB  xfs          data01<\/p>\n<h5>\u5220\u9664\u5206\u533a<\/h5>\n<p><span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span> <span class=\"token function\">rm<\/span> <span class=\"token number\">1<\/span><br \/>\n<span class=\"token punctuation\">(<\/span>parted<span class=\"token punctuation\">)<\/span> print<br \/>\nModel: VMware, VMware Virtual S <span class=\"token punctuation\">(<\/span>scsi<span class=\"token punctuation\">)<\/span><br \/>\nDisk \/dev\/sdb: 20480MiB<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: 512B\/512B<br \/>\nPartition Table: gpt<br \/>\nDisk Flags: <\/p>\n<p>Number  Start  End  Size  File system  Name  Flags<\/p>\n<h5>\u514d\u4ea4\u4e92\u64cd\u4f5c<\/h5>\n<p><span class=\"token comment\"># \u8bbe\u7f6e\u78c1\u76d8\u5206\u533a\u7ba1\u7406\u65b9\u6848<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server ~ <span class=\"token number\">16<\/span>:27:28<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># parted \/dev\/sdb mklabel gpt<\/span><br \/>\nWarning: The existing disk label on \/dev\/sdb will be destroyed and all data on this<br \/>\ndisk will be lost. Do you want to continue?<br \/>\nYes\/No? y<br \/>\nInformation: You may need to update \/etc\/fstab.<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u5206\u533a<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~ <span class=\"token number\">16<\/span>:27:36<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># parted \/dev\/sdb print<\/span><br \/>\nModel: VMware, VMware Virtual S <span class=\"token punctuation\">(<\/span>scsi<span class=\"token punctuation\">)<\/span><br \/>\nDisk \/dev\/sdb: <span class=\"token number\">21<\/span>.5GB<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: 512B\/512B<br \/>\nPartition Table: gpt<br \/>\nDisk Flags: <\/p>\n<p>Number  Start  End  Size  File system  Name  Flags<\/p>\n<p><span class=\"token comment\"># \u521b\u5efa\u5206\u533a<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~ <span class=\"token number\">16<\/span>:27:47<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># parted \/dev\/sdb unit MiB mkpart data01 xfs 1 2049<\/span><br \/>\nInformation: You may need to update \/etc\/fstab.<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;centos7 ~ <span class=\"token number\">16<\/span>:27:52<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># parted \/dev\/sdb unit MiB print                         <\/span><br \/>\nModel: VMware, VMware Virtual S <span class=\"token punctuation\">(<\/span>scsi<span class=\"token punctuation\">)<\/span><br \/>\nDisk \/dev\/sdb: 20480MiB<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: 512B\/512B<br \/>\nPartition Table: gpt<br \/>\nDisk Flags: <\/p>\n<p>Number  Start    End      Size     File system  Name    Flags<br \/>\n <span class=\"token number\">1<\/span>      <span class=\"token number\">1<\/span>.00MiB  2049MiB  2048MiB  xfs          data01<\/p>\n<p><span class=\"token comment\"># \u6269\u5c55\u5206\u533a<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~ <span class=\"token number\">16<\/span>:28:04<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># parted \/dev\/sdb unit MiB resizepart 1 5121<\/span><br \/>\nInformation: You may need to update \/etc\/fstab.<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;centos7 ~ <span class=\"token number\">16<\/span>:28:22<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># parted \/dev\/sdb unit MiB print<\/span><br \/>\nModel: VMware, VMware Virtual S <span class=\"token punctuation\">(<\/span>scsi<span class=\"token punctuation\">)<\/span><br \/>\nDisk \/dev\/sdb: 20480MiB<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: 512B\/512B<br \/>\nPartition Table: gpt<br \/>\nDisk Flags: <\/p>\n<p>Number  Start    End      Size     File system  Name    Flags<br \/>\n <span class=\"token number\">1<\/span>      <span class=\"token number\">1<\/span>.00MiB  5121MiB  5120MiB  xfs          data01<\/p>\n<p><span class=\"token comment\"># \u5220\u9664\u5206\u533a<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~ <span class=\"token number\">16<\/span>:28:29<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># parted \/dev\/sdb rm 1<\/span><br \/>\nInformation: You may need to update \/etc\/fstab.<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;centos7 ~ <span class=\"token number\">16<\/span>:28:43<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># parted \/dev\/sdb unit MiB print                         <\/span><br \/>\nModel: VMware, VMware Virtual S <span class=\"token punctuation\">(<\/span>scsi<span class=\"token punctuation\">)<\/span><br \/>\nDisk \/dev\/sdb: 20480MiB<br \/>\nSector size <span class=\"token punctuation\">(<\/span>logical\/physical<span class=\"token punctuation\">)<\/span>: 512B\/512B<br \/>\nPartition Table: gpt<br \/>\nDisk Flags: <\/p>\n<p>Number  Start  End  Size  File system  Name  Flags<\/p>\n<h3>\u6587\u4ef6\u7cfb\u7edf\u6301\u4e45\u5316\u6302\u8f7d<\/h3>\n<h4>\u6301\u4e45\u5316\u6302\u8f7d<\/h4>\n<p>\u5f53\u670d\u52a1\u5668\u91cd\u542f\u65f6&#xff0c;\u7cfb\u7edf\u4e0d\u4f1a\u518d\u6b21\u5c06\u6587\u4ef6\u7cfb\u7edf\u81ea\u52a8\u6302\u8f7d\u5230\u76ee\u5f55\u6811\u4e0a&#xff0c;\u7528\u6237\u65e0\u6cd5\u8bbf\u95ee\u3002\u4e3a\u4e86\u786e\u4fdd\u7cfb\u7edf\u5728\u542f\u52a8\u65f6\u81ea\u52a8\u6302\u8f7d\u6587\u4ef6\u7cfb\u7edf&#xff0c; \u9700\u8981\u5728 \/etc\/fstab\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u6761\u76ee\u3002<\/p>\n<p>\/etc\/fstab \u662f\u4ee5\u7a7a\u683c\u5206\u9694\u7684\u6587\u4ef6&#xff0c;\u6bcf\u884c\u5177\u6709\u516d\u4e2a\u5b57\u6bb5\u3002<\/p>\n<ul>\n<li>**\u7b2c\u4e00\u4e2a\u5b57\u6bb5\u6307\u5b9a\u8bbe\u5907\u3002**\u53ef\u4ee5\u4f7f\u7528UUID\u6216device\u6765\u6307\u5b9a\u8bbe\u5907\u3002<\/li>\n<li>**\u7b2c\u4e8c\u4e2a\u5b57\u6bb5\u662f\u76ee\u5f55\u6302\u8f7d\u70b9\u3002**\u901a\u8fc7\u5b83\u53ef\u4ee5\u8bbf\u95ee\u76ee\u5f55\u7ed3\u6784\u4e2d\u7684\u5757\u8bbe\u5907\u3002\u6302\u8f7d\u70b9\u5fc5\u987b\u5b58\u5728&#xff1b;\u5982\u679c\u4e0d\u5b58\u5728&#xff0c;\u8bf7\u4f7f\u7528mkdir\u547d\u4ee4\u8fdb\u884c\u521b\u5efa\u3002<\/li>\n<li>\u7b2c\u4e09\u4e2a\u5b57\u6bb5\u5305\u542b\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b&#xff0c;\u5982xfs\u6216ext4 \u3002<\/li>\n<li>\u7b2c\u56db\u4e2a\u5b57\u6bb5\u662f\u6302\u8f7d\u9009\u9879&#xff0c;\u4ee5\u9017\u53f7\u5206\u9694\u7684\u3002 defaults\u662f\u4e00\u7ec4\u5e38\u7528\u9009\u9879\u3002\u8be6\u7ec6\u4fe1\u606f\u53c2\u8003mount(8) \u3002<\/li>\n<li>\u7b2c\u4e94\u4e2a\u5b57\u6bb5\u6307\u5b9adump\u547d\u4ee4\u662f\u5426\u5907\u4efd\u8bbe\u5907\u3002<\/li>\n<li>\u7b2c\u516d\u4e2a\u5b57\u6bb5\u6307\u5b9afsck\u987a\u5e8f\u5b57\u6bb5&#xff0c;\u51b3\u5b9a\u4e86\u5728\u7cfb\u7edf\u542f\u52a8\u540b\u662f\u5426\u5e94\u8fd0\u884cfsck\u547d\u4ee4&#xff0c;\u4ee5\u9a8c\u8bc1\u6587\u4ef6\u7cfb\u7edf\u662f\u5426\u5e72\u51c0\u3002 \u8be5\u5b57\u6bb5\u4e2d\u7684\u503c\u6307\u793a\u4e86 fsck\u7684\u8fd0\u884c\u987a\u5e8f\u3002 \u5bf9\u4e8eXFS\u6587\u4ef6\u7cfb\u7edf&#xff0c; \u8bf7\u5c06\u8be5\u5b57\u6bb5\u8bbe\u4e3a0 &#xff0c;\u56e0\u4e3aXFS\u5e76\u4e0d\u4f7f\u7528fsck\u6765\u68c0\u67e5\u81ea\u5df1\u7684\u6587\u4ef6\u7cfb\u7edf\u72b6\u6001\u3002 \u5bf9\u4e8eext4 \u6587\u4ef6\u7cfb\u7edf&#xff0c;\u5982\u679c\u662f\u6839\u6587\u4ef6\u7cfb\u7edf&#xff0c; \u8bf7\u5c06\u8be5\u5b57\u6bb5\u8bbe \u4e3a 1 ; \u5982\u679c\u662f\u5176\u4ed6ext4 \u6587\u4ef6\u7cfb\u7edf&#xff0c; \u5219\u5c06\u8be5\u5b57\u6bb5\u8bbe\u4e3a2\u3002 \u8fd9\u6837&#xff0c; fsck\u5c31\u4f1a\u5148\u5904\u7406\u6839\u6587\u4ef6\u7cfb\u7edf&#xff0c;\u7136\u540e\u540c\u6b65\u68c0\u67e5\u4e0d\u540c\u78c1\u76d8\u4e0a\u7684\u6587\u4ef6\u7cfb\u7edf&#xff0c;\u5e76\u6309\u987a\u5e8f\u68c0\u67e5\u540c\u4e00\u78c1\u76d8\u4e0a\u7684\u6587\u4ef6\u7cfb\u7edf\u3002<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span>root&#064;server ~ <span class=\"token number\">11<\/span>:12:17<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># blkid \/dev\/sda1<\/span><br \/>\n\/dev\/sda1: <span class=\"token assign-left variable\">UUID<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;c56f943b-a4e0-4deb-853f-0d0ccfe7182a&#034;<\/span> <span class=\"token assign-left variable\">TYPE<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;xfs&#034;<\/span><\/p>\n<p><span class=\"token punctuation\">[<\/span>ljw&#064;server ~ <span class=\"token number\">11<\/span>:18:44<span class=\"token punctuation\">]<\/span>$ <span class=\"token function\">vim<\/span> \/etc\/fstab<br \/>\n<span class=\"token comment\"># \u6700\u540e\u4e00\u884c\u589e\u52a0\u4e00\u4e2a\u6761\u76ee<\/span><br \/>\n<span class=\"token assign-left variable\">UUID<\/span><span class=\"token operator\">&#061;<\/span>e17c3e16-aec1-4600-aae1-c0429e8c4a18 \/data xfs     defaults        <span class=\"token number\">0<\/span> <span class=\"token number\">0<\/span><\/p>\n<p><span class=\"token comment\"># \u6302\u8f7d<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server ~ <span class=\"token number\">11<\/span>:15:34<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># mount \/data<\/span><\/p>\n<p><span class=\"token comment\"># \u9a8c\u8bc1<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server ~ <span class=\"token number\">11<\/span>:15:53<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># df -h \/data<\/span><br \/>\n\u6587\u4ef6\u7cfb\u7edf        \u5bb9\u91cf  \u5df2\u7528  \u53ef\u7528 \u5df2\u7528% \u6302\u8f7d\u70b9<br \/>\n\/dev\/sdb1        20G   33M   20G    <span class=\"token number\">1<\/span>% \/data<\/p>\n<p><span class=\"token comment\"># \u91cd\u542f\u7cfb\u7edf\u9a8c\u8bc1<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server ~ <span class=\"token number\">11<\/span>:16:01<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># reboot<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server ~ <span class=\"token number\">11<\/span>:16:44<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># df -h \/data<\/span><br \/>\n\u6587\u4ef6\u7cfb\u7edf        \u5bb9\u91cf  \u5df2\u7528  \u53ef\u7528 \u5df2\u7528% \u6302\u8f7d\u70b9<br \/>\n\/dev\/sdb1        20G   33M   20G    <span class=\"token number\">1<\/span>% \/data<\/p>\n<h4>\u53d6\u6d88\u6301\u4e45\u5316\u6302\u8f7d<\/h4>\n<p>\u5220\u9664\/etc\/fstab\u4e2d\u5bf9\u5e94\u6761\u76ee\u5373\u53ef\u3002<\/p>\n<h3>\u7efc\u5408\u6848\u4f8b&#xff1a;\u6587\u4ef6\u7cfb\u7edf\u7a7a\u95f4\u4e0d\u8db3<\/h3>\n<h4>\u60c5\u51b51&#xff1a;\u5927\u91cf\u7684\u5927\u6587\u4ef6\u5360\u7528\u7a7a\u95f4<\/h4>\n<p>\u51c6\u5907\u73af\u5883<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># parted \/dev\/sdb mklabel gpt<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># parted \/dev\/sdb unit MiB mkpart data01 xfs 1 2049<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># mkfs.xfs -f \/dev\/sdb1<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># mkdir \/myapp-1<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># mount \/dev\/sdb1 \/myapp-1<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># cp -r \/etc\/ \/myapp-1\/<\/span><\/p>\n<p>\u539f\u56e0&#xff1a;\u5927\u6587\u4ef6\u5360\u7528\u5927\u91cf\u7a7a\u95f4\u3002<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5&#xff1a;\u627e\u5230\u6587\u4ef6\u540e\u5220\u9664\u3002<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># df -h \/myapp-1\/<\/span><br \/>\n\u6587\u4ef6\u7cfb\u7edf        \u5bb9\u91cf  \u5df2\u7528  \u53ef\u7528 \u5df2\u7528% \u6302\u8f7d\u70b9<br \/>\n\/dev\/sdb1       <span class=\"token number\">2<\/span>.0G  <span class=\"token number\">2<\/span>.0G  436K  <span class=\"token number\">100<\/span>% \/myapp-1<\/p>\n<p><span class=\"token comment\"># \u65b9\u6cd51&#xff1a;find \u67e5\u627e<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># find \/myapp-1\/ -size &#043;100M<\/span><br \/>\n\/myapp-1\/etc\/bigfile<\/p>\n<p><span class=\"token comment\"># \u65b9\u6cd52&#xff1a;du \u67e5\u627e<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># du -s \/myapp-1\/* |sort -n |tail -2<\/span><br \/>\n<span class=\"token number\">2051628<\/span> \/myapp-1\/etc<br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># du -s \/myapp-1\/etc\/* |sort -n |tail -2<\/span><br \/>\n<span class=\"token number\">23220<\/span>   \/myapp-1\/etc\/selinux<br \/>\n<span class=\"token number\">2008512<\/span> \/myapp-1\/etc\/bigfile<br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># du -s \/myapp-1\/etc\/bigfile\/* |sort -n |tail -2<\/span><br \/>\ndu: \u65e0\u6cd5\u8bbf\u95ee<span class=\"token string\">&#034;\/myapp-1\/etc\/bigfile\/*&#034;<\/span><span class=\"token builtin class-name\">:<\/span> \u4e0d\u662f\u76ee\u5f55<\/p>\n<p><span class=\"token comment\"># \u5220\u9664\u5927\u6587\u4ef6<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># rm -f \/myapp-1\/etc\/bigfile<\/span><\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;centos7 ~ <span class=\"token punctuation\">]<\/span><span class=\"token comment\"># df -h \/myapp-1\/<\/span><br \/>\n\u6587\u4ef6\u7cfb\u7edf        \u5bb9\u91cf  \u5df2\u7528  \u53ef\u7528 \u5df2\u7528% \u6302\u8f7d\u70b9<br \/>\n\/dev\/sdb1       <span class=\"token number\">2<\/span>.0G   77M  <span class=\"token number\">2<\/span>.0G    <span class=\"token number\">4<\/span>% \/myapp-1<\/p>\n<h4>\u60c5\u51b52&#xff1a;\u5220\u9664\u6587\u4ef6\u540e&#xff0c;\u7a7a\u95f4\u6ca1\u6709\u91ca\u653e<\/h4>\n<p>\u51c6\u5907\u73af\u5883<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># dd if&#061;\/dev\/zero of&#061;\/myapp-1\/etc\/bigfile bs&#061;1M count&#061;2000<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># tail -f \/myapp-1\/etc\/bigfile &amp;<\/span><\/p>\n<p><span class=\"token comment\"># \u5220\u9664\u6587\u4ef6\u540e&#xff0c;\u7a7a\u95f4\u6ca1\u6709\u91ca\u653e<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># rm -f \/myapp-1\/etc\/bigfile<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># df -h \/myapp-1\/<\/span><br \/>\n\u6587\u4ef6\u7cfb\u7edf        \u5bb9\u91cf  \u5df2\u7528  \u53ef\u7528 \u5df2\u7528% \u6302\u8f7d\u70b9<br \/>\n\/dev\/sdb1       <span class=\"token number\">2<\/span>.0G  <span class=\"token number\">2<\/span>.0G  772K  <span class=\"token number\">100<\/span>% \/myapp-1<\/p>\n<p>\u539f\u56e0&#xff1a;\u88ab\u5220\u9664\u7684\u6587\u4ef6&#xff0c;\u4ecd\u7136\u6709\u7a0b\u5e8f\u5728\u4f7f\u7528\u3002<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5&#xff1a;\u627e\u5230\u50cf\u4e00\u4e2a\u7684\u7a0b\u5e8f\u5e76&#xff0c;\u7ec8\u6b62\u7a0b\u5e8f\u3002<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># lsof |grep delete |grep \/myapp-1<\/span><br \/>\n<span class=\"token function\">tail<\/span>      <span class=\"token number\">1654<\/span>                   root    3r      REG               <span class=\"token number\">8,17<\/span> <span class=\"token number\">2061565952<\/span>        <span class=\"token number\">444<\/span> \/myapp-1\/etc\/bigfile <span class=\"token punctuation\">(<\/span>deleted<span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># kill 1654<\/span><\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># df -h \/myapp-1\/<\/span><br \/>\n\u6587\u4ef6\u7cfb\u7edf        \u5bb9\u91cf  \u5df2\u7528  \u53ef\u7528 \u5df2\u7528% \u6302\u8f7d\u70b9<br \/>\n\/dev\/sdb1       <span class=\"token number\">2<\/span>.0G   72M  <span class=\"token number\">2<\/span>.0G    <span class=\"token number\">4<\/span>% \/myapp-1<\/p>\n<p>\u5efa\u8bae&#xff1a;\u6e05\u7406\u5927\u6587\u4ef6&#xff0c;\u5148\u4f7f\u7528\u91cd\u5b9a\u5411\u6e05\u7a7a\u6587\u4ef6\u5185\u5bb9&#xff0c;\u518d\u5220\u9664\u6587\u4ef6\u3002<\/p>\n<h4>\u60c5\u51b53&#xff1a;\u5927\u91cf\u7684\u5c0f\u6587\u4ef6\u5360\u7528\u7a7a\u95f4<\/h4>\n<p>\u51c6\u5907\u73af\u5883<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># parted \/dev\/sdb unit MiB mkpart data02 ext4 2049 3073<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># mkfs.ext4 \/dev\/sdb2<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># mkdir \/myapp-2<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># mount \/dev\/sdb2 \/myapp-2<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;server ~ <span class=\"token number\">15<\/span>:01:00<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># df -i \/myapp-2<\/span><br \/>\n\u6587\u4ef6\u7cfb\u7edf       Inode \u5df2\u7528<span class=\"token punctuation\">(<\/span>I<span class=\"token punctuation\">)<\/span> \u53ef\u7528<span class=\"token punctuation\">(<\/span>I<span class=\"token punctuation\">)<\/span> \u5df2\u7528<span class=\"token punctuation\">(<\/span>I<span class=\"token punctuation\">)<\/span>% \u6302\u8f7d\u70b9<br \/>\n\/dev\/sdb2      <span class=\"token number\">65536<\/span>      <span class=\"token number\">11<\/span>   <span class=\"token number\">65525<\/span>       <span class=\"token number\">1<\/span>% \/myapp-2<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># touch \/myapp-2\/file-{00001..65530}<\/span><br \/>\ntouch: \u65e0\u6cd5\u521b\u5efa<span class=\"token string\">&#034;\/myapp-2\/file-65526&#034;<\/span><span class=\"token builtin class-name\">:<\/span> \u8bbe\u5907\u4e0a\u6ca1\u6709\u7a7a\u95f4<br \/>\ntouch: \u65e0\u6cd5\u521b\u5efa<span class=\"token string\">&#034;\/myapp-2\/file-65527&#034;<\/span><span class=\"token builtin class-name\">:<\/span> \u8bbe\u5907\u4e0a\u6ca1\u6709\u7a7a\u95f4<br \/>\ntouch: \u65e0\u6cd5\u521b\u5efa<span class=\"token string\">&#034;\/myapp-2\/file-65528&#034;<\/span><span class=\"token builtin class-name\">:<\/span> \u8bbe\u5907\u4e0a\u6ca1\u6709\u7a7a\u95f4<br \/>\ntouch: \u65e0\u6cd5\u521b\u5efa<span class=\"token string\">&#034;\/myapp-2\/file-65529&#034;<\/span><span class=\"token builtin class-name\">:<\/span> \u8bbe\u5907\u4e0a\u6ca1\u6709\u7a7a\u95f4<br \/>\ntouch: \u65e0\u6cd5\u521b\u5efa<span class=\"token string\">&#034;\/myapp-2\/file-65530&#034;<\/span><span class=\"token builtin class-name\">:<\/span> \u8bbe\u5907\u4e0a\u6ca1\u6709\u7a7a\u95f4<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span> <span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-h<\/span> \/myapp-2\/<br \/>\nFilesystem      Size  Used Avail Use% Mounted on<br \/>\n\/dev\/sdb2       974M  <span class=\"token number\">1<\/span>.8M  905M   <span class=\"token number\">1<\/span>% \/myapp-2<\/p>\n<p>\u539f\u56e0&#xff1a;\u6587\u4ef6\u7cfb\u7edf\u4e2dinode\u4f7f\u7528\u5b8c\u4e86\u3002<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5&#xff1a;\u5220\u9664\u5927\u91cf\u7684\u5c0f\u6587\u4ef6\u6216\u8005\u5c06\u8fd9\u4e9b\u5c0f\u6587\u4ef6\u5907\u4efd\u5230\u5176\u4ed6\u5730\u65b9\u3002<\/p>\n<p><span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span> <span class=\"token function\">df<\/span> <span class=\"token parameter variable\">-hi<\/span> \/myapp-2<br \/>\nFilesystem     Inodes IUsed IFree IUse% Mounted on<br \/>\n\/dev\/sdb2         64K   64K     <span class=\"token number\">0<\/span>  <span class=\"token number\">100<\/span>% \/myapp-2<\/p>\n<p><span class=\"token comment\"># \u601d\u8def1&#xff1a;\u76f4\u63a5\u5c06\u8fd9\u4e9b\u5c0f\u6587\u4ef6\u79fb\u8d70\u6216\u5220\u9664<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># rm -f \/myapp-2\/file-0*<\/span><\/p>\n<p><span class=\"token comment\"># \u601d\u8def2&#xff1a;\u5408\u5e76\u5927\u91cf\u5c0f\u6587\u4ef6\u4e3a\u5355\u4e2a\u6587\u4ef6<\/span><br \/>\n<span class=\"token punctuation\">[<\/span>root&#064;centos7 ~<span class=\"token punctuation\">]<\/span><span class=\"token comment\"># cat \/myapp-2\/file-{00001..10000} &gt; file-00001<\/span><\/p>\n<h3>\u5982\u4f55\u5f7b\u5e95\u64e6\u9664\u786c\u76d8\u4e0a\u6570\u636e<\/h3>\n<li>\u903b\u8f91\u7834\u574f&#xff1a;\u75280\u586b\u5145\u6240\u6709\u6570\u636e&#xff0c;\u4f8b\u5982 dd if&#061;\/dev\/zero of&#061;\/dev\/sdb \u3002<\/li>\n<li>\u7269\u7406\u7834\u574f&#xff0c;\u4f8b\u5982\u6d88\u78c1\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u76ee\u5f55Linux \u786c\u76d8\u5206\u533a\u7ba1\u7406MBR \u5206\u533a\u65b9\u6848fdisk \u5de5\u5177fdisk \u547d\u4ee4\u8bed\u6cd5\u67e5\u770b\u5206\u533a\u521b\u5efa\u5206\u533a\u5220\u9664\u5206\u533aGPT \u5206\u533a\u65b9\u6848gdisk \u5de5\u5177gdisk\u547d\u4ee4\u8bed\u6cd5\u67e5\u770b\u5206\u533a\u8868\u521b\u5efa\u5206\u533a\u66f4\u6539\u5206\u533a\u540d\u79f0\u67e5\u770b\u5206\u533a\u8be6\u7ec6\u4fe1\u606f\u5220\u9664\u5206\u533awipefs \u5de5\u5177parted \u5de5\u5177\u67e5\u770b\u5206\u533a\u8868\u8bbe\u7f6e\u5355\u4f4d\u7ba1\u7406 MBR \u78c1\u76d8\u8bbe\u7f6e\u78c1\u76d8\u5206\u533a\u7ba1\u7406\u65b9\u6848\u521b\u5efa\u5206\u533a\u6269\u5c55\u5206\u533a\u5bb9\u91cf\u5220\u9664\u5206\u533a\u514d\u4ea4\u4e92\u64cd\u4f5c\u7ba1\u7406 GPT \u78c1\u76d8\u8bbe\u7f6e\u78c1\u76d8\u5206\u533a\u7ba1\u7406\u65b9\u6848\u521b\u5efa\u5206\u533a\u6269\u5c55\u5206\u533a\u5220\u9664\u5206\u533a\u514d\u4ea4\u4e92\u64cd\u4f5c\u6587\u4ef6\u7cfb\u7edf\u6301\u4e45\u5316\u6302\u8f7d\u6301\u4e45\u5316\u6302\u8f7d\u53d6\u6d88\u6301\u4e45\u5316\u6302\u8f7d\u7efc\u5408\u6848\u4f8b&#xff1a;<\/p>\n","protected":false},"author":2,"featured_media":89543,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,43,44],"topic":[],"class_list":["post-89546","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux \u786c\u76d8\u5206\u533a\u7ba1\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/89546.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux \u786c\u76d8\u5206\u533a\u7ba1\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u76ee\u5f55Linux \u786c\u76d8\u5206\u533a\u7ba1\u7406MBR \u5206\u533a\u65b9\u6848fdisk \u5de5\u5177fdisk \u547d\u4ee4\u8bed\u6cd5\u67e5\u770b\u5206\u533a\u521b\u5efa\u5206\u533a\u5220\u9664\u5206\u533aGPT \u5206\u533a\u65b9\u6848gdisk \u5de5\u5177gdisk\u547d\u4ee4\u8bed\u6cd5\u67e5\u770b\u5206\u533a\u8868\u521b\u5efa\u5206\u533a\u66f4\u6539\u5206\u533a\u540d\u79f0\u67e5\u770b\u5206\u533a\u8be6\u7ec6\u4fe1\u606f\u5220\u9664\u5206\u533awipefs \u5de5\u5177parted \u5de5\u5177\u67e5\u770b\u5206\u533a\u8868\u8bbe\u7f6e\u5355\u4f4d\u7ba1\u7406 MBR \u78c1\u76d8\u8bbe\u7f6e\u78c1\u76d8\u5206\u533a\u7ba1\u7406\u65b9\u6848\u521b\u5efa\u5206\u533a\u6269\u5c55\u5206\u533a\u5bb9\u91cf\u5220\u9664\u5206\u533a\u514d\u4ea4\u4e92\u64cd\u4f5c\u7ba1\u7406 GPT \u78c1\u76d8\u8bbe\u7f6e\u78c1\u76d8\u5206\u533a\u7ba1\u7406\u65b9\u6848\u521b\u5efa\u5206\u533a\u6269\u5c55\u5206\u533a\u5220\u9664\u5206\u533a\u514d\u4ea4\u4e92\u64cd\u4f5c\u6587\u4ef6\u7cfb\u7edf\u6301\u4e45\u5316\u6302\u8f7d\u6301\u4e45\u5316\u6302\u8f7d\u53d6\u6d88\u6301\u4e45\u5316\u6302\u8f7d\u7efc\u5408\u6848\u4f8b&#xff1a;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/89546.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-03T00:40:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260803004035-6a6fe383f3122.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89546.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/89546.html\",\"name\":\"Linux \u786c\u76d8\u5206\u533a\u7ba1\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-03T00:40:37+00:00\",\"dateModified\":\"2026-08-03T00:40:37+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/89546.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/89546.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89546.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux \u786c\u76d8\u5206\u533a\u7ba1\u7406\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux \u786c\u76d8\u5206\u533a\u7ba1\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/89546.html","og_locale":"zh_CN","og_type":"article","og_title":"Linux \u786c\u76d8\u5206\u533a\u7ba1\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u76ee\u5f55Linux \u786c\u76d8\u5206\u533a\u7ba1\u7406MBR \u5206\u533a\u65b9\u6848fdisk \u5de5\u5177fdisk \u547d\u4ee4\u8bed\u6cd5\u67e5\u770b\u5206\u533a\u521b\u5efa\u5206\u533a\u5220\u9664\u5206\u533aGPT \u5206\u533a\u65b9\u6848gdisk \u5de5\u5177gdisk\u547d\u4ee4\u8bed\u6cd5\u67e5\u770b\u5206\u533a\u8868\u521b\u5efa\u5206\u533a\u66f4\u6539\u5206\u533a\u540d\u79f0\u67e5\u770b\u5206\u533a\u8be6\u7ec6\u4fe1\u606f\u5220\u9664\u5206\u533awipefs \u5de5\u5177parted \u5de5\u5177\u67e5\u770b\u5206\u533a\u8868\u8bbe\u7f6e\u5355\u4f4d\u7ba1\u7406 MBR \u78c1\u76d8\u8bbe\u7f6e\u78c1\u76d8\u5206\u533a\u7ba1\u7406\u65b9\u6848\u521b\u5efa\u5206\u533a\u6269\u5c55\u5206\u533a\u5bb9\u91cf\u5220\u9664\u5206\u533a\u514d\u4ea4\u4e92\u64cd\u4f5c\u7ba1\u7406 GPT \u78c1\u76d8\u8bbe\u7f6e\u78c1\u76d8\u5206\u533a\u7ba1\u7406\u65b9\u6848\u521b\u5efa\u5206\u533a\u6269\u5c55\u5206\u533a\u5220\u9664\u5206\u533a\u514d\u4ea4\u4e92\u64cd\u4f5c\u6587\u4ef6\u7cfb\u7edf\u6301\u4e45\u5316\u6302\u8f7d\u6301\u4e45\u5316\u6302\u8f7d\u53d6\u6d88\u6301\u4e45\u5316\u6302\u8f7d\u7efc\u5408\u6848\u4f8b&#xff1a;","og_url":"https:\/\/www.wsisp.com\/helps\/89546.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-03T00:40:37+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260803004035-6a6fe383f3122.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"13 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/89546.html","url":"https:\/\/www.wsisp.com\/helps\/89546.html","name":"Linux \u786c\u76d8\u5206\u533a\u7ba1\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-03T00:40:37+00:00","dateModified":"2026-08-03T00:40:37+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/89546.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/89546.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/89546.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Linux \u786c\u76d8\u5206\u533a\u7ba1\u7406"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/89546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=89546"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/89546\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/89543"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=89546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=89546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=89546"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=89546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}