{"id":52213,"date":"2024-12-03T09:39:02","date_gmt":"2024-12-03T01:39:02","guid":{"rendered":"https:\/\/fwq.ai\/blog\/52213\/"},"modified":"2024-12-03T09:39:02","modified_gmt":"2024-12-03T01:39:02","slug":"linux%e5%88%a0%e9%99%a4%e5%88%86%e5%8c%ba%e5%af%b9%e6%95%b0%e6%8d%ae%e6%9c%89%e5%93%aa%e4%ba%9b%e5%bd%b1%e5%93%8d","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/52213\/","title":{"rendered":"linux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>linux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd<\/h1>\n<p><span style=\"color: #222222;, sans-serif;background-color: #FFFFFF\">\u5404\u4f4d\u5c0f\u4f19\u4f34\u4eec\uff0c\u5927\u5bb6\u597d\u5440\uff01\u770b\u770b\u4eca\u5929\u6211\u53c8\u7ed9\u5404\u4f4d\u5e26\u6765\u4e86\u4ec0\u4e48\u6587\u7ae0\uff1f\u672c\u6587\u6807\u9898<span style=\"color: #222222;, sans-serif;background-color: #FFFFFF\">\u662f<\/span><span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300alinux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd\u300b<\/span>\uff0c\u5f88\u660e\u663e\u662f\u5173\u4e8e<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6587\u7ae0<\/span>\u7684\u6587\u7ae0\u54c8\u54c8\u54c8\uff0c\u5176\u4e2d\u5185\u5bb9\u4e3b\u8981\u4f1a\u6d89\u53ca\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\uff0c\u5982\u679c\u80fd\u5e2e\u5230\u4f60\uff0c\u89c9\u5f97\u5f88\u4e0d\u9519\u7684\u8bdd\uff0c\u6b22\u8fce\u5404\u4f4d\u591a\u591a\u70b9\u8bc4\u548c\u5206\u4eab\uff01<\/span><\/p>\n<\/p>\n<blockquote>\n<p>\u5728linux\u4e2d\uff0c\u5220\u9664\u5206\u533a\u4e5f\u4f1a\u5220\u9664\u8be5\u5206\u533a\u7684\u6570\u636e\uff0c\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u3002\u5220\u9664\u5206\u533a\u7684\u65b9\u6cd5\uff1a1\u3001\u5b89\u88c5GParted\u5de5\u5177\uff0c\u5728GParted\u754c\u9762\u4e2d\u9009\u60f3\u5220\u9664\u7684\u5206\u533a\uff0c\u4ece\u5206\u533a\u83dc\u5355\u4e2d\u9009\u62e9 \u201c\u5220\u9664\u201d \u9009\u9879\u5373\u53ef\uff1b2\u3001\u4f7f\u7528fdisk\u547d\u4ee4\u5220\u9664\uff0c\u8bed\u6cd5\u201csudo fdisk &#8211;list \u5206\u533a\u540d\u201d\u3002<\/p>\n<\/blockquote>\n<p>linux\u7cfb\u7edf\u4e2d\u6bcf\u4e2a\u5206\u533a\u90fd\u662f\u4e00\u4e2a\u6587\u4ef6\u7cfb\u7edf\uff0c\u90fd\u6709\u81ea\u5df1\u7684\u76ee\u5f55\u5c42\u6b21\u7ed3\u6784\u3002<\/p>\n<p><strong>linux \u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u4ec0\u4e48\u5f71\u54cd<\/strong><\/p>\n<p>\u5220\u9664\u5206\u533a\u4e5f\u4f1a\u5220\u9664\u8be5\u5206\u533a\u7684\u6570\u636e\uff0c\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u3002<\/p>\n<p>\u56e0\u6b64\u65e0\u8bba\u4f55\u65f6\uff0c\u5f53\u4f60\u5728\u64cd\u4f5c\u5206\u533a\u65f6\uff0c\u4e00\u5b9a\u8981\u5907\u4efd\u4f60\u7684\u6570\u636e\u3002\u4e00\u4e2a\u8f7b\u5fae\u7684\u6253\u5b57\u9519\u8bef\u6216\u624b\u6ed1\u90fd\u53ef\u80fd\u662f\u6602\u8d35\u7684\u3002\u4e0d\u8981\u8bf4\u6211\u4eec\u6ca1\u6709\u8b66\u544a\u4f60\uff01<\/p>\n<p><strong>Linux\u78c1\u76d8\u5206\u533a<\/strong><\/p>\n<p><strong>1\u3001\u4e3b\u5206\u533a\uff0c\u6269\u5c55\u5206\u533a\u548c\u903b\u8f91\u5206\u533a<\/strong><\/p>\n<p>Linux\u786c\u76d8\u5206\u533a\u4e00\u5171\u6709\u4e09\u79cd\uff1a\u4e3b\u5206\u533a\uff0c\u6269\u5c55\u5206\u533a\u548c\u903b\u8f91\u5206\u533a\u3002<\/p>\n<p>\u786c\u76d8\u7684\u5206\u533a\u4e3b\u8981\u5206\u4e3a\u4e3b\u5206\u533a(Primary Partion)\u548c\u6269\u5c55\u5206\u533a(Extension Partion)\u4e24\u79cd\uff0c\u4e3b\u5206\u533a\u548c\u6269\u5c55\u5206\u533a\u7684\u6570\u76ee\u4e4b\u548c\u4e0d\u80fd\u5927\u4e8e\u56db\u4e2a\u3002<\/p>\n<ul>\n<li>\n<p>\u4e3b\u5206\u533a(Primary Partion)\uff1a\u53ef\u4ee5\u9a6c\u4e0a\u88ab\u4f7f\u7528\u4f46\u4e0d\u80fd\u518d\u5206\u533a\u3002<\/p>\n<\/li>\n<li>\n<p>\u6269\u5c55\u5206\u533a(Extension Partion)\uff1a\u5fc5\u987b\u518d\u8fdb\u884c\u5206\u533a\u540e\u624d\u80fd\u4f7f\u7528\uff0c\u4e5f\u5c31\u662f\u8bf4\u5b83\u5fc5\u987b\u8fd8\u8981\u8fdb\u884c\u4e8c\u6b21\u5206\u533a\u3002<\/p>\n<\/li>\n<li>\n<p>\u903b\u8f91\u5206\u533a((Logical Partion))\uff1a\u7531\u6269\u5c55\u5206\u533a\u5efa\u7acb\u8d77\u6765\u7684\u5206\u533a\uff0c\u903b\u8f91\u5206\u533a\u6ca1\u6709\u6570\u91cf\u4e0a\u9650\u5236\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u6269\u5c55\u5206\u533a\u53ea\u4e0d\u8fc7\u662f\u903b\u8f91\u5206\u533a\u7684\u201c\u5bb9\u5668\u201d\uff0c\u5b9e\u9645\u4e0a\u53ea\u6709\u4e3b\u5206\u533a\u548c\u903b\u8f91\u5206\u533a\u8fdb\u884c\u6570\u636e\u5b58\u50a8\u3002<\/p>\n<p><strong>2\u3001Linux\u4e0b\u786c\u76d8\u5206\u533a\u7684\u6807\u8bc6<\/strong><\/p>\n<p>\u786c\u76d8\u5206\u533a\u7684\u6807\u8bc6\u4e00\u822c\u4f7f\u7528\/dev\/hd[a-z]X\u6216\u8005\/dev\/sd[a-z]X\u6765\u6807\u8bc6\uff0c\u5176\u4e2d[a-z]\u4ee3\u8868\u786c\u76d8\u53f7\uff0cX\u4ee3\u8868\u786c\u76d8\u5185\u7684\u5206\u533a\u53f7\u3002<\/p>\n<p>\u6574\u5757\u786c\u76d8\u5206\u533a\u7684\u5757\u53f7\u6807\u8bc6:Linux\u4e0b\u7528hda\u3001hdb\u3001sda\u3001sdb \u7b49\u6765\u6807\u8bc6\u4e0d\u540c\u7684\u786c\u76d8;<\/p>\n<p>\u5176\u4e2d\uff1a<\/p>\n<ul>\n<li>\n<p>IDE\u63a5\u53e3\u786c\u76d8\uff1a\u8868\u793a\u4e3a\/dev\/hda1\u3001\/dev\/hdb \u2026\uff1b<\/p>\n<\/li>\n<li>\n<p>SCSI \u63a5\u53e3\u7684\u786c\u76d8\u3001SATA\u63a5\u53e3\u7684\u786c\u76d8\u8868\u793a\u4e3a\/dev\/sda\u3001\/dev\/sdb \u2026 \u2026 \uff1b<\/p>\n<\/li>\n<\/ul>\n<p>\u786c\u76d8\u5185\u7684\u5206\u533a\uff1a\u5982\u679cX\u7684\u503c\u662f1\u52304,\u8868\u793a\u786c\u76d8\u7684\u4e3b\u5206\u533a(\u5305\u542b\u6269\u5c55\u5206\u533a)\uff1b\u903b\u8f91\u5206\u533a\u4ece\u662f\u4ece5\u5f00\u59cb\u7684\uff0c\u6bd4\u5982\/dev\/hda5\u80af\u5b9a\u662f\u903b\u8f91\u5206\u533a\u4e86\uff1b<\/p>\n<p>\u4f8b\u5982\uff1a<\/p>\n<p>\u7528hda1\u3001hda2\u3001 hda5\u3001hda6 \u6765\u6807\u8bc6\u4e0d\u540c\u7684\u5206\u533a\u3002\u5176\u4e2d\uff0c\u5b57\u6bcda\u4ee3\u8868\u7b2c\u4e00\u5757\u786c\u76d8\uff0cb\u4ee3\u8868\u7b2c\u4e8c\u5757\u786c\u76d8\uff0c\u4f9d\u6b21\u7c7b\u63a8\u3002\u800c\u6570\u5b571 \u4ee3\u8868\u4e00\u5757\u786c\u76d8\u7684\u7b2c\u4e00\u4e2a\u5206\u533a\u30012 \u4ee3\u8868\u7b2c\u4e8c\u4e2a\u5206\u533a\uff0c\u4f9d\u6b21\u7c7b\u63a8\u30021 \u52304 \u5bf9\u5e94\u7684\u662f\u4e3b\u5206\u533a(Primary Partition)\u6216\u6269\u5c55\u5206\u533a(Extension Partition)\u3002\u4ece5\u5f00\u59cb\uff0c\u5bf9\u5e94\u7684\u90fd\u662f\u786c\u76d8\u7684\u903b\u8f91\u5206\u533a(Logical Partition)\u3002\u4e00\u5757\u786c\u76d8\u5373\u4f7f\u53ea\u6709\u4e00\u4e2a\u4e3b\u5206\u533a\uff0c\u903b\u8f91\u5206\u533a\u4e5f\u662f\u4ece5\u5f00\u59cb\u7f16\u53f7\u7684\uff0c\u8fd9\u70b9\u5e94\u7279\u522b\u6ce8\u610f\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240417\/1713322471661f39e770d47.jpg\" class=\"aligncenter\" title=\"linux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd\u63d2\u56fe\" alt=\"linux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd\u63d2\u56fe\" \/><\/p>\n<p><strong>Linux \u4e2d\u5982\u4f55\u5220\u9664\u5206\u533a<\/strong><\/p>\n<p><strong>1\u3001\u4f7f\u7528 GParted \u5220\u9664\u78c1\u76d8\u5206\u533a \uff08GUI \u65b9\u6cd5\uff09<\/strong><\/p>\n<p>\u4f5c\u4e3a\u4e00\u4e2a\u684c\u9762 Linux \u7528\u6237\uff0c\u4f60\u53ef\u80fd\u4f1a\u5bf9\u57fa\u4e8e GUI \u7684\u5de5\u5177\u611f\u5230\u66f4\u8212\u670d\uff0c\u4e5f\u8bb8\u66f4\u5b89\u5168\u3002\u6709\u51e0\u4e2a\u8ba9\u4f60\u5728 Linux \u4e0a\u7ba1\u7406\u5206\u533a\u7684\u5de5\u5177\u3002\u6839\u636e\u4f60\u7684\u53d1\u884c\u7248\uff0c\u4f60\u7684\u7cfb\u7edf\u4e0a\u5df2\u7ecf\u5b89\u88c5\u4e86\u4e00\u4e2a\u751a\u81f3\u591a\u4e2a\u8fd9\u6837\u7684\u5de5\u5177\u3002\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u5c06\u4f7f\u7528 GParted\u3002\u5b83\u662f\u4e00\u4e2a\u6d41\u884c\u7684\u5f00\u6e90\u5de5\u5177\uff0c\u4f7f\u7528\u8d77\u6765\u975e\u5e38\u7b80\u5355\u548c\u76f4\u89c2\u3002<\/p>\n<p>\u7b2c\u4e00\u6b65\u662f \u5b89\u88c5 GParted\uff0c\u5982\u679c\u5b83\u8fd8\u6ca1\u6709\u5728\u4f60\u7684\u7cfb\u7edf\u4e2d\u3002\u4f60\u5e94\u8be5\u80fd\u591f\u5728\u4f60\u7684\u53d1\u884c\u7248\u7684\u8f6f\u4ef6\u4e2d\u5fc3\u627e\u5230\u5b83\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240417\/1713322471661f39e773cb4.jpg\" class=\"aligncenter\" title=\"linux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd\u63d2\u56fe1\" alt=\"linux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd\u63d2\u56fe1\" \/><\/p>\n<p>\u6216\u8005\uff0c\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4f60\u7684\u53d1\u884c\u7248\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\u6765\u5b89\u88c5\u5b83\u3002\u5728\u57fa\u4e8e Debian \u548c Ubuntu \u7684 Linux \u53d1\u884c\u7248\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528apt install\u547d\u4ee4\uff1a<\/p>\n<pre>sudo&nbsp;apt&nbsp;install&nbsp;gparted<\/pre>\n<p>\u5b89\u88c5\u5b8c\u6bd5\u540e\uff0c\u8ba9\u6211\u4eec\u6253\u5f00 GParted\u3002\u7531\u4e8e\u4f60\u6b63\u5728\u5904\u7406\u78c1\u76d8\u5206\u533a\uff0c\u4f60\u9700\u8981\u6709 root \u6743\u9650\u3002\u5b83\u5c06\u8981\u6c42\u8fdb\u884c\u8ba4\u8bc1\uff0c\u6253\u5f00\u540e\uff0c\u4f60\u5e94\u8be5\u770b\u5230\u4e00\u4e2a\u7c7b\u4f3c\u8fd9\u6837\u7684\u7a97\u53e3\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240417\/1713322471661f39e7769f8.jpg\" class=\"aligncenter\" title=\"linux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd\u63d2\u56fe2\" alt=\"linux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd\u63d2\u56fe2\" \/><\/p>\n<p>\u5728\u53f3\u4e0a\u89d2\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u78c1\u76d8\uff0c\u5728\u4e0b\u9762\u9009\u62e9\u4f60\u60f3\u5220\u9664\u7684\u5206\u533a\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u4ece\u5206\u533a\u83dc\u5355\u4e2d\u9009\u62e9 \u201c\u5220\u9664\u201d \u9009\u9879\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240417\/1713322471661f39e77991b.jpg\" class=\"aligncenter\" title=\"linux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd\u63d2\u56fe3\" alt=\"linux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd\u63d2\u56fe3\" \/><\/p>\n<p>\u8fd9\u4e2a\u8fc7\u7a0b\u662f\u6ca1\u6709\u5b8c\u6574\u5b8c\u6210\u7684\uff0c\u76f4\u5230\u4f60\u91cd\u5199\u5206\u533a\u8868\u3002\u8fd9\u662f\u4e00\u9879\u5b89\u5168\u63aa\u65bd\uff0c\u5b83\u8ba9\u4f60\u5728\u786e\u8ba4\u4e4b\u524d\u53ef\u4ee5\u9009\u62e9\u5ba1\u67e5\u66f4\u6539\u3002<br \/>\u8981\u5b8c\u6210\u5b83\uff0c\u53ea\u9700\u70b9\u51fb\u4f4d\u4e8e\u5de5\u5177\u680f\u4e2d\u7684 \u201c\u5e94\u7528\u6240\u6709\u64cd\u4f5c\u201d \u6309\u94ae\uff0c\u7136\u540e\u5728\u8981\u6c42\u786e\u8ba4\u65f6\u70b9\u51fb \u201c\u5e94\u7528\u201d\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240417\/1713322471661f39e77cf92.jpg\" class=\"aligncenter\" title=\"linux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd\u63d2\u56fe4\" alt=\"linux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd\u63d2\u56fe4\" \/><\/p>\n<p>\u70b9\u51fb \u201c\u5e94\u7528\u201d \u540e\uff0c\u4f60\u4f1a\u770b\u5230\u4e00\u4e2a\u8fdb\u5ea6\u6761\u548c\u4e00\u4e2a\u7ed3\u679c\u6d88\u606f\u8bf4\u6240\u6709\u7684\u64cd\u4f5c\u90fd\u6210\u529f\u4e86\u3002\u4f60\u53ef\u4ee5\u5173\u95ed\u8be5\u4fe1\u606f\u548c\u4e3b\u7a97\u53e3\uff0c\u5e76\u8ba4\u4e3a\u4f60\u7684\u5206\u533a\u5df2\u4ece\u78c1\u76d8\u4e2d\u5b8c\u5168\u5220\u9664\u3002<\/p>\n<p>\u73b0\u5728\u4f60\u5df2\u7ecf\u77e5\u9053\u4e86 GUI \u7684\u65b9\u6cd5\uff0c\u8ba9\u6211\u4eec\u7ee7\u7eed\u4f7f\u7528\u547d\u4ee4\u884c\u3002<\/p>\n<p><strong>2\u3001\u4f7f\u7528 fdisk \u547d\u4ee4\u5220\u9664\u5206\u533a\uff08CLI \u65b9\u6cd5\uff09<\/strong><\/p>\n<p>\u51e0\u4e4e\u6bcf\u4e2a Linux \u53d1\u884c\u7248\u90fd\u9ed8\u8ba4\u5e26\u6709 fdisk\uff0c\u6211\u4eec\u4eca\u5929\u5c31\u6765\u4f7f\u7528\u8fd9\u4e2a\u5de5\u5177\u3002\u4f60\u9700\u8981\u77e5\u9053\u7684\u7b2c\u4e00\u4ef6\u4e8b\u662f\uff0c\u4f60\u60f3\u5220\u9664\u7684\u5206\u533a\u88ab\u5206\u914d\u5230\u54ea\u4e2a\u8bbe\u5907\u4e0a\u4e86\u3002\u4e3a\u6b64\uff0c\u5728\u7ec8\u7aef\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<pre>sudo&nbsp;fdisk&nbsp;--list<\/pre>\n<p>\u8fd9\u5c06\u6253\u5370\u51fa\u6211\u4eec\u7cfb\u7edf\u4e2d\u6240\u6709\u7684\u9a71\u52a8\u5668\u548c\u5206\u533a\uff0c\u4ee5\u53ca\u5206\u914d\u7684\u8bbe\u5907\u3002\u4f60 \u9700\u8981\u6709 root \u6743\u9650\uff0c\u4ee5\u4fbf\u8ba9\u5b83\u53d1\u6325\u4f5c\u7528\u3002<\/p>\n<p>\u5728\u672c\u4f8b\u4e2d\uff0c\u6211\u5c06\u4f7f\u7528\u4e00\u4e2a\u5305\u542b\u4e24\u4e2a\u5206\u533a\u7684 USB \u9a71\u52a8\u5668\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240417\/1713322471661f39e78001d.jpg\" class=\"aligncenter\" title=\"linux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd\u63d2\u56fe5\" alt=\"linux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd\u63d2\u56fe5\" \/><\/p>\n<p>\u7cfb\u7edf\u4e2d\u5206\u914d\u7684\u8bbe\u5907\u662f \/sdb\uff0c\u5b83\u6709\u4e24\u4e2a\u5206\u533a\uff1asdb1 \u548c sdb2\u3002\u73b0\u5728\u4f60\u5df2\u7ecf\u786e\u5b9a\u4e86\u54ea\u4e2a\u8bbe\u5907\u5305\u542b\u8fd9\u4e9b\u5206\u533a\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528 fdisk \u548c\u8bbe\u5907\u7684\u8def\u5f84\u5f00\u59cb\u64cd\u4f5c\uff1a<\/p>\n<pre>sudo&nbsp;fdisk&nbsp;\/dev\/sdb<\/pre>\n<p>\u8fd9\u5c06\u5728\u547d\u4ee4\u6a21\u5f0f\u4e0b\u542f\u52a8 fdisk\u3002\u4f60\u53ef\u4ee5\u968f\u65f6\u6309 m \u6765\u67e5\u770b\u9009\u9879\u5217\u8868\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u8f93\u5165 p\uff0c\u7136\u540e\u6309\u56de\u8f66\u67e5\u770b\u5206\u533a\u4fe1\u606f\uff0c\u5e76\u786e\u8ba4\u4f60\u6b63\u5728\u4f7f\u7528\u6b63\u786e\u7684\u8bbe\u5907\u3002\u5982\u679c\u4f7f\u7528\u4e86\u9519\u8bef\u7684\u8bbe\u5907\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 q \u547d\u4ee4\u9000\u51fa fdisk \u5e76\u91cd\u65b0\u5f00\u59cb\u3002<\/p>\n<p>\u73b0\u5728\u8f93\u5165 d \u6765\u5220\u9664\u4e00\u4e2a\u5206\u533a\uff0c\u5b83\u5c06\u7acb\u5373\u8be2\u95ee\u5206\u533a\u7f16\u53f7\uff0c\u8fd9\u4e0e \u201cDevice\u201d \u5217\u4e2d\u5217\u51fa\u7684\u7f16\u53f7\u76f8\u5bf9\u5e94\uff0c\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\u662f 1 \u548c 2\uff08\u5728\u4e0b\u9762\u7684\u622a\u56fe\u4e2d\u53ef\u4ee5\u770b\u5230\uff09\uff0c\u4f46\u662f\u53ef\u4ee5\u4e5f\u4f1a\u6839\u636e\u5f53\u524d\u7684\u5206\u533a\u8868\u800c\u6709\u6240\u4e0d\u540c\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240417\/1713322471661f39e78135d.jpg\" class=\"aligncenter\" title=\"linux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd\u63d2\u56fe6\" alt=\"linux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd\u63d2\u56fe6\" \/><\/p>\n<p>\u8ba9\u6211\u4eec\u901a\u8fc7\u8f93\u5165 2 \u5e76\u6309\u4e0b\u56de\u8f66\u6765\u5220\u9664\u7b2c\u4e8c\u4e2a\u5206\u533a\u3002\u4f60\u5e94\u8be5\u770b\u5230\u4e00\u6761\u4fe1\u606f\uff1a\u201cPartition 2 has been deleted\u201d\uff0c\u4f46\u5b9e\u9645\u4e0a\uff0c\u5b83\u8fd8\u6ca1\u6709\u88ab\u5220\u9664\u3002fdisk \u8fd8\u9700\u8981\u4e00\u4e2a\u6b65\u9aa4\u6765\u91cd\u5199\u5206\u533a\u8868\u5e76\u5e94\u7528\u8fd9\u4e9b\u53d8\u5316\u3002\u4f60\u770b\uff0c\u8fd9\u5c31\u662f\u5b8c\u5168\u7f51\u3002<\/p>\n<p>\u4f60\u9700\u8981\u8f93\u5165 w\uff0c\u7136\u540e\u6309\u56de\u8f66\u6765\u4f7f\u8fd9\u4e9b\u6539\u53d8\u6210\u4e3a\u6c38\u4e45\u6027\u7684\u3002\u6ca1\u6709\u518d\u8981\u6c42\u786e\u8ba4\u3002<\/p>\n<p>\u5728\u8fd9\u4e4b\u540e\uff0c\u4f60\u5e94\u8be5\u770b\u5230\u4e0b\u9762\u8fd9\u6837\u7684\u53cd\u9988\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20240417\/1713322471661f39e7824f4.jpg\" class=\"aligncenter\" title=\"linux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd\u63d2\u56fe7\" alt=\"linux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd\u63d2\u56fe7\" \/><\/p>\n<p>\u73b0\u5728\uff0c\u4f7f\u7528<\/p>\n<pre>sudo&nbsp;fdisk&nbsp;--list&nbsp;\/dev\/sdb<\/pre>\n<p>\u67e5\u770b\u8be5\u8bbe\u5907\u7684\u5f53\u524d\u5206\u533a\u8868\uff0c\u4f60\u53ef\u4ee5\u770b\u5230\u7b2c\u4e8c\u4e2a\u5206\u533a\u5df2\u7ecf\u5b8c\u5168\u6d88\u5931\u3002\u4f60\u5df2\u7ecf\u5b8c\u6210\u4e86\u4f7f\u7528\u7ec8\u7aef\u548c fdisk \u547d\u4ee4\u6765\u5220\u9664\u4f60\u7684\u5206\u533a\u3002\u6210\u529f\u4e86\uff01<\/p>\n<p>\u5230\u8fd9\u91cc\uff0c\u6211\u4eec\u4e5f\u5c31\u8bb2\u5b8c\u4e86\u300alinux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd\u300b\u7684\u5185\u5bb9\u4e86\u3002\u4e2a\u4eba\u8ba4\u4e3a\uff0c\u57fa\u7840\u77e5\u8bc6\u7684\u5b66\u4e60\u548c\u5de9\u56fa\uff0c\u662f\u4e3a\u4e86\u66f4\u597d\u7684\u5c06\u5176\u8fd0\u7528\u5230\u9879\u76ee\u4e2d\uff0c\u6b22\u8fce\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\uff0c\u5e26\u4f60\u4e86\u89e3\u66f4\u591a\u5173\u4e8eLinux\u7684\u77e5\u8bc6\u70b9\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>linux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd \u5404\u4f4d\u5c0f\u4f19\u4f34\u4eec\uff0c\u5927\u5bb6\u597d\u5440\uff01\u770b\u770b\u4eca\u5929\u6211\u53c8\u7ed9\u5404\u4f4d\u5e26\u6765\u4e86\u4ec0\u4e48\u6587\u7ae0\uff1f\u672c\u6587\u6807\u9898\u662f\u300alinux\u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u54ea\u4e9b\u5f71\u54cd\u300b\uff0c\u5f88\u660e\u663e\u662f\u5173\u4e8e\u6587\u7ae0\u7684\u6587\u7ae0\u54c8\u54c8\u54c8\uff0c\u5176\u4e2d\u5185\u5bb9\u4e3b\u8981\u4f1a\u6d89\u53ca\u5230\u7b49\u7b49\uff0c\u5982\u679c\u80fd\u5e2e\u5230\u4f60\uff0c\u89c9\u5f97\u5f88\u4e0d\u9519\u7684\u8bdd\uff0c\u6b22\u8fce\u5404\u4f4d\u591a\u591a\u70b9\u8bc4\u548c\u5206\u4eab\uff01 \u5728linux\u4e2d\uff0c\u5220\u9664\u5206\u533a\u4e5f\u4f1a\u5220\u9664\u8be5\u5206\u533a\u7684\u6570\u636e\uff0c\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u3002\u5220\u9664\u5206\u533a\u7684\u65b9\u6cd5\uff1a1\u3001\u5b89\u88c5GParted\u5de5\u5177\uff0c\u5728GParted\u754c\u9762\u4e2d\u9009\u60f3\u5220\u9664\u7684\u5206\u533a\uff0c\u4ece\u5206\u533a\u83dc\u5355\u4e2d\u9009\u62e9 \u201c\u5220\u9664\u201d \u9009\u9879\u5373\u53ef\uff1b2\u3001\u4f7f\u7528fdisk\u547d\u4ee4\u5220\u9664\uff0c\u8bed\u6cd5\u201csudo fdisk &#8211;list \u5206\u533a\u540d\u201d\u3002 linux\u7cfb\u7edf\u4e2d\u6bcf\u4e2a\u5206\u533a\u90fd\u662f\u4e00\u4e2a\u6587\u4ef6\u7cfb\u7edf\uff0c\u90fd\u6709\u81ea\u5df1\u7684\u76ee\u5f55\u5c42\u6b21\u7ed3\u6784\u3002 linux \u5220\u9664\u5206\u533a\u5bf9\u6570\u636e\u6709\u4ec0\u4e48\u5f71\u54cd \u5220\u9664\u5206\u533a\u4e5f\u4f1a\u5220\u9664\u8be5\u5206\u533a\u7684\u6570\u636e\uff0c\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u3002 \u56e0\u6b64\u65e0\u8bba\u4f55\u65f6\uff0c\u5f53\u4f60\u5728\u64cd\u4f5c\u5206\u533a\u65f6\uff0c\u4e00\u5b9a\u8981\u5907\u4efd\u4f60\u7684\u6570\u636e\u3002\u4e00\u4e2a\u8f7b\u5fae\u7684\u6253\u5b57\u9519\u8bef\u6216\u624b\u6ed1\u90fd\u53ef\u80fd\u662f\u6602\u8d35\u7684\u3002\u4e0d\u8981\u8bf4\u6211\u4eec\u6ca1\u6709\u8b66\u544a\u4f60\uff01 Linux\u78c1\u76d8\u5206\u533a 1\u3001\u4e3b\u5206\u533a\uff0c\u6269\u5c55\u5206\u533a\u548c\u903b\u8f91\u5206\u533a Linux\u786c\u76d8\u5206\u533a\u4e00\u5171\u6709\u4e09\u79cd\uff1a\u4e3b\u5206\u533a\uff0c\u6269\u5c55\u5206\u533a\u548c\u903b\u8f91\u5206\u533a\u3002 \u786c\u76d8\u7684\u5206\u533a\u4e3b\u8981\u5206\u4e3a\u4e3b\u5206\u533a(Primary Partion)\u548c\u6269\u5c55\u5206\u533a(Extension Partion)\u4e24\u79cd\uff0c\u4e3b\u5206\u533a\u548c\u6269\u5c55\u5206\u533a\u7684\u6570\u76ee\u4e4b\u548c\u4e0d\u80fd\u5927\u4e8e\u56db\u4e2a\u3002 \u4e3b\u5206\u533a(Primary Partion)\uff1a\u53ef\u4ee5\u9a6c\u4e0a\u88ab\u4f7f\u7528\u4f46\u4e0d\u80fd\u518d\u5206\u533a\u3002 \u6269\u5c55\u5206\u533a(Extension Partion)\uff1a\u5fc5\u987b\u518d\u8fdb\u884c\u5206\u533a\u540e\u624d\u80fd\u4f7f\u7528\uff0c\u4e5f\u5c31\u662f\u8bf4\u5b83\u5fc5\u987b\u8fd8\u8981\u8fdb\u884c\u4e8c\u6b21\u5206\u533a\u3002 \u903b\u8f91\u5206\u533a((Logical Partion))\uff1a\u7531\u6269\u5c55\u5206\u533a\u5efa\u7acb\u8d77\u6765\u7684\u5206\u533a\uff0c\u903b\u8f91\u5206\u533a\u6ca1\u6709\u6570\u91cf\u4e0a\u9650\u5236\u3002 \u6269\u5c55\u5206\u533a\u53ea\u4e0d\u8fc7\u662f\u903b\u8f91\u5206\u533a\u7684\u201c\u5bb9\u5668\u201d\uff0c\u5b9e\u9645\u4e0a\u53ea\u6709\u4e3b\u5206\u533a\u548c\u903b\u8f91\u5206\u533a\u8fdb\u884c\u6570\u636e\u5b58\u50a8\u3002 2\u3001Linux\u4e0b\u786c\u76d8\u5206\u533a\u7684\u6807\u8bc6 \u786c\u76d8\u5206\u533a\u7684\u6807\u8bc6\u4e00\u822c\u4f7f\u7528\/dev\/hd[a-z]X\u6216\u8005\/dev\/sd[a-z]X\u6765\u6807\u8bc6\uff0c\u5176\u4e2d[a-z]\u4ee3\u8868\u786c\u76d8\u53f7\uff0cX\u4ee3\u8868\u786c\u76d8\u5185\u7684\u5206\u533a\u53f7\u3002 \u6574\u5757\u786c\u76d8\u5206\u533a\u7684\u5757\u53f7\u6807\u8bc6:Linux\u4e0b\u7528hda\u3001hdb\u3001sda\u3001sdb \u7b49\u6765\u6807\u8bc6\u4e0d\u540c\u7684\u786c\u76d8; \u5176\u4e2d\uff1a IDE\u63a5\u53e3\u786c\u76d8\uff1a\u8868\u793a\u4e3a\/dev\/hda1\u3001\/dev\/hdb \u2026\uff1b SCSI \u63a5\u53e3\u7684\u786c\u76d8\u3001SATA\u63a5\u53e3\u7684\u786c\u76d8\u8868\u793a\u4e3a\/dev\/sda\u3001\/dev\/sdb \u2026 \u2026 \uff1b \u786c\u76d8\u5185\u7684\u5206\u533a\uff1a\u5982\u679cX\u7684\u503c\u662f1\u52304,\u8868\u793a\u786c\u76d8\u7684\u4e3b\u5206\u533a(\u5305\u542b\u6269\u5c55\u5206\u533a)\uff1b\u903b\u8f91\u5206\u533a\u4ece\u662f\u4ece5\u5f00\u59cb\u7684\uff0c\u6bd4\u5982\/dev\/hda5\u80af\u5b9a\u662f\u903b\u8f91\u5206\u533a\u4e86\uff1b \u4f8b\u5982\uff1a \u7528hda1\u3001hda2\u3001 hda5\u3001hda6 \u6765\u6807\u8bc6\u4e0d\u540c\u7684\u5206\u533a\u3002\u5176\u4e2d\uff0c\u5b57\u6bcda\u4ee3\u8868\u7b2c\u4e00\u5757\u786c\u76d8\uff0cb\u4ee3\u8868\u7b2c\u4e8c\u5757\u786c\u76d8\uff0c\u4f9d\u6b21\u7c7b\u63a8\u3002\u800c\u6570\u5b571 \u4ee3\u8868\u4e00\u5757\u786c\u76d8\u7684\u7b2c\u4e00\u4e2a\u5206\u533a\u30012 \u4ee3\u8868\u7b2c\u4e8c\u4e2a\u5206\u533a\uff0c\u4f9d\u6b21\u7c7b\u63a8\u30021 \u52304 \u5bf9\u5e94\u7684\u662f\u4e3b\u5206\u533a(Primary Partition)\u6216\u6269\u5c55\u5206\u533a(Extension Partition)\u3002\u4ece5\u5f00\u59cb\uff0c\u5bf9\u5e94\u7684\u90fd\u662f\u786c\u76d8\u7684\u903b\u8f91\u5206\u533a(Logical Partition)\u3002\u4e00\u5757\u786c\u76d8\u5373\u4f7f\u53ea\u6709\u4e00\u4e2a\u4e3b\u5206\u533a\uff0c\u903b\u8f91\u5206\u533a\u4e5f\u662f\u4ece5\u5f00\u59cb\u7f16\u53f7\u7684\uff0c\u8fd9\u70b9\u5e94\u7279\u522b\u6ce8\u610f\u3002 Linux \u4e2d\u5982\u4f55\u5220\u9664\u5206\u533a 1\u3001\u4f7f\u7528 GParted \u5220\u9664\u78c1\u76d8\u5206\u533a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-52213","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=52213"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/52213\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=52213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=52213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=52213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}