df\u662f\u8bfb\u53d6\u6bcf\u4e2a\u5206\u533a\u7684superblock\u6765\u83b7\u53d6\u7a7a\u95f2\u6570\u636e\u5757\u3001\u5df2\u4f7f\u7528\u6570\u636e\u5757\uff0c\u4ece\u800c\u8ba1\u7b97\u51fa\u7a7a\u95f2\u7a7a\u95f4\u548c\u5df2\u4f7f\u7528\u7a7a\u95f4\uff0c\u56e0\u6b64df\u7edf\u8ba1\u7684\u901f\u5ea6\u6781\u5feb(superblock\u624d\u5360\u75281024\u5b57\u8282)\u3002
\n\u5f53\u67d0\u4e2a\u6587\u4ef6\u7cfb\u7edf\u4e0b\u6302\u8f7d\u4e86\u5176\u4ed6\u5206\u533a\uff0cdf\u4e0d\u4f1a\u628a\u8fd9\u4e2a\u5206\u533a\u4e5f\u7edf\u8ba1\u8fdb\u53bb\u3002\u8fd9\u5f88\u5bb9\u6613\u7406\u89e3\uff0c\u56e0\u4e3adf\u8bfb\u53d6\u7684\u662f\u5404\u81ea\u5206\u533a\u7684superblock\uff0c\u5373\u4f7f\u5206\u533a1\u6302\u8f7d\u5728\u5206\u533a0\u7684\u76ee\u5f55\u4e0b\uff0cdf\u7edf\u8ba1\u5206\u533a0\u7684\u65f6\u5019\uff0c\u4e5f\u53ea\u80fd\u8bfb\u53d6\u5206\u533a0\u7684superblock\u3002
\n\u4f8b\u5982\uff0c\u4e0b\u9762\u7684\/mnt\u3001\/boot\u90fd\u6ca1\u6709\u7edf\u8ba1\u5728\"\/\"\u4e2d\u3002<\/p>\n
[root@xuexi\u00a0~]#\u00a0df\u00a0-hT\r\nFilesystem\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Type\u00a0\u00a0\u00a0Size\u00a0\u00a0Used\u00a0Avail\u00a0Use%\u00a0Mounted\u00a0on\r\n\/dev\/sda2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ext4\u00a0\u00a0\u00a0\u00a018G\u00a0\u00a01.7G\u00a0\u00a0\u00a015G\u00a0\u00a011%\u00a0\/\r\ntmpfs\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0tmpfs\u00a0\u00a0491M\u00a0\u00a0\u00a0\u00a0\u00a00\u00a0\u00a0491M\u00a0\u00a0\u00a00%\u00a0\/dev\/shm\r\n\/dev\/sda1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ext4\u00a0\u00a0\u00a0239M\u00a0\u00a0\u00a068M\u00a0\u00a0159M\u00a0\u00a030%\u00a0\/boot\r\n\/\/192.168.0.124\/win\u00a0cifs\u00a0\u00a0\u00a0381G\u00a0\u00a0243G\u00a0\u00a0138G\u00a0\u00a064%\u00a0\/mnt\r\n<\/pre>\n\u7531\u4e8edf\u6bcf\u6b21\u7edf\u8ba1\u90fd\u662f\u8bfb\u53d6superblock\uff0c\u6240\u4ee5df\u5bf9\u6587\u4ef6\u7cfb\u7edf\u4e2d\u7684\u67d0\u4e2a\u6587\u4ef6\u8fdb\u884c\u7edf\u8ba1\u65f6\uff0c\u4f1a\u81ea\u52a8\u8f6c\u4e3a\u7edf\u8ba1\u8fd9\u4e2a\u6587\u4ef6\u7cfb\u7edf\u7684\u4fe1\u606f\u3002<\/p>\n
[root@xuexi\u00a0~]#\u00a0df\u00a0-hT\u00a0\/etc\/fstab\r\nFilesystem\u00a0\u00a0\u00a0\u00a0\u00a0Type\u00a0\u00a0Size\u00a0\u00a0Used\u00a0Avail\u00a0Use%\u00a0Mounted\u00a0on\r\n\/dev\/sda2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ext4\u00a0\u00a0\u00a018G\u00a0\u00a01.7G\u00a0\u00a0\u00a015G\u00a0\u00a011%\u00a0\/\r\n<\/pre>\ndf\u4f1a\u7edf\u8ba1\u5df2\u5220\u9664\u4f46\u5374\u4ecd\u6709\u8fdb\u7a0b\u5f15\u7528\u7684\u6587\u4ef6\u3002<\/p>\n
\u6b63\u5e38\u60c5\u51b5\u4e0b\uff0c\u5220\u9664\u6587\u4ef6\u4f1a\u7acb\u523b\u91ca\u653e\u76f8\u5173\u6307\u9488\uff0c\u5e76\u5c06imap\u548cbmap\u4e2d\u76f8\u5173\u7684\u4f4d\u56fe\u6807\u8bb0\u4e3a\u672a\u4f7f\u7528\u3002bmap\u53ea\u8981\u4e00\u6539\u53d8\uff0c\u6587\u4ef6\u7cfb\u7edf\u7acb\u523b\u5c31\u80fd\u77e5\u9053\u6bcf\u4e2a\u5757\u7ec4\u4e2d\u54ea\u4e9b\u6570\u636e\u5757\u662f\u7a7a\u95f2\u7684\uff0c\u54ea\u4e9b\u6570\u636e\u5757\u662f\u88ab\u4f7f\u7528\u7684\uff0c\u8fd9\u4e9b\u4fe1\u606f\u90fd\u4f1a\u66f4\u65b0\u5230\u5206\u533a\u7684superblock\u4e2d\u3002\u4e8e\u662fdf\u80fd\u7acb\u523b\u7edf\u8ba1\u5230\u5b9e\u65f6\u7684\u7a7a\u95f4\u4fe1\u606f\u3002<\/p>\n
\u4f46\u662f\u5f53\u4e00\u4e2a\u6587\u4ef6\u88ab\u5220\u9664\u65f6\uff0c\u5982\u679c\u8fd8\u6709\u8fdb\u7a0b\u5728\u5f15\u7528\u8fd9\u4e2a\u6587\u4ef6\uff0c\u6839\u636e\u524d\u6587\u7684\u5206\u6790\uff0cbmap\u4e2d\u4e0d\u4f1a\u5c06\u8fd9\u4e2a\u6587\u4ef6\u7684data block\u6807\u8bb0\u4e3a\u672a\u4f7f\u7528\uff0c\u4e5f\u5c31\u4e0d\u4f1a\u5c06\u6570\u636e\u5757\u7684\u4f7f\u7528\u60c5\u51b5\u66f4\u65b0\u5230superblock\u4e2d\u3002\u7531\u4e8edf\u662f\u6839\u636esuperblock\u4e2d\u7a7a\u95f2\u548c\u4f7f\u7528\u6570\u636e\u5757\u7684\u6570\u91cf\u6765\u8ba1\u7b97\u7a7a\u95f2\u7a7a\u95f4\u548c\u5df2\u4f7f\u7528\u7a7a\u95f4\u7684\uff0c\u6240\u4ee5df\u7edf\u8ba1\u7684\u65f6\u5019\u4f1a\u5c06\u8fd9\u4e2a\u5df2\u88ab\"\u5220\u9664\"\u7684\u6587\u4ef6\u7edf\u8ba1\u5230\u5df2\u4f7f\u7528\u7a7a\u95f4\u4e2d\u3002<\/p>\n
\u4f8b\u5982\uff0c\u521b\u5efa\u4e00\u4e2a\u8f83\u5927\u4e00\u70b9\u7684\u6587\u4ef6\u653e\u5728\"\/\"\u76ee\u5f55\u4e0b\uff0c\u5e76du\u548cdf\u7edf\u8ba1\u6839\u76ee\u5f55\u7684\u5df2\u4f7f\u7528\u7a7a\u95f4\u3002<\/p>\n
[root@xuexi\u00a0~]#\u00a0dd\u00a0if<\/span>=\/dev\/zero\u00a0of<\/span>=\/my.iso\u00a0bs<\/span>=1M<\/span>\u00a0count<\/span>=1000<\/span>\r\n[root@xuexi\u00a0~]#\u00a0df\u00a0-hT\u00a0\/\r\nFilesystem\u00a0\u00a0\u00a0\u00a0\u00a0Type\u00a0\u00a0Size\u00a0\u00a0Used\u00a0Avail\u00a0Use%\u00a0Mounted\u00a0on\r\n\/dev\/sda2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ext4\u00a0\u00a0\u00a018G\u00a0\u00a02.7G\u00a0\u00a0\u00a014G\u00a0\u00a017%\u00a0\/\r\n[root@xuexi\u00a0~]#\u00a0du\u00a0-sh\u00a0--exclude<\/span>=\"\/mnt\"<\/span>\u00a0\/\u00a02><\/span>\/dev\/null\r\n2.7G\u00a0\u00a0\u00a0\u00a0\/\r\n<\/pre>\n\u5b83\u4eec\u5728GB\u7ea7\u7684\u5355\u4f4d\u4e0a\u662f\u76f8\u7b49\u7684\u3002\u73b0\u5728\u4f7f\u7528\u4e00\u4e2a\u8fdb\u7a0b\u6765\u5f15\u7528\u8fd9\u4e2a\u6587\u4ef6\uff0c\u7136\u540e\u5220\u9664\u8fd9\u4e2a\u6587\u4ef6\uff0c\u518ddu\u548cdf\u7edf\u8ba1\u3002<\/p>\n
[root@xuexi\u00a0~]#\u00a0tail\u00a0-f\u00a0\/my.iso\u00a0&\r\n[root@xuexi\u00a0~]#\u00a0rm\u00a0-rf\u00a0\/my.iso\r\n[root@xuexi\u00a0~]#\u00a0ls\u00a0\/my.iso\r\nls:\u00a0cannot\u00a0access\u00a0\/my.iso:\u00a0No\u00a0such\u00a0file\u00a0or\u00a0directory\r\n[root@xuexi\u00a0~]#\u00a0du\u00a0-sh\u00a0--exclude<\/span>=\"\/mnt\"<\/span>\u00a0\/\u00a02><\/span>\/dev\/null\r\n1.8G\u00a0\u00a0\u00a0\u00a0\/\r\n[root@xuexi\u00a0~]#\u00a0df\u00a0-hT\u00a0\/\r\nFilesystem\u00a0\u00a0\u00a0\u00a0\u00a0Type\u00a0\u00a0Size\u00a0\u00a0Used\u00a0Avail\u00a0Use%\u00a0Mounted\u00a0on\r\n\/dev\/sda2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ext4\u00a0\u00a0\u00a018G\u00a0\u00a02.7G\u00a0\u00a0\u00a014G\u00a0\u00a017%\u00a0\/\r\n<\/pre>\n\u53ef\u4ee5\u53d1\u73b0\uff0c\u5916\u754c\u5df2\u7ecf\u83b7\u53d6\u4e0d\u5230my.iso\u6587\u4ef6\u4e86\uff0c\u6240\u4ee5du\u65e0\u6cd5\u7edf\u8ba1\u8fd9\u4e2a\u6587\u4ef6\u3002\u800cdf\u5374\u5c06\u8be5\u6587\u4ef6\u5927\u5c0f\u7edf\u8ba1\u8fdb\u53bb\u4e86\uff0c\u56e0\u4e3amy.iso\u5360\u7528\u7684data block\u8fd8\u672a\u88ab\u6807\u8bb0\u4e3a\u672a\u4f7f\u7528\u3002\u518d\u5173\u6389tail\u8fdb\u7a0b\uff0c\u7136\u540edf\u518d\u7edf\u8ba1\u7a7a\u95f4\uff0c\u7ed3\u679c\u5c06\u548cdu\u4e00\u6837\u663e\u793a\u4e3a\u6b63\u5e38\u7684\u5927\u5c0f\u3002<\/p>\n
[root@xuexi\u00a0~]#\u00a0jobs\r\n[1]+\u00a0\u00a0Running\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0tail\u00a0-f\u00a0\/my.iso\u00a0&\r\n[root@xuexi\u00a0~]#\u00a0kill\u00a0%1\r\n[root@xuexi\u00a0~]#\u00a0df\u00a0-hT\u00a0\/\r\nFilesystem\u00a0\u00a0\u00a0\u00a0\u00a0Type\u00a0\u00a0Size\u00a0\u00a0Used\u00a0Avail\u00a0Use%\u00a0Mounted\u00a0on\r\n\/dev\/sda2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0ext4\u00a0\u00a0\u00a018G\u00a0\u00a01.7G\u00a0\u00a0\u00a015G\u00a0\u00a011%\u00a0\/\r\n<\/pre>\n\u5982\u679c\u4e0d\u77e5\u9053\u6587\u4ef6\u7cfb\u7edf\u4e2d\u54ea\u4e9b\u5df2\u88ab\u5220\u9664\uff0c\u4f46\u5374\u8fd8\u88ab\u8fdb\u7a0b\u5f15\u7528\u7684\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528lsof\u6765\u83b7\u53d6\u3002\u901a\u8fc7\u5b83\u8fd8\u80fd\u83b7\u53d6\u5230\u6587\u4ef6\u7684\u5927\u5c0f\uff0c\u770b\u770b\u5230\u5e95\u662f\u54ea\u4e2a\u6587\u4ef6\u5728\"\u5360\u7740\u8305\u5751\u4ee5\u53ca\u5360\u4e86\u591a\u5c11\u8305\u5751\"\u3002\u4f8b\u5982\uff0c\u5173\u6389tail\u8fdb\u7a0b\u524d\uff0c\u4f7f\u7528lsof\u67e5\u770b\u3002\u53ef\u4ee5\u770b\u5230tail\u8fdb\u7a0b\u5360\u7528\u4e86\/my.iso\uff0c\u4e14\u8fd9\u4e2a\u6587\u4ef6\u7684\u5927\u5c0f\u4e3a1048576000\u5b57\u8282\u3002<\/p>\n
[root@xuexi\u00a0~]#\u00a0lsof\u00a0|\u00a0grep\u00a0deleted\r\nphp-fpm\u00a0\u00a0\u00a012597\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0root\u00a0\u00a0txt\u00a0\u00a0\u00a0\u00a0\u00a0REG\u00a0\u00a0\u00a08,2\u00a0\u00a0\u00a0\u00a04058416\u00a0\u00a0\u00a0931143\u00a0\/usr\/sbin\/php-fpm\u00a0(deleted)\r\nphp-fpm\u00a0\u00a0\u00a012657\u00a0\u00a0\u00a0\u00a0nobody\u00a0\u00a0txt\u00a0\u00a0\u00a0\u00a0\u00a0REG\u00a0\u00a0\u00a08,2\u00a0\u00a0\u00a0\u00a04058416\u00a0\u00a0\u00a0931143\u00a0\/usr\/sbin\/php-fpm\u00a0(deleted)\r\nphp-fpm\u00a0\u00a0\u00a012707\u00a0\u00a0\u00a0\u00a0nobody\u00a0\u00a0txt\u00a0\u00a0\u00a0\u00a0\u00a0REG\u00a0\u00a0\u00a08,2\u00a0\u00a0\u00a0\u00a04058416\u00a0\u00a0\u00a0931143\u00a0\/usr\/sbin\/php-fpm\u00a0(deleted)\r\nphp-fpm\u00a0\u00a0\u00a012708\u00a0\u00a0\u00a0\u00a0nobody\u00a0\u00a0txt\u00a0\u00a0\u00a0\u00a0\u00a0REG\u00a0\u00a0\u00a08,2\u00a0\u00a0\u00a0\u00a04058416\u00a0\u00a0\u00a0931143\u00a0\/usr\/sbin\/php-fpm\u00a0(deleted)\r\ntail\u00a0\u00a0\u00a0\u00a0\u00a0\u00a014437\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0root\u00a0\u00a0\u00a0\u00a03r\u00a0\u00a0\u00a0\u00a0REG\u00a0\u00a0\u00a08,2\u00a01048576000\u00a0\u00a0\u00a0\u00a0\u00a07171\u00a0\/my.iso\u00a0(deleted)\r\n<\/pre>\n\u7ecf\u8fc7\u4e0a\u9762\u7684\u5206\u6790\uff0c\u60f3\u5fc5\u5bf9du\u548cdf\u7684\u7ed3\u679c\u4e0d\u4f1a\u518d\u6709\u4efb\u4f55\u7591\u60d1\u4e86\u5427\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
[root@xuexi\u00a0~]#\u00a0df\u00a0-hT Filesystem\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Type\u00a0\u00a0\u00a0Size\u00a0 […]<\/p>\n","protected":false},"author":643,"featured_media":209439,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-209407","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/209407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/643"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=209407"}],"version-history":[{"count":8,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/209407\/revisions"}],"predecessor-version":[{"id":209465,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/209407\/revisions\/209465"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/209439"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=209407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=209407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=209407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}