{"id":128,"date":"2024-07-23T15:12:47","date_gmt":"2024-07-23T07:12:47","guid":{"rendered":"http:\/\/znl.pub\/?p=128"},"modified":"2024-07-23T15:12:47","modified_gmt":"2024-07-23T07:12:47","slug":"%e5%a6%82%e4%bd%95%e6%9f%a5%e7%9c%8blinux%e7%b3%bb%e7%bb%9f%e5%ae%89%e8%a3%85%e6%97%b6%e9%97%b4%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/znl.pub\/?p=128","title":{"rendered":"\u5982\u4f55\u67e5\u770bLinux\u7cfb\u7edf\u5b89\u88c5\u65f6\u95f4\uff1f"},"content":{"rendered":"<h1>\u65b9\u68481\uff0c\u67e5\u770b\u6587\u4ef6\u7cfb\u7edf\u7684\u521b\u5efa\u65f6\u95f4\u3002<\/h1>\n<p>\u6587\u4ef6\u7cfb\u7edf\u7684\u521b\u5efa\u65f6\u95f4\u901a\u5e38\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b89\u88c5\u65f6\u95f4\u76f8\u5bf9\u5e94\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528dumpe2fs\u547d\u4ee4\uff08\u9488\u5bf9ext2\/ext3\/ext4\u6587\u4ef6\u7cfb\u7edf\uff09\u6765\u67e5\u770b\u6587\u4ef6\u7cfb\u7edf\u7684\u521b\u5efa\u65f6\u95f4\u3002<br \/>\n\u4f7f\u7528<code>dumpe2fs -h \/dev\/sdaX<\/code>\u547d\u4ee4\uff08\u8bf7\u5c06\/dev\/sdaX\u66ff\u6362\u4e3a\u4f60\u7684Linux\u5206\u533a\u8bbe\u5907\uff09\u5e76\u67e5\u627e\u201cFilesystem created\u201d\u884c\u3002<br \/>\n\u6211\u4eec\u53ef\u4ee5\u5148\u4f7f\u7528lsblk\u67e5\u770b\u4e00\u4e0b\u6839\u5206\u7fa4\u6302\u8f7d\u5728\u54ea\u4e2a\u8bbe\u5907\u4e0a\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u6211\u7684\u6302\u8f7d\u5728vda1\u4e0a\uff0c\u8bbe\u5907\u7684\u8bbf\u95ee\u8def\u5f84\u5c31\u662f\u5728\u524d\u9762\u52a0\u4e0a\/dev\/\uff0c\u4e5f\u5c31\u662f\/dev\/vda1\u3002<br \/>\n\u7136\u540e <code>dumpe2fs \/dev\/sda1 | grep &quot;Filesystem&quot;<\/code> \u5c31\u884c\uff0c\u8fd9\u662f\u6700\u7b80\u6307\u4ee4\uff0c\u4e0b\u56fe\u4e2d\u4f7f\u7528\u7684\u662f<br \/>\n<code>dumpe2fs -h \/dev\/sda1 | grep &quot;Filesystem&quot;<\/code>\uff0c\u52a0\u4e0d\u52a0-h\u90fd\u5bf9Filesystem created\u8fd9\u884c\u6ca1\u6709\u5f71\u54cd\u7684\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/znl.pub\/wp-content\/uploads\/2024\/07\/\u67e5\u770b\u7cfb\u7edf\u5b89\u88c5\u65f6\u95f4-dumpe2fs.png\" alt=\"\" \/><br \/>\n\u8fd9\u4e2a\u65f6\u95f4\u5f80\u5f80\u65e9\u4e8e\u7cfb\u7edf\u7b2c\u4e00\u6b21\u542f\u52a8\u7684\u65f6\u95f4\uff0c\u8fd9\u4e2a\u65f6\u95f4\u662f\u7cfb\u7edf\u5728\u88c5\u673a\u8fc7\u7a0b\u4e2d\u521b\u5efa\u5206\u533a\u4ea7\u751f\u7684\u65f6\u95f4\u3002<\/p>\n<h1>\u65b9\u68482\uff0c\u67e5\u770b\u7cfb\u7edf\u7b2c\u4e00\u6b21\u542f\u52a8\u7684\u65f6\u95f4<\/h1>\n<pre><code class=\"language-bash\">[root@znl.pub log]# journalctl --list-boots\n-2 ccf2e049d1af44079eb26e5e333103f6 Thu 2024-02-22 15:27:47 CST\u2014Thu 2024-02-22 15:27:48 CST\n-1 e8761838fc85470ca26c1d2169027d73 Tue 2024-07-09 16:04:10 CST\u2014Tue 2024-07-09 16:09:17 CST\n 0 3b3369523eb040cb8be5b07137d6b8e2 Tue 2024-07-09 16:09:29 CST\u2014Tue 2024-07-23 15:01:01 CST<\/code><\/pre>\n<h1>\u65b9\u68483\uff0c\u67e5\u770blast\u6307\u4ee4\u7ed3\u679c\u7684\u6700\u540e\u4e00\u884c\u8f93\u51fa<\/h1>\n<p>last\u547d\u4ee4\u7684\u6700\u540e\u4e00\u884c\uff0c\u5b9e\u9645\u4e0a\u53ef\u4ee5\u4f5c\u4e3a\u7cfb\u7edf\u7b2c\u4e00\u6b21\u4f7f\u7528\u65f6\u7684\u53c2\u8003\uff0c\u5b83\u662f\u8fd9\u4e48\u5199\u7684\uff1a<br \/>\n<code>wtmp begins Thu Feb 22 15:27:47 2024<\/code><br \/>\n<img decoding=\"async\" src=\"http:\/\/znl.pub\/wp-content\/uploads\/2024\/07\/\u67e5\u770b\u7cfb\u7edf\u5b89\u88c5\u65f6\u95f4-last.png\" alt=\"\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65b9\u68481\uff0c\u67e5\u770b\u6587\u4ef6\u7cfb\u7edf\u7684\u521b\u5efa\u65f6\u95f4\u3002 \u6587\u4ef6\u7cfb\u7edf\u7684\u521b\u5efa\u65f6\u95f4\u901a\u5e38\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b89\u88c5\u65f6\u95f4\u76f8\u5bf9\u5e94\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528dumpe2fs&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,12],"tags":[],"class_list":["post-128","post","type-post","status-publish","format-standard","hentry","category-linux","category-linux-use"],"_links":{"self":[{"href":"https:\/\/znl.pub\/index.php?rest_route=\/wp\/v2\/posts\/128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/znl.pub\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/znl.pub\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/znl.pub\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/znl.pub\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=128"}],"version-history":[{"count":1,"href":"https:\/\/znl.pub\/index.php?rest_route=\/wp\/v2\/posts\/128\/revisions"}],"predecessor-version":[{"id":131,"href":"https:\/\/znl.pub\/index.php?rest_route=\/wp\/v2\/posts\/128\/revisions\/131"}],"wp:attachment":[{"href":"https:\/\/znl.pub\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/znl.pub\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/znl.pub\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}