{"id":2177,"date":"2022-04-24T09:45:45","date_gmt":"2022-04-24T01:45:45","guid":{"rendered":"https:\/\/dasmz.com\/?p=2177"},"modified":"2025-07-06T22:36:13","modified_gmt":"2025-07-06T14:36:13","slug":"ubuntu-debian-%e7%9a%84linux%e7%8e%af%e5%a2%83%ef%bc%8c%e6%a0%bc%e5%bc%8f%e5%8c%96%e8%b6%85%e8%bf%872tb%e7%9a%84%e7%a3%81%e7%9b%98-2022-4-24","status":"publish","type":"post","link":"https:\/\/dasmz.com\/?p=2177","title":{"rendered":"Ubuntu\/Debian \u7684Linux\u73af\u5883\uff0c\u683c\u5f0f\u5316\u8d85\u8fc72TB\u7684\u78c1\u76d8"},"content":{"rendered":"\n<p><strong>\u524d\u7f00\u3001\u6587\u6863\u4fee\u6539\u8bb0\u5f55<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">2022-4-24 \u521d\u59cb\u5316\u7f16\u8f91\u6b64\u6587\u7ae0\uff0c\u5b8c\u7a3f\n2025-3-16 \u66f4\u65b0<\/pre>\n\n\n\n<p>\u7ae0\u82821\u3001\u9700\u6c42\u63cf\u8ff0<\/p>\n\n\n\n<p>\u4e70\u4e86\u4e00\u57574TB\u7684\u78c1\u76d8\uff0c\u9700\u8981\u683c\u5f0f\u5316\uff0c\u53d1\u73b0fdisk\u4e0d\u652f\u63012TB\u4ee5\u4e0a\u7684\u5bb9\u91cf<\/p>\n\n\n\n<p>\u6ce8\u610f\uff1a\u683c\u5f0f\u5316\u78c1\u76d8\uff0c\u4f1a\u5220\u9664\u539f\u78c1\u76d8\u4e0a\u7684\u6570\u636e\/\u6587\u4ef6\u7cfb\u7edf\uff0c\u786e\u8ba4\u5728\u672a\u6302\u8f7d\u78c1\u76d8\u5230\u6587\u4ef6\u7cfb\u7edf\u7684\u60c5\u51b5\u4e0b\uff0c\u6267\u884c\u5982\u4e0b\u3002<\/p>\n\n\n\n<p>\u7ae0\u82822\u3001\u6267\u884c\u6b65\u9aa4<\/p>\n\n\n\n<p>\u5b89\u88c5parted\u5de5\u5177<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@server:~# apt-get install parted<\/pre>\n\n\n\n<p>\u6267\u884c\u78c1\u76d8\u683c\u5f0f\u5316<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@server:~# parted \/dev\/sda\n(parted) mklabel gpt    # \u6267\u884c\u4fee\u6539\u4e3aGPT\u683c\u5f0f\uff0c\u53ef\u9009gpt\/msdos\n(parted) unit s                                                           \n(parted) print  # \u67e5\u770b\u662f\u5426\u6709\u5206\u533a\uff0c\u5982\u679c\u6709\uff0c\u5c31\u6309\u7f16\u53f7\u5220\u9664\n(parted) rm 1                                                             \n(parted) mkpart primary ext4 0% 100%   # \u6267\u884c\u5206\u533a\uff0c\u540d\u5b57\u662fHDD4TB\uff0c\u5168\u90e8\u78c1\u76d8\uff0cGPT\u7406\u8bba\u4e0a\u652f\u6301 \u6700\u591a 128 \u4e2a\u5206\u533a\uff0c\u53ef\u4ee5\u90fd\u662fprimary\u5206\u533a\n(parted) print  # \u67e5\u770b\u5206\u533a\u6267\u884c\u5b8c\u7684\u6548\u679c                                                          \nModel: ADplus SuperVer (scsi)\nDisk \/dev\/sda: 7814037168s\nSector size (logical\/physical): 512B\/4096B\nPartition Table: gpt\nDisk Flags: \n\nNumber  Start  End          Size         File system  Name    Flags\n 1      2048s  7814035455s  7814033408s  ext4         HDD4TB\n\n(parted) quit<\/pre>\n\n\n\n<p>\u5982\u679c\u51fa\u73b0\u63d0\u793a\uff0c\u57fa\u672c\u4e0a\u6ca1\u6709\u6309\u7167\u7cfb\u7edf\u7684\u5757\u5927\u5c0f\u5bf9\u9f50\uff0c\u7528\u4e0a\u9762\u7684unit s\u548cmkpart\u767e\u5206\u6bd4\u547d\u4ee4\u5c31OKAY<\/p>\n\n\n\n<p>\u521b\u5efa\u6587\u4ef6\u7cfb\u7edf\u4f7f\u7528mkfs\u547d\u4ee4<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ EXT4\u6587\u4ef6\u7cfb\u7edf\nmkfs.ext4 \/dev\/sdb1\n\n\/\/ NTFS\u6587\u4ef6\u7cfb\u7edf\nmkfs.ntfs \/dev\/sdb1\uff08\u9700\u8981\u5b89\u88c5 ntfs-3g \u5305\uff09\n\n\n\/\/ FAT32\u6587\u4ef6\u7cfb\u7edf\nmkfs.vfat -F 32 \/dev\/sdb1\n\n<\/pre>\n\n\n\n<p>\u7ae0\u82823\u3001\u5176\u4ed6<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Warning: The resulting partition is not properly aligned for best performance.\nIgnore\/Cancel\n<\/pre>\n\n\n\n<p>\u5982\u679c\u51fa\u73b0\u5982\u4e0b\u62a5\u9519\uff0c\u5219\u53ef\u4f9d\u6b21\u6267\u884c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># pvcreate \/dev\/vdb\n  Device \/dev\/vdb excluded by a filter.\n\n# wipefs -a \/dev\/vdb\n\/dev\/vdb: 8 bytes were erased at offset 0x00000200 (gpt): 45 46 49 20 50 41 52 54\n\/dev\/vdb: 8 bytes were erased at offset 0x136efffffe00 (gpt): 45 46 49 20 50 41 52 54\n\/dev\/vdb: 2 bytes were erased at offset 0x000001fe (PMBR): 55 aa\n\/dev\/vdb: calling ioclt to re-read partition table: Success\n\n# pvcreate \/dev\/vdb\n  Physical volume \"\/dev\/vdb\" successfully created.\n\n# vgcreate vg01 \/dev\/vdb\n  Volume group \"vg01\" successfully created\n<\/pre>\n\n\n\n<p><strong>\u9644\u5f551\u3001\u89c6\u9891\u64cd\u4f5c\u6f14\u793a<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"000157  Ubuntu\/Debian \u7684Linux\u73af\u5883\uff0c\u683c\u5f0f\u5316\u8d85\u8fc72TB\u7684\u78c1\u76d8 2025-03-16\" width=\"625\" height=\"352\" src=\"https:\/\/www.youtube.com\/embed\/9uuca40-LQM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p><strong>\u9644\u5f552\u3001@Dasmz<\/strong><\/p>\n\n\n\n<p>\u535a\u5ba2\u5185\uff0c\u6240\u6709\u6559\u7a0b\u4e3a\u624b\u6253\u539f\u521b\u6559\u7a0b\uff0c\u5982\u679c\u6280\u672f\u6559\u7a0b\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\uff0c\u6b22\u8fce\u6253\u8d4f\u4f5c\u8005\u3002\u6280\u672f\u5c42\u9762\uff0c\u95fb\u9053\u6709\u5148\u540e\uff0c\u5982\u6709\u758f\u6f0f\u3001\u9519\u8bef\uff0c\u6b22\u8fce\u6307\u6b63\u3002\u6280\u672f\u535a\u5ba2\u7684\u5185\u5bb9\uff0c\u4e00\u822c\u5177\u6709\u4e00\u5b9a\u7684\u73af\u5883\u4f9d\u8d56\uff0c\u5177\u6709\u4e00\u5b9a\u7684\u5e74\u4ee3\u4f9d\u8d56\uff0c\u914c\u60c5\u53c2\u8003\u5176\u4e2d\u7684\u5185\u5bb9\uff0c\u8bf7\u52ff\u5b8c\u5168\u7167\u642c\u7167\u6284\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8e\u535a\u5ba2\u5185\u5df2\u63d0\u53ca\u7684\u4e13\u4e1a\u77e5\u8bc6\uff0c\u5982\u679c\u9700\u8981\u6280\u672f\u6307\u5bfc\uff0c\u6b22\u8fce\u8054\u7cfb\u6211\uff0c\u4ec5\u9700\u652f\u4ed8\u5de5\u65f6\u8d39<\/p>\n\n\n\n<p>Twitter: <a href=\"https:\/\/twitter.com\/fdmove\">Dasmz<\/a><\/p>\n\n\n\n<p>Youtube: <a href=\"https:\/\/www.youtube.com\/@DasmzStudio\" data-type=\"URL\" data-id=\"https:\/\/www.youtube.com\/@DasmzStudio\">@DasmzStudio<\/a><\/p>\n\n\n\n<p>Telegram: <a href=\"https:\/\/t.me\/fdmove\" data-type=\"URL\" data-id=\"https:\/\/t.me\/fdmove\">@Dasmz<\/a><\/p>\n\n\n<div class=\"wp-block-image is-style-default\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"574\" height=\"446\" src=\"https:\/\/dasmz.com\/wp-content\/uploads\/2020\/12\/DONATE.jpg\" alt=\"Donate\" class=\"wp-image-18\"\/><figcaption class=\"wp-element-caption\">\u4e91\u4e5e\u8ba8<\/figcaption><\/figure><\/div>","protected":false},"excerpt":{"rendered":"<p>\u524d\u7f00\u3001\u6587\u6863\u4fee\u6539\u8bb0\u5f55 2022-4-24 \u521d\u59cb\u5316\u7f16\u8f91\u6b64\u6587\u7ae0\uff0c\u5b8c\u7a3f 2025-3-16 \u66f4\u65b0 \u7ae0\u82821\u3001\u9700\u6c42\u63cf\u8ff0 \u4e70 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/2177"}],"collection":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2177"}],"version-history":[{"count":10,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/2177\/revisions"}],"predecessor-version":[{"id":4666,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/2177\/revisions\/4666"}],"wp:attachment":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}