{"id":765,"date":"2022-03-09T10:33:39","date_gmt":"2022-03-09T02:33:39","guid":{"rendered":"https:\/\/blog.espnlol.com\/?p=765"},"modified":"2022-04-20T18:15:22","modified_gmt":"2022-04-20T10:15:22","slug":"fdisk%e7%a3%81%e7%9b%98%e6%89%a9%e5%ae%b9","status":"publish","type":"post","link":"https:\/\/blog.espnlol.com\/?p=765","title":{"rendered":"fdisk\u78c1\u76d8\u6269\u5bb9"},"content":{"rendered":"\n<p>\u56e0\u4e3a\u4e00\u76f4\u90fd\u5728lvm\u6240\u4ee5\u4ece\u6765\u6ca1\u8003\u8651\u8fd9\u5757\u7684\u4e8b\u60c5\uff0c\u6700\u8fd1\u9047\u5230\u4e2a\u9ad8\u624b\u7ef4\u62a4\u7684\u670d\u52a1\u5668\uff0c\u4f7f\u7528\u4e86\u6700\u539f\u59cb\u78c1\u76d8\u65b9\u6cd5\uff0c\u540c\u65f6\u7528\u4e86\u903b\u8f91\u5377\uff0c\u78c1\u76d8\u4e0d\u591f\u7528\u4e86\uff0c\u9700\u8981\u6269\u5bb9\uff0c\u5c31\u770b\u4e86\u4e00\u4e0b\uff0c\u4e5f\u6d4b\u4e86\u4e00\u4e0b\u53d1\u73b0\u6bd4\u8f83\u7b80\u5355\uff0c\u4f46\u4e5f\u5b58\u5728\u98ce\u9669\uff0c\u5e76\u4e0d\u63a8\u8350\u8fd9\u79cd\u78c1\u76d8\u7ba1\u7406\u65b9\u5f0f\uff0c\u5982\u679c\u7528linux\u8fd8\u662f\u5efa\u8bae\u4f7f\u7528lvm\uff0c\u751f\u4ea7\u7528\u4e868\u5e74\uff0c\u5b98\u65b9\u4e5f\u662f\u6bd4\u8f83\u63a8\u8350\u7684\u3002<\/p>\n\n\n\n<p>\u8fd9\u79cd\u4e00\u822c\u5728\u865a\u62df\u673a\u4e0a\u6216\u8005\u4e91\u4e0a\u6bd4\u8f83\u597d\u64cd\u4f5c\uff0c\u7f3a\u70b9\u5c31\u662f\u65e0\u6cd5\u5728\u7ebf\u6269\u5bb9\uff0c\u5fc5\u987b\u505c\u6389\u670d\u52a1\uff0c\u540c\u65f6umount\u8bbe\u5907\u624d\u884c\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#\u5728\u865a\u62df\u673a\u7ba1\u7406\u5e73\u53f0\u6216\u4e91\u5e73\u53f0\u914d\u7f6e\u8c03\u6574\u78c1\u76d8\u5bb9\u91cf\uff08\u53ea\u652f\u6301\u589e\u52a0\u4e0d\u652f\u6301\u51cf\u5c11\u54e6\uff09\uff0c\u67e5\u770b\u4f1a\u53d1\u73b0\u78c1\u76d8\u5df2\u7ecf\u52a8\u6001\u589e\u52a0\u4e86\nfdisk -l\n\n#\u5378\u8f7d\u5206\u533a\numount -l \/mnt\n\n#\u901a\u8fc7fdisk\u5f00\u59cb\u8fdb\u884c\u5206\u533a\nfdisk \/dev\/sda\n#\u76ee\u6807\u6269\u5bb9\u76d8\u4f4d\/dev\/sda5,\u56e0\u4e3a\u8fd9\u4e2a\u5206\u533a\u5728sda3\u6269\u5c55\u5206\u533a\u4e0b\uff0c\u6240\u4ee5\u4e24\u4e2a\u90fd\u8981\u5220\u9664\uff0c\u8981\u5220\u6269\u5bb9sda3\uff0c\u624d\u80fd\u6269\u5bb9sda5\uff0c\u4e0b\u9762\u8981\u8fdb\u884c\u5220\u9664\u7684\u903b\u8f91\u5206\u533a\uff08\u4e00\u5b9a\u8981\u8bb0\u5f55\u8d77\u59cb\u503c\uff0c\u8fd9\u4e2a\u5f88\u5173\u952e\uff0c\u5982\u679c\u8fd9\u4e2a\u9519\u8bef\u5c31\u53ef\u80fd\u51c9\u51c9\u4e86\uff09\nDisk \/dev\/sda: 161.1 GB, 161061273600 bytes, 314572800 sectors\nUnits = sectors of 1 * 512 = 512 bytes\nSector size (logical\/physical): 512 bytes \/ 512 bytes\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\nDisk label type: dos\nDisk identifier: 0x0009dd2d\n\n   Device Boot      Start         End      Blocks   Id  System\n\/dev\/sda1   *        2048     2099199     1048576   83  Linux\n\/dev\/sda2         2099200   209715199   103808000   8e  Linux LVM\n\/dev\/sda3       209715200   314572799    52428800    5  Extended     #\u5220\u9664\n\/dev\/sda5       209717248   314572799    52427776   83  Linux        #\u5220\u9664\n\n#\u6267\u884c\u5220\u9664\u5206\u533a\u64cd\u4f5c(\u6839\u636e\u5b9e\u9645\u64cd\u4f5c)\nd \uff08\u5220\u9664\uff09\n5 \uff08id\uff09\nd \uff08\u5220\u9664\uff09\n3 \uff08id\uff09\n\n#\u521b\u5efa\u6269\u5c55\u5206\u533a\uff08\u8d77\u59cb\u503c\u8981\u5bf9\u5e94\u521a\u521a\u8bb0\u5f55\u7684\u503c\u54e6\uff0c\u7ed3\u675f\u503c\u5efa\u8bae\u6700\u5927\u5373\u53ef\uff09\nn \uff08\u521b\u5efa\uff09\ne \uff08\u7c7b\u578b\uff09\n3 \uff08id\uff09\n\n#\u521b\u5efa\u903b\u8f91\u5206\u533a\uff08\u8d77\u59cb\u503c\u8981\u5bf9\u5e94\u521a\u521a\u8bb0\u5f55\u7684\u503c\u54e6\uff0c\u7ed3\u675f\u503c\u81ea\u5df1\u89c6\u60c5\u51b5\u800c\u5b9a\uff09\nn \uff08\u521b\u5efa)\nl \uff08\u7c7b\u578b)\n5 \uff08id\uff09\n\nw (\u4fdd\u5b58)\n\n#\u8fd9\u4e2a\u65f6\u5019\u8981\u6267\u884c\u5173\u952e\u7684\u4e00\u6b65\uff0c\u5237\u65b0\u5206\u533a\u4fe1\u606f\npartprobe\n\n#\u68c0\u67e5\u5206\u533a\ne2fsck -f \/dev\/sda5\n\n#\u6269\u5bb9\u5206\u533a\nresize2fs \/dev\/sda5\n\n#\u6269\u5bb9\u5b8c\u6bd5\uff0c\u6302\u8f7d\u78c1\u76d8\uff0c\u6570\u636e\u8fd8\u5728\nmount \/dev\/sad5 \/mnt<\/pre>\n\n\n\n<p>\u6700\u540e\u8981\u6ce8\u610f\u7684\u662f\uff0c\u78c1\u76d8\u64cd\u4f5c\u6709\u98ce\u9669\uff0c\u5df2\u7ecf\u8981\u505a\u597d\u5145\u5206\u7684\u6d4b\u8bd5\uff0c\u91cd\u8981\u6570\u636e\u5207\u8bb0\u5907\u4efd\u540e\u624d\u64cd\u4f5c\uff0c\u5207\u83ab\u827a\u9ad8\u4eba\u5927\u80c6<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u56e0\u4e3a\u4e00\u76f4\u90fd\u5728lvm\u6240\u4ee5\u4ece\u6765\u6ca1\u8003\u8651\u8fd9\u5757\u7684\u4e8b\u60c5\uff0c\u6700\u8fd1\u9047\u5230\u4e2a\u9ad8\u624b\u7ef4\u62a4\u7684\u670d\u52a1\u5668\uff0c\u4f7f\u7528\u4e86\u6700 &hellip; <a href=\"https:\/\/blog.espnlol.com\/?p=765\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-765","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts\/765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=765"}],"version-history":[{"count":2,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts\/765\/revisions"}],"predecessor-version":[{"id":767,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=\/wp\/v2\/posts\/765\/revisions\/767"}],"wp:attachment":[{"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.espnlol.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}