{"id":14005,"date":"2024-03-10T10:24:58","date_gmt":"2024-03-10T02:24:58","guid":{"rendered":"https:\/\/92it.top\/?p=14005"},"modified":"2024-03-10T10:24:58","modified_gmt":"2024-03-10T02:24:58","slug":"linux%e7%a3%81%e7%9b%98%e6%8c%82%e8%bd%bd%e3%80%81%e5%88%86%e5%8c%ba%e3%80%81%e6%a0%bc%e5%bc%8f%e5%8c%96","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=14005","title":{"rendered":"linux\u78c1\u76d8\u6302\u8f7d\u3001\u5206\u533a\u3001\u683c\u5f0f\u5316"},"content":{"rendered":"\n<p>\u6211\u4eec\u4f7f\u7528\u4e00\u4e2alinux\u78c1\u76d8\u5927\u6982\u53ef\u4ee5\u5206\u4e3a\u4e09\u6b65\uff1a<\/p>\n\n\n\n<ul>\n<li>\u6dfb\u52a0\u786c\u76d8\/\u65b0\u5efa\u5206\u533a\uff08fdisk)\u3002\uff08\u6ce8\uff1a\u65b0\u5efa\u5206\u533a\u662f\u975e\u5fc5\u987b\u7684\u3002\uff09<\/li>\n\n\n\n<li>\u683c\u5f0f\u5316\u5206\u533a\uff08mkfs.ext4\uff09\u3002<\/li>\n\n\n\n<li>\u6302\u8f7d\uff08\u52a0\u8f7d\u5206\u533amount\uff09<\/li>\n<\/ul>\n\n\n\n<p><strong>1\u3001\u6dfb\u52a0\u786c\u76d8\uff0c\u65b0\u5efa\u5206\u533a\uff08fisk\uff09<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>fdisk \u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684\u5206\u533a\u5de5\u5177\uff0c\u4e5f\u662f\u76ee\u524d\u5728Unix\u7c7b\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u6700\u6d41\u884c\u7684\u5de5\u5177\u4e4b\u4e00\uff1b\u5206\u533a\u5de5\u5177\u8001\u5b57\u53f7\u3002\uff08\u4f7f\u7528man fdisk\uff09<\/p>\n\n\n\n<p><strong>\uff081\uff09\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u6240\u6709\u786c\u76d8\u53ca\u5206\u533a\u60c5\u51b5\uff1afdisk -l<\/strong><\/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=\"\">    \u4f7f\u7528\u547d\u4ee4\n    sudo fdisk -l<\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"707\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-71-1024x707.png\" alt=\"\" class=\"wp-image-14006\" style=\"width:428px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-71-1024x707.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-71-300x207.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-71-768x530.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-71-830x573.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-71-230x159.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-71-350x242.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-71-480x332.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-71.png 1112w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\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=\"\">1\u3001vda \u4ee3\u8868\u662f\u7cfb\u7edf\u76d8\uff0c\u662f40G\n\n2\u3001vda1 \u4ee3\u8868\u7cfb\u7edf\u76d8\u5206\u4e86\u51e0\u4e2a\u533a\uff0c\u6570\u5b57\u5f80\u540e\u9012\u589e\uff0c\u6211\u8fd9\u91cc\u5c31\u5206\u4e86\u4e00\u4e2a\u533a\uff0c\u6240\u4ee5\u662fvda1\n\n3\u3001vdb \u4ee3\u8868\u786c\u76d8\uff0c\u662f300G\n\n4\u3001vdb1 \u4ee3\u8868\u7684\u662f\u786c\u76d8\u5206\u533a<\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"834\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-72-1024x834.png\" alt=\"\" class=\"wp-image-14007\" style=\"width:458px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-72-1024x834.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-72-300x244.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-72-768x626.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-72-830x676.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-72-230x187.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-72-350x285.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-72-480x391.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-72.png 1078w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>\u901a\u8fc7\u4e0a\u56fe\u7684fdisk -l\u7684\u4fe1\u606f\uff0c\u6211\u4eec\u77e5\u9053\u6b64\u673a\u5668\u4e2d\u6302\u8f7d\u4e94\u4e2a\u786c\u76d8\uff08\u6216\u79fb\u52a8\u786c\u76d8\uff09\uff0c\u5206\u522b\u662fvda\u3001vdb\u3001vdc\u3001vdd\u3001vde\uff1b\u5982\u679c\u6211\u4eec\u60f3\u67e5\u770b\u5355\u4e2a\u786c\u76d8\u60c5\u51b5\uff0c\u53ef\u4ee5\u901a\u8fc7 fdisk \/dev\/vda\u6216\u8005fdisk \/dev\/vdb \u6765\u64cd\u4f5c\uff1b\/dev\/vda\u4e0b\u7684\/dev\/vda1\u662fvda\u7684\u4e3b\u5206\u533a\uff0c\u5206\u533a\u4e2d\u8fd8\u6709\u6269\u5c55\u5206\u533a\u548c\u903b\u8f91\u5206\u533a\u7684\u6982\u5ff5\uff0c\u5728\u6b64\u4e0d\u505a\u6269\u5c55\u3002<\/p>\n\n\n\n<p>\u5173\u4e8efdisk -l \u4e00\u4e9b\u6570\u503c\u7684\u8bf4\u660e\uff0c\u4ee5\u4e0a\u56fe\u7684\/dev\/vde\u4e3a\u4f8b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Disk \/dev\/vde: 32.2 GB, 32212254720 bytes, 62914560 sectors #\u6247\u533a\u4e2a\u6570\nUnits = sectors of 1 * 512 = 512 bytes  #\u67f1\u9762\u5355\u5143\u5927\u5c0f \uff08\u4e00\u4e2a\u6247\u533a\u4f5c\u4e3a\u4e00\u4e2a\u67f1\u9762\uff09\nSector size (logical\/physical): 512 bytes \/ 512 bytes\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\r<\/pre>\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=\"\">a. \u603b\u78c1\u76d8\u5927\u5c0f\uff1a 32212254720 bytes(B) \/ 1024 = 104857600 KB \/ 1024 = 102400 MB \/ 1024 = 30 GB\n\nb. \u6bcf\u4e2a\u67f1\u9762\u7684\u5927\u5c0fUnits\uff1a 512 bytes \uff08\u8fd9\u91cc\u4e00\u4e2a\u67f1\u9762\u4e00\u4e2a\u6247\u533a\uff09\n\nc. \u6247\u533a\u4e2a\u6570\u662fsectors\uff1a 32212254720 bytes \/ 512 bytes = 62914560<\/pre>\n\n\n\n<p><strong>\uff082\uff09\u5728\u6307\u5b9a\u7684\u786c\u76d8\uff08\u4f8b\uff1a\/dev\/vda\uff09\u4e0a\u521b\u5efa\u5206\u533a<\/strong>\uff0c\u547d\u4ee4\u4e3a\uff1afdisk \/dev\/vda1 \uff0c \u6839\u636e\u63d0\u793a\u8fdb\u884c\u4e0b\u4e00\u6b65\u64cd\u4f5c\uff0c\u5982\uff1a\u67e5\u770b\u5e2e\u52a9\uff08h\uff09\uff0c\u65b0\u5efa\u5206\u533a\uff08n\uff09\uff0c\u5220\u9664\u5206\u533a\uff08d\uff09\uff0c\u67e5\u770b\u5206\u533a\u60c5\u51b5\uff08p\uff09\uff0c\u5206\u533a\u6210\u529f\u540e\uff0c\u5199\u5206\u533a\u8868\u5e76\u9000\u51fa\uff08w\uff09<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"646\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-73-1024x646.png\" alt=\"\" class=\"wp-image-14009\" style=\"width:534px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-73-1024x646.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-73-300x189.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-73-768x485.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-73-830x524.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-73-230x145.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-73-350x221.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-73-480x303.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-73.png 1322w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p><strong>2\u3001\u683c\u5f0f\u5316\u5206\u533a\uff08mkfs.ext4\uff09<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u683c\u5f0f\u5316\u5206\u533a\u7684\u662f\u6307\u5c06\u5206\u533a\u683c\u5f0f\u5316\u6210\u4e0d\u540c\u7684\u6587\u4ef6\u7cfb\u7edf\u3002<br>\u4ec0\u4e48\u662f\u6587\u4ef6\u7cfb\u7edf\uff1f\u6587\u4ef6\u7cfb\u7edf\u6307\u64cd\u4f5c\u7cfb\u7edf\u7528\u4e8e\u660e\u786e\u5b58\u50a8\u8bbe\u5907\u6216\u5206\u533a\u4e0a\u7684\u6587\u4ef6\u7684\u65b9\u6cd5\u548c\u6570\u636e\u7ed3\u6784\uff1a\u5373\u5728\u5b58\u50a8\u8bbe\u5907\u4e0a\u7ec4\u7ec7\u6587\u4ef6\u7684\u65b9\u6cd5\u3002\u5c31\u597d\u6bd4\u4e00\u4e2a\u6559\u5ba4\uff0c\u540c\u5b66\u4eec\u7684\u5750\u7684\u4f4d\u7f6e\u603b\u662f\u4e0e\u684c\u5b50\u51f3\u5b50\u6392\u5217\u7684\u65b9\u5f0f\u6709\u5173\u7cfb\u3002\u684c\u5b50\uff0c\u51f3\u5b50\u600e\u4e48\u6446\u653e\uff0c\u5c31\u5bfc\u81f4\u4e86\u540c\u5b66\u5750\u7684\u4f4d\u7f6e\u5728\u54ea\u91cc\u3002\u6587\u4ef6\u7cfb\u7edf\u5b58\u653e\u6570\u636e\u4e5f\u662f\u8fd9\u4e48\u4e2a\u9053\u7406\u3002Linux\u4e0b\u7684\u6587\u4ef6\u7c7b\u578b\u6709ext2\u3001ext3\u3001ext4\u3001xfs\u7b49\u7b49\u3002<br>\u5047\u8bbe\u6211\u4eec\u8981\u5bf9\/dev\/vbd\u8fdb\u884c\u683c\u5f0f\u5316(\u6ce8\uff1a\u6b64\u5904\/dev\/vbd\u6ca1\u6709\u5206\u533a\uff0c\u5206\u533a\u662f\u975e\u5fc5\u987b\u7684\uff09\uff0c\u6211\u4eec\u9700\u8981\u4f7f\u7528\u547d\u4ee4\uff1a<\/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=\"\">mkfs.ext4\u3000\/dev\/vbd\n\u610f\u601d\u662f\u683c\u5f0f\u5316\/dev\/vbd\uff0c\u683c\u5f0f\u5316\u7c7b\u578b\u4e3a.ext4, mkfs.ext4\u652f\u6301\u4e00\u4e9b\u53c2\u6570\uff0c\u5177\u4f53\u7528\u6cd5\u53ef\u53c2\u8003\uff1ahttps:\/\/blog.csdn.net\/tsz0000\/article\/details\/85719204<\/pre>\n\n\n\n<p>\u6bd4\u5982\u6211\u4eec\u9879\u76ee\u4e2d\u7528\u5230\u7684\uff1a<\/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=\"\">#mkfs.ext4 -F \/dev\/vdb -m 0 -q -L gpt -J size=4096 -T largefile -i 16384<\/pre>\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=\"\">\u5176\u4e2d\uff1a\n\n-F  \u5f3a\u5236\u683c\u5f0f\u5316\uff0c\u6709\u4e9bmkfs\u5de5\u5177\u7248\u672c\u683c\u5f0f\u5316\u65f6\u68c0\u6d4b\u5230\u5df2\u6709\u6587\u4ef6\u7cfb\u7edf\u6570\u636e\u4f1a\u63d0\u793a\u7ee7\u7eed\u8fdb\u884c\u7684\u9009\u62e9\u3002\n\n-m reserved-blocks-percentage\u3002\u6307\u5b9a\u9884\u7559block\u603b\u4e2a\u6570\u7684\u767e\u5206\u6bd4\u3002\n\n-q    \u6267\u884c\u65f6\u4e0d\u663e\u793a\u4efb\u4f55\u4fe1\u606f\u3002\n\n-L volume-label\u3002 \u8bbe\u7f6e\u6587\u4ef6\u7684\u5377\u6807\u3002\u8fd8\u53ef\u4ee5\u4f7f\u7528e2label\u547d\u4ee4\u8fdb\u884c\u8bbe\u7f6e\u5377\u6807\uff1ae2label \/dev\/sdb1 test\u3002\u90a3\u4e48\u600e\u4e48\u67e5\u770b\u5377\u6807\u662f\u5426\u751f\u6548\uff1fe2label \/dev\/vdd\uff1f\n\n-J journal-options\u3002size=journal-size    \u6307\u5b9a\u65e5\u5fd7\u6587\u4ef6\u5927\u5c0f\uff0c\u9ed8\u8ba4\u5355\u4f4dMB\uff0c\u6b64\u5904\u8868\u793asize=4096 \u8868\u793a\u65e5\u5fd7\u6587\u4ef6\u5927\u5c0f\u4e3a4G\u3002\u5982\u679c\u8fd9\u4e2a\u503c\u5927\u4e8e\u78c1\u76d8\u5927\u5c0f\uff0c\u5728\u6267\u884cmkfs.ext4\u65f6\uff0c\u5219\u4f1a\u62a5\u9519\uff1aJournal size too big for filesystem.\n\n-T fs_types\u3002largefile    \u5b58\u50a8\u5927\u6587\u4ef6\uff0c\u6587\u4ef6\u5355\u4f4d1MB\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0bblocks\u662finodes\u76844\u500d\uff0c\u5b58\u50a8\u57fa\u672c\u5355\u4f4d\u662fblock 4k\uff0c\u610f\u601d\u5c31\u662f\u5168\u90e8\u5b58\u50a816K\u5355\u4f4d\u6587\u4ef6inodes\u53ef\u4ee5\u6700\u5927\u9650\u5ea6\u628ablocks\u7528\u5b8c\u3002\n\n-i bytes-per-inode\u3002 \u6307\u5b9a\"\u5b57\u8282\/inode\"\u7684\u6bd4\u4f8b  \u3002<\/pre>\n\n\n\n<p>\u6211\u4eec\u683c\u5f0f\u5316\u597d\u7684\/dev\/vdd\u80fd\u7528\u5417\uff1f\u7b54\u6848\u662f\u4e0d\u80fd\uff0c\u8981\u60f3\u7528\u8fd9\u4e2a\u78c1\u76d8\u6211\u4eec\u8fd8\u9700\u8981\u6302\u8f7d\u3002<\/p>\n\n\n\n<p><strong>3\u3001\u6302\u8f7d<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>linux\u7cfb\u7edf\u7684\u5b97\u65e8\u662f\u4e00\u5207\u7686\u6587\u4ef6\u3002\u6bd4\u5982\u6211\u4eec\u60f3\u8981\u6211\u4eec\u7684\u6587\u4ef6\u5b58\u50a8\u5728\/disk1\u76ee\u5f55\u4e0b\uff0c\/disk1\u5c31\u662f\u6211\u4eec\u7684\u6839\uff0c\u90a3\u4e48\u6211\u4eec\u8981\u5728\/dev\/vdd\u4e2d\u5199\u5165\u6587\u4ef6\u65f6\uff0c\u9996\u5148\u8981\/disk1\u548c\/dev\/vdd\u5efa\u7acb\u8054\u7cfb\uff0c\u8fd9\u4e2a\u5c31\u662f\u6302\u8f7d\u3002\u8fd9\u6837\uff0c\u4e4b\u540e\u6211\u4eec\u8bbf\u95ee\/disk1\u8fd9\u4e2a\u76ee\u5f55\u65f6\uff0c\u6211\u4eec\u5b9e\u9645\u4e0a\u8bbf\u95ee\u7684\u662f\/dev\/vdd\u8fd9\u4e2a\u8bbe\u5907\u6587\u4ef6\u3002\u8fd9\u4e2a\u76ee\u5f55\u76f8\u5f53\u4e8e\/dev\/vdd\u7684\u5165\u53e3\uff0c\u6709\u4e86\u8fd9\u4e2a\u5165\u53e3\u624d\u53ef\u4ee5\u8bbf\u95ee\u78c1\u76d8\u3002z\u5c06\u6307\u5b9a\u7684\u4e00\u4e2a\u76ee\u5f55\u4f5c\u4e3a\u6302\u8f7d\u70b9\u76ee\u5f55\u65f6\uff0c\u5982\u679c\u6302\u8f7d\u70b9\u7684\u76ee\u5f55\u6709\u6587\u4ef6\uff0c\u90a3\u4e48\u6587\u4ef6\u4f1a\u88ab\u9690\u85cf\u3002\u56e0\u6b64\u5f53\u6211\u4eec\u9700\u8981\u6302\u8f7d\u76ee\u5f55\u65f6\uff0c\u6700\u597d\u65b0\u5efa\u4e00\u4e2a\u7a7a\u6587\u4ef6\u5939\u6765\u4f5c\u4e3a\u6302\u5728\u70b9\u76ee\u5f55\u3002<\/p>\n\n\n\n<p>\u6bd4\u5982\u6b64\u5904\u547d\u4ee4\u5e94\u4e3a\uff1a<\/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=\"\">mount \/dev\/vdd \/disk1\u3000<\/pre>\n\n\n\n<p>mount\u547d\u4ee4\u8fd8\u652f\u6301\u4e00\u4e9b\u53c2\u6570\uff0c\u5177\u4f53\u53ef\u53c2\u8003:<a href=\"https:\/\/blog.csdn.net\/keepingstudying\/article\/details\/50111299\">EXT4\u6587\u4ef6\u7cfb\u7edf mount \u53c2\u6570\u7ffb\u8bd1<\/a> \u3002<\/p>\n\n\n\n<p>\u6211\u9879\u76ee\u4e2d\u7684\u7528\u6cd5\uff1a<\/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=\"\">mount -o rw,nodiratime,noatime,data=writeback,nobarrier,lazytime,delalloc \/dev\/vdd \/disk1<\/pre>\n\n\n\n<p>\u6267\u884c\u5b8c\u4e4b\u540e\uff0c\u600e\u4e48\u600e\u6837\u67e5\u770b\u5230\u5f53\u524d\u7cfb\u7edf\u4e0a\u6240\u6709\u78c1\u76d8\u7684\u6302\u8f7d\u4fe1\u606f\uff1f<\/p>\n\n\n\n<p><strong>\uff081\uff09mount\u547d\u4ee4\u3002<\/strong><\/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=\"\">#mount|grep vd\n\/dev\/vda1 on \/ type ext4 (rw,relatime,data=ordered)\n\/dev\/vda1 on \/home\/plugins type ext4 (rw,relatime,data=ordered)\n\/dev\/vda1 on \/home\/overlay type ext4 (rw,relatime,data=ordered)\n\/dev\/vde on \/disk1 type ext4 (rw,noatime,nodiratime,lazytime,nobarrier,data=writeback)<\/pre>\n\n\n\n<p><strong>\uff082\uff09df -h\u547d\u4ee4<\/strong>\u3002\u4fe1\u606f\u663e\u793a\u7684\u5185\u5bb9\u5305\u62ec\u6587\u4ef6\u7684\u5927\u5c0f\uff0c\u5df2\u7ecf\u4f7f\u7528\u7684\u5206\u533a\u5927\u5c0f\uff0c\u603b\u5171\u53ef\u7528\u5206\u533a\u7684\u5927\u5c0f\uff0c\u4f7f\u7528\u7387\uff0c\u4ee5\u53ca\u6302\u8f7d\u7684\u4f4d\u7f6e\uff0c\u662f\u6bd4\u8f83\u5e38\u7528\u7684\u7528\u6cd5\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=\"\">#df -h|grep vd\n\/dev\/vda1        59G   15G   42G  26% \/\n\/dev\/vde         26G  334M   26G   2% \/disk1<\/pre>\n\n\n\n<p>\u53e6\u5916blkid\u547d\u4ee4\u53ef\u4ee5\u67e5\u770b\u5bf9\u5e94\u5206\u533a\u7684UUID\uff08\u7f16\u53f7\uff09\u3002UUID\u552f\u4e00\u6807\u8bc6\u6bcf\u4e00\u4e2a\u5206\u533a\uff0c\u9632\u6b62\u9519\u8bef\u7684\u6302\u8f7d\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u8fd8\u4f1a\u663e\u793a\u5206\u533a\u7684\u7c7b\u578b\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=\"\">#blkid\n\/dev\/vde: LABEL=\"gpt\" UUID=\"c779e832-6dde-4d11-8e44-7451119dda9d\" TYPE=\"ext4\" <\/pre>\n\n\n\n<p>\u4ee5\u4e0a\uff0c\u6211\u4eec\u8fd9\u79cd\u6302\u8f7d\u65b9\u5f0f\u4e3a\u4e34\u65f6\u6302\u8f7d\uff0c\u56e0\u6b64\u5f53\u6211\u4eec\u91cd\u542f\u4e86Linux\u540e\uff0c\u8fd9\u79cd\u6302\u8f7d\u4f1a\u5931\u6548\u7684\u3002\u600e\u4e48\u505a\u5230\u6c38\u4e45\u6302\u8f7d\u5462\uff1f<\/p>\n\n\n\n<p>\u65b9\u6cd5\uff1a<\/p>\n\n\n\n<p>\u2460\u4f7f\u7528vim\u7f16\u8f91 \/etc\/fstab\u3000\uff0c\u5728\u547d\u4ee4\u884c\u76f4\u63a5\u8f93\u5165vim \/etc\/fstab \u5c31\u53ef\u4ee5\u7f16\u8f91\uff0c\u5b9e\u73b0\u5f00\u673a\u81ea\u52a8\u6302\u8f7d\u3002<\/p>\n\n\n\n<p>\u2461\u5728\u5c06\u5149\u6807\u79fb\u5230UUID\u884c\uff0c\u5728\u547d\u4ee4\u6a21\u5f0f\u4e0b\u6309o\u952e\u8fdb\u5165\u63d2\u5165\u6a21\u5f0f\uff0c\u540c\u65f6\u6362\u884c\u3002\u5c06\/dev\/vdd\u7684UUID\u7f16\u53f7\uff0c\u7c98\u8d34\u8fdb\u6765\u3002\/disk1\u6302\u8f7d\u70b9\u76ee\u5f55\uff0cext4\u6587\u4ef6\u7cfb\u7edf\u7c7b\u578b\uff0c\u540e\u9762\u7684rw,nodiratime,noatime,data=writeback,nobarrier,lazytime,delalloc\uff0c\u662f\u6267\u884cmount\u547d\u4ee4\u65f6\uff0c-o\u540e\u9762\u7684\u53c2\u6570\u3002\u7f16\u5199\u5b8c\u6210\u540e\u6587\u4ef6\u7684\u5185\u5bb9\u5982\u4e0b\uff1a<\/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=\"\">#vi \/etc\/fstab \n# \/etc\/fstab\n# Created by anaconda on Fri Jun  2 08:12:44 2017\n#\n# Accessible filesystems, by reference, are maintained under '\/dev\/disk'\n# See man pages fstab(5), findfs(8), mount(8) and\/or blkid(8) for more info\n#\nUUID=0559cb97-8399-4656-a928-2d2211064424 \/                       ext4    defaults        1 1\n\/swapfile     none    swap    sw    0   0\nUUID=c779e832-6dde-4d11-8e44-7451119dda9d \/disk1     ext4   rw,nodiratime,noatime,data=writeback,nobarrier,lazytime,delalloc<\/pre>\n\n\n\n<p><strong>\u603b\u7ed3<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>\u5f53\u6211\u4eec\u5b8c\u6210\u4e0a\u9762\u7684\u64cd\u4f5c\u540e\uff0c\/disk1\u76ee\u5f55\u4e0b\u591a\u51fa\u4e86\u4e00\u4e2a\u76ee\u5f55lost+found\u3002\u90a3\u4e48\u8fd9\u4e2a\u76ee\u5f55\u662f\u505a\u4ec0\u4e48\u7684\u5462\uff1f<br>lost+found\uff1a\u987e\u540d\u601d\u4e49\uff0c\u4e22\u5931\u7136\u540e\u627e\u5230\u3002\u5b83\u662f\u4e00\u4e2a\u7279\u6b8a\u7684\u76ee\u5f55\uff0c\u7528\u6765\u5b58\u653e\u6587\u4ef6\u7cfb\u7edf\u9519\u8bef\u5bfc\u81f4\u6587\u4ef6\u4e22\u5931\u7684\u76ee\u5f55\uff0c\u56e0\u6b64\u6211\u4eec\u7684\u4e00\u4e9b\u6570\u636e\u662f\u53ef\u4ee5\u901a\u8fc7\u5b83\u6765\u627e\u5230\u7684\u3002\u8fd9\u4e2a\u76ee\u5f55\u662f\u5728\u5206\u533a\u7684\u6839\u76ee\u5f55\u4e0a\uff0c\u5c31\u662f\u6211\u4eec\u6302\u8f7d\u7684\u5206\u533a\u3002<\/p>\n\n\n\n<p>\u76f8\u5173linux\u547d\u4ee4\u603b\u7ed3\uff1a<\/p>\n\n\n\n<p><br><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"876\" height=\"790\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-74.png\" alt=\"\" class=\"wp-image-14010\" style=\"width:384px;height:auto\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-74.png 876w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-74-300x271.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-74-768x693.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-74-830x749.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-74-230x207.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-74-350x316.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2024\/03\/image-74-480x433.png 480w\" sizes=\"(max-width: 876px) 100vw, 876px\" \/><\/figure><\/div>\n\n\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/blog.csdn.net\/a1766855068\/article\/details\/84942745\">https:\/\/blog.csdn.net\/a1766855068\/article\/details\/84942745<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u4eec\u4f7f\u7528\u4e00\u4e2alinux\u78c1\u76d8\u5927\u6982\u53ef\u4ee5\u5206\u4e3a\u4e09\u6b65\uff1a 1\u3001\u6dfb\u52a0\u786c\u76d8\uff0c\u65b0\u5efa\u5206\u533a\uff08fisk\uff09 fdisk \u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/14005"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14005"}],"version-history":[{"count":3,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/14005\/revisions"}],"predecessor-version":[{"id":14012,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/14005\/revisions\/14012"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}