{"id":52918,"date":"2023-08-28T11:16:46","date_gmt":"2023-08-28T03:16:46","guid":{"rendered":"http:\/\/www.idc.net\/help\/52918\/"},"modified":"2023-08-28T11:16:46","modified_gmt":"2023-08-28T03:16:46","slug":"linux%e4%b8%8b%e5%a6%82%e4%bd%95%e6%9f%a5%e7%9c%8b%e7%a1%ac%e7%9b%98%e5%88%86%e5%8c%ba%e4%bf%a1%e6%81%af%ef%bc%88linux-%e5%a6%82%e4%bd%95%e6%9f%a5%e7%9c%8b%e5%88%86%e5%8c%ba%ef%bc%89","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/52918\/","title":{"rendered":"Linux\u4e0b\u5982\u4f55\u67e5\u770b\u786c\u76d8\u5206\u533a\u4fe1\u606f\uff08linux \u5982\u4f55\u67e5\u770b\u5206\u533a\uff09"},"content":{"rendered":"<p>\u5728Linux\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u786c\u4ef6\u6027\u80fd\u68c0\u6d4b\u5de5\u5177\u6765\u67e5\u770b\u786c\u76d8\u5206\u533a\u4fe1\u606f\uff0c\u8fd9\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u64cd\u4f5c\u3002\u672c\u6587\u5c06\u4ecb\u7ecdLinux \u4e0b\u5982\u4f55\u67e5\u770b\u786c\u76d8\u5206\u533a\u4fe1\u606f\uff0c\u4e3b\u8981\u6709\u4e24\u79cd\u65b9\u6cd5\uff1afdisk\u548cdf\u547d\u4ee4\u3002<\/p>\n<\/p>\n<p>## \u4e00\u3001fdisk\u547d\u4ee4<\/p>\n<\/p>\n<p>fdisk \u547d\u4ee4\u4e3b\u8981\u7528\u4e8e\u521b\u5efa\u3001\u5220\u9664\u3001\u4fee\u6539\u3001\u7f16\u8f91\u78c1\u76d8\u5206\u533a\uff0cfdisk\u547d\u4ee4\u53ef\u4ee5\u67e5\u770b\u7269\u7406\u78c1\u76d8\u7684\u6240\u6709\u5206\u533a\u4fe1\u606f\u3002\u8981\u67e5\u770b\u786c\u76d8\u5206\u533a\u4fe1\u606f\uff0c\u9700\u8981\u5148\u7528`fdisk -l`\u547d\u4ee4\u67e5\u770b\u6240\u6709\u78c1\u76d8\u5206\u533a\uff1a <\/p>\n<\/p>\n<p>\u201c`sh<\/p>\n<p>[root@localhost]# fdisk -l<\/p>\n<p>Disk \/dev\/sda: 8589 MB, 8589934592 bytes<\/p>\n<p>255 heads, 63 sectors\/track, 1044 cylinders<\/p>\n<p>Units = cylinders of 16065 * 512 = 8225280 bytes<\/p>\n<\/p>\n<p>Device Boot Start End Blocks Id System<\/p>\n<p>\/dev\/sda1 * 1 13 104391 83 Linux<\/p>\n<p>\/dev\/sda2 14 1044 8271150 82 Linux swap \/ Solaris<\/p>\n<\/p>\n<p>Disk \/dev\/sdb: 8589 MB, 8589934592 bytes<\/p>\n<p>255 heads, 63 sectors\/track, 1044 cylinders<\/p>\n<p>Units = cylinders of 16065 * 512 = 8225280 bytes<\/p>\n<\/p>\n<p>Device Boot Start End Blocks Id System<\/p>\n<p>\/dev\/sdb1 * 1 13 104391 83 Linux<\/p>\n<p>\/dev\/sdb2 14 1044 8271150 82 Linux swap \/ Solaris<\/p>\n<pre><br>\u4e0a\u9762\u7684\u7ed3\u679c\u8868\u793a\uff0c\u786c\u76d8\u6709\u4e24\u4e2a\u5206\u533a\uff0c\u5206\u522b\u662f\u201c\/dev\/sda1\u201d\u548c\u201c\/dev\/sdb1\u201d\uff1b\u5bf9\u5e94\u7684\u8d77\u59cb\u6247\u533a\u3001\u7ed3\u675f\u6247\u533a\u3001\u6570\u636e\u5757\u5927\u5c0f\u3001\u7cfb\u7edf\u683c\u5f0f\u7b49\u4fe1\u606f\u4e5f\u663e\u793a\u51fa\u6765\u4e86\u3002<br><br>## \u4e8c\u3001 df\u547d\u4ee4<br><br>df \u547d\u4ee4\u7528\u6765\u67e5\u770b\u6302\u8f7d\u7684\u6587\u4ef6\u7cfb\u7edf\u7684\u5360\u7528\u78c1\u76d8\u7a7a\u95f4\u5927\u5c0f\u3002\u5f53\u628a\u786c\u76d8\u5206\u533a\u6302\u8f7d\u5230Linux\u6587\u4ef6\u7cfb\u7edf\u6210\u529f\u540e\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528df\u547d\u4ee4\u67e5\u770b\u786c\u76d8\u5206\u533a\u4f7f\u7528\u60c5\u51b5\uff1a <br><br>```sh<br>[root@localhost]# df -h<br>Filesystem            Size  Used Avail Use% Mounted on<br>\/dev\/sda1             8.2G  512M  7.3G   7% \/<br>tmpfs                 7.8G     0  7.8G   0% \/dev\/shm<br>\/dev\/sda2            74.9M   14M   63M  19% \/boot<br><\/pre>\n<\/p>\n<p>\u4e0a\u9762\u7684\u7ed3\u679c\u8868\u793a\uff0c\u5df2\u5c06\u78c1\u76d8\u5206\u533a\u6302\u8f7d\u5230\/dev\/sda1\u3001\/dev\/sda2\uff0c\u5176\u4e2d\/dev\/sda1\u6302\u8f7d\u5230\u6839\u5206\u533a\uff0c\/dev\/sda2\u6302\u8f7d\u5230\/boot\u5206\u533a\uff0c\u5e76\u663e\u793a\u78c1\u76d8\u5206\u533a\u4f7f\u7528\u72b6\u51b5\uff0c\u5373\u5df2\u4f7f\u7528\u4e86512M\u7a7a\u95f4\uff0c\u8fd8\u53ef\u75287.3G\u3002<\/p>\n<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662flinux\u4e0b\u67e5\u770b\u786c\u76d8\u5206\u533a\u4fe1\u606f\u7684\u4e24\u79cd\u65b9\u6cd5\uff0c\u5373\u4f7f\u7528`fdisk -l`\u548c`df`\u547d\u4ee4\u3002\u672c\u6587\u7b80\u5355\u4ecb\u7ecd\u4e86\u8fd9\u4e24\u79cd\u67e5\u770b\u786c\u76d8\u5206\u533a\u4fe1\u606f\u7684\u65b9\u5f0f\uff0c\u4f9b\u5927\u5bb6\u53c2\u8003\u3002\u540c\u65f6\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528`parted`\u7b49\u786c\u4ef6\u6027\u80fd\u68c0\u6d4b\u5de5\u5177\u6765\u67e5\u770b\u786c\u76d8\u5206\u533a\u4fe1\u606f\uff0c\u8bfb\u8005\u6709\u5174\u8da3\u7684\u53ef\u4ee5\u901a\u8fc7\u81ea\u5df1\u63a2\u7d22\u5b66\u4e60\u3002<\/p>\n<p><a href=\"http:https:\/\/idc.net\/\">\u9999\u6e2f\u670d\u52a1\u5668<\/a>\u9996\u9009\u540e\u6d6a\u4e91\uff0c2H2G\u9996\u670810\u5143\u5f00\u901a\u3002<br \/>\u540e\u6d6a\u4e91\uff08www.IDC.Net\uff09\u63d0\u4f9b\u7b80\u5355\u597d\u7528\uff0c\u4ef7\u683c\u539a\u9053\u7684\u9999\u6e2f\/\u7f8e\u56fd\u4e91\u670d\u52a1\u5668\u548c\u72ec\u7acb\u670d\u52a1\u5668\u3002IDC+ISP+ICP\u8d44\u8d28\u3002ARIN\u548cAPNIC\u4f1a\u5458\u3002\u6210\u719f\u6280\u672f\u56e2\u961f15\u5e74\u884c\u4e1a\u7ecf\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728Linux\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u786c\u4ef6\u6027\u80fd\u68c0\u6d4b\u5de5\u5177\u6765\u67e5\u770b\u786c\u76d8\u5206\u533a\u4fe1\u606f\uff0c\u8fd9\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u64cd\u4f5c\u3002\u672c\u6587\u5c06\u4ecb\u7ecdLinux  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-52918","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/52918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=52918"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/52918\/revisions"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=52918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=52918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=52918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}